Changeset 53ba273 for src/libcfa/fstream
- Timestamp:
- Apr 6, 2016, 10:08:32 PM (7 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 3d9b5da, 78885b5
- Parents:
- 3cfe27f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/fstream
r3cfe27f r53ba273 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 15:08:14201613 // Update Count : 7812 // Last Modified On : Tue Apr 5 22:37:12 2016 13 // Update Count : 82 14 14 // 15 15 … … 20 20 21 21 enum { separateSize = 16 }; 22 struct ofstream { void *file; int separate; char separator[separateSize]; }; 22 struct ofstream { 23 void *file; 24 _Bool sepDefault; 25 _Bool sepOnOff; 26 char separator[separateSize]; 27 }; // ofstream 23 28 24 29 _Bool sepPrt( ofstream * ); 25 30 void sepOn( ofstream * ); 26 31 void sepOff( ofstream * ); 32 void sepReset( ofstream * ); 33 void sepReset( ofstream *, _Bool ); 27 34 void sepSet( ofstream *, const char * ); 28 35 const char * sepGet( ofstream * ); 29 voidsepDisable( ofstream * );30 voidsepEnable( ofstream * );36 _Bool sepDisable( ofstream * ); 37 _Bool sepEnable( ofstream * ); 31 38 int fail( ofstream * ); 32 39 int flush( ofstream * ); … … 39 46 40 47 // implement context istream 41 struct ifstream { void *file; }; 48 struct ifstream { 49 void *file; 50 }; // ifstream 42 51 43 52 int fail( ifstream * is );
Note: See TracChangeset
for help on using the changeset viewer.