Ignore:
Timestamp:
Jul 17, 2017, 1:55:22 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
b46e3bd
Parents:
bf30ab3
Message:

Update several library files to use references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/fstream.c

    rbf30ab3 ra493682  
    2929#define IO_MSG "I/O error: "
    3030
    31 void ?{}( ofstream * this, void * file, _Bool sepDefault, _Bool sepOnOff, const char * separator, const char * tupleSeparator ) {
    32         this->file = file;
    33         this->sepDefault = sepDefault;
    34         this->sepOnOff = sepOnOff;
    35         sepSet( this, separator );
    36         sepSetCur( this, sepGet( this ) );
    37         sepSetTuple( this, tupleSeparator );
     31void ?{}( ofstream & this, void * file, _Bool sepDefault, _Bool sepOnOff, const char * separator, const char * tupleSeparator ) {
     32        this.file = file;
     33        this.sepDefault = sepDefault;
     34        this.sepOnOff = sepOnOff;
     35        sepSet( &this, separator );
     36        sepSetCur( &this, sepGet( &this ) );
     37        sepSetTuple( &this, tupleSeparator );
    3838}
    3939
     
    9494                exit( EXIT_FAILURE );
    9595        } // if
    96         ?{}( os, file, true, false, " ", ", " );
     96        ?{}( *os, file, true, false, " ", ", " );
    9797} // open
    9898
Note: See TracChangeset for help on using the changeset viewer.