Changeset 829c907 for src/libcfa/fstream
- Timestamp:
- Mar 21, 2017, 10:04:47 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:
- 87d13cd
- Parents:
- 89d129c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/fstream
r89d129c r829c907 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 7 14:48:08201713 // Update Count : 9112 // Last Modified On : Tue Mar 21 15:57:24 2017 13 // Update Count : 102 14 14 // 15 15 … … 21 21 enum { separateSize = 16 }; 22 22 struct ofstream { 23 void * file;23 void * file; 24 24 _Bool sepDefault; 25 25 _Bool sepOnOff; 26 const char * sepCur; 26 27 char separator[separateSize]; 28 char tupleSeparator[separateSize]; 27 29 }; // ofstream 28 30 … … 32 34 void sepReset( ofstream * ); 33 35 void sepReset( ofstream *, _Bool ); 36 const char * sepGetCur( ofstream * ); 37 void sepSetCur( ofstream *, const char * ); 34 38 const char * sepGet( ofstream * ); 35 39 void sepSet( ofstream *, const char * ); 40 const char * sepGetTuple( ofstream * ); 41 void sepSetTuple( ofstream *, const char * ); 36 42 _Bool sepDisable( ofstream * ); 37 43 _Bool sepEnable( ofstream * ); … … 42 48 void close( ofstream * ); 43 49 ofstream * write( ofstream *, const char * data, unsigned long int size ); 44 int prtfmt( ofstream *, const char fmt[], ... ); 50 int fmt( ofstream *, const char fmt[], ... ); 51 52 void ?{}( ofstream * ); 45 53 46 54 extern ofstream * sout, * serr; … … 48 56 // implement context istream 49 57 struct ifstream { 50 void * file;58 void * file; 51 59 }; // ifstream 52 60 … … 57 65 ifstream * read( ifstream * is, char * data, unsigned long int size ); 58 66 ifstream * ungetc( ifstream * is, char c ); 59 int scanfmt( ifstream *, const char fmt[], ... );67 int fmt( ifstream *, const char fmt[], ... ); 60 68 61 extern ifstream * sin;69 extern ifstream * sin; 62 70 63 71 #endif // __FSTREAM_H__
Note: See TracChangeset
for help on using the changeset viewer.