Changeset 09687aa for src/libcfa/fstream


Ignore:
Timestamp:
Dec 7, 2017, 1:10:51 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
5e1adb5
Parents:
92494fd
Message:

complete conversion of iostream/fstream to use references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/fstream

    r92494fd r09687aa  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul  7 08:32:38 2017
    13 // Update Count     : 117
     12// Last Modified On : Thu Dec  7 08:06:11 2017
     13// Update Count     : 129
    1414//
    1515
     
    3030
    3131// private
    32 _Bool sepPrt( ofstream * );
    33 void sepReset( ofstream * );
    34 void sepReset( ofstream *, _Bool );
    35 const char * sepGetCur( ofstream * );
    36 void sepSetCur( ofstream *, const char * );
    37 _Bool getNL( ofstream * );
    38 void setNL( ofstream *, _Bool );
     32_Bool sepPrt( ofstream & );
     33void sepReset( ofstream & );
     34void sepReset( ofstream &, _Bool );
     35const char * sepGetCur( ofstream & );
     36void sepSetCur( ofstream &, const char * );
     37_Bool getNL( ofstream & );
     38void setNL( ofstream &, _Bool );
    3939
    4040// public
    41 void sepOn( ofstream * );
    42 void sepOff( ofstream * );
    43 _Bool sepDisable( ofstream * );
    44 _Bool sepEnable( ofstream * );
     41void sepOn( ofstream & );
     42void sepOff( ofstream & );
     43_Bool sepDisable( ofstream & );
     44_Bool sepEnable( ofstream & );
    4545
    46 const char * sepGet( ofstream * );
    47 void sepSet( ofstream *, const char * );
    48 const char * sepGetTuple( ofstream * );
    49 void sepSetTuple( ofstream *, const char * );
     46const char * sepGet( ofstream & );
     47void sepSet( ofstream &, const char * );
     48const char * sepGetTuple( ofstream & );
     49void sepSetTuple( ofstream &, const char * );
    5050
    51 int fail( ofstream * );
    52 int flush( ofstream * );
    53 void open( ofstream *, const char * name, const char * mode );
    54 void close( ofstream * );
    55 ofstream * write( ofstream *, const char * data, unsigned long int size );
    56 int fmt( ofstream *, const char fmt[], ... );
     51int fail( ofstream & );
     52int flush( ofstream & );
     53void open( ofstream &, const char * name, const char * mode );
     54void close( ofstream & );
     55ofstream & write( ofstream &, const char * data, unsigned long int size );
     56int fmt( ofstream &, const char fmt[], ... );
    5757
    58 void ?{}( ofstream & );
     58void ?{}( ofstream & os );
     59void ?{}( ofstream & os, const char * name, const char * mode );
    5960
    60 extern ofstream * sout, * serr;
     61extern ofstream & sout, & serr;
    6162
    62 // implement context istream
     63
    6364struct ifstream {
    6465        void * file;
    6566}; // ifstream
    6667
    67 int fail( ifstream * is );
    68 int eof( ifstream * is );
    69 void open( ifstream * is, const char * name, const char * mode );
    70 void close( ifstream * is );
    71 ifstream * read( ifstream * is, char * data, unsigned long int size );
    72 ifstream * ungetc( ifstream * is, char c );
    73 int fmt( ifstream *, const char fmt[], ... );
     68// public
     69int fail( ifstream & is );
     70int eof( ifstream & is );
     71void open( ifstream & is, const char * name );
     72void close( ifstream & is );
     73ifstream & read( ifstream & is, char * data, unsigned long int size );
     74ifstream & ungetc( ifstream & is, char c );
     75int fmt( ifstream &, const char fmt[], ... );
    7476
    75 extern ifstream * sin;
     77void ?{}( ifstream & is );
     78void ?{}( ifstream & is, const char * name );
     79
     80extern ifstream & sin;
    7681
    7782// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.