Changeset 09687aa for src/libcfa/fstream
- Timestamp:
- Dec 7, 2017, 1:10:51 PM (8 years ago)
- 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:
- 5e1adb5
- Parents:
- 92494fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/fstream
r92494fd r09687aa 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 7 08:32:38201713 // Update Count : 1 1712 // Last Modified On : Thu Dec 7 08:06:11 2017 13 // Update Count : 129 14 14 // 15 15 … … 30 30 31 31 // 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 & ); 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 ); 39 39 40 40 // public 41 void sepOn( ofstream *);42 void sepOff( ofstream *);43 _Bool sepDisable( ofstream *);44 _Bool sepEnable( ofstream *);41 void sepOn( ofstream & ); 42 void sepOff( ofstream & ); 43 _Bool sepDisable( ofstream & ); 44 _Bool sepEnable( ofstream & ); 45 45 46 const char * sepGet( ofstream *);47 void sepSet( ofstream *, const char * );48 const char * sepGetTuple( ofstream *);49 void sepSetTuple( ofstream *, const char * );46 const char * sepGet( ofstream & ); 47 void sepSet( ofstream &, const char * ); 48 const char * sepGetTuple( ofstream & ); 49 void sepSetTuple( ofstream &, const char * ); 50 50 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[], ... );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[], ... ); 57 57 58 void ?{}( ofstream & ); 58 void ?{}( ofstream & os ); 59 void ?{}( ofstream & os, const char * name, const char * mode ); 59 60 60 extern ofstream * sout, *serr;61 extern ofstream & sout, & serr; 61 62 62 // implement context istream 63 63 64 struct ifstream { 64 65 void * file; 65 66 }; // ifstream 66 67 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 69 int fail( ifstream & is ); 70 int eof( ifstream & is ); 71 void open( ifstream & is, const char * name ); 72 void close( ifstream & is ); 73 ifstream & read( ifstream & is, char * data, unsigned long int size ); 74 ifstream & ungetc( ifstream & is, char c ); 75 int fmt( ifstream &, const char fmt[], ... ); 74 76 75 extern ifstream * sin; 77 void ?{}( ifstream & is ); 78 void ?{}( ifstream & is, const char * name ); 79 80 extern ifstream & sin; 76 81 77 82 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.