Changes in src/libcfa/fstream [90c3b1c:6ba0659]
- File:
-
- 1 edited
-
src/libcfa/fstream (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/fstream
r90c3b1c r6ba0659 7 7 // fstream -- 8 8 // 9 // Author : Peter A. Buhr9 // Author : Richard C. Bilson 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 : Wed Feb 17 14:02:01 2016 13 // Update Count : 22 14 14 // 15 15 … … 19 19 #include "iostream" 20 20 21 enum { separateSize = 16 }; 22 struct ofstream { void *file; int separate; char separator[separateSize]; };21 // implement context ostream 22 struct ofstream; 23 23 24 _Bool sepPrt( ofstream * ); 25 void sepOn( ofstream * ); 26 void sepOff( ofstream * ); 27 void sepSet( ofstream *, const char * ); 28 const char * sepGet( ofstream * ); 29 void sepDisable( ofstream * ); 30 void sepEnable( ofstream * ); 31 int fail( ofstream * ); 32 int flush( ofstream * ); 33 void open( ofstream *, const char * name, const char * mode ); 34 void close( ofstream * ); 35 ofstream * write( ofstream *, const char * data, unsigned long int size ); 36 int prtfmt( ofstream *, const char fmt[], ... ); 24 int fail( ofstream * os ); 25 int flush( ofstream * os ); 26 void open( ofstream ** os, const char * name, const char * mode ); 27 void close( ofstream * os ); 28 ofstream * write( ofstream * os, const char * data, streamsize_type size ); 37 29 38 30 extern ofstream * sout, * serr; 39 31 40 32 // implement context istream 41 struct ifstream { void *file; };33 struct ifstream; 42 34 43 35 int fail( ifstream * is ); 44 36 int eof( ifstream * is ); 45 void open( ifstream * is, const char * name, const char * mode );37 void open( ifstream ** is, const char * name, const char * mode ); 46 38 void close( ifstream * is ); 47 ifstream * read( ifstream * is, char * data, unsigned long int size ); 39 ifstream * get( ifstream * is, int * data ); 40 ifstream * read( ifstream * is, char * data, streamsize_type size ); 48 41 ifstream * ungetc( ifstream * is, char c ); 49 int scanfmt( ifstream *, const char fmt[], ... );50 42 51 43 extern ifstream *sin; … … 57 49 // tab-width: 4 // 58 50 // End: // 59
Note:
See TracChangeset
for help on using the changeset viewer.