Changeset c8371b5 for libcfa/src/fstream.cfa
- Timestamp:
- Oct 10, 2021, 5:02:46 PM (16 months ago)
- Branches:
- enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 321a1b15
- Parents:
- fe8c31e
- git-author:
- Peter A. Buhr <pabuhr@…> (10/10/21 16:59:59)
- git-committer:
- Peter A. Buhr <pabuhr@…> (10/10/21 17:02:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.cfa
rfe8c31e rc8371b5 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Oct 6 18:39:13202113 // Update Count : 5 0812 // Last Modified On : Sun Oct 10 11:23:05 2021 13 // Update Count : 512 14 14 // 15 15 … … 206 206 } // ?{} 207 207 208 bool getANL$( ifstream & os ) { return os.nlOnOff$; } 209 208 210 inline void lock( ifstream & os ) with( os ) { lock( os.lock$ ); } 209 211 inline void unlock( ifstream & os ) { unlock( os.lock$ ); } … … 215 217 void ^?{}( ifstream & is ) { close( is ); } 216 218 219 bool fail( ifstream & is ) { return is.file$ == 0p || ferror( (FILE *)(is.file$) ); } 220 void clear( ifstream & is ) { clearerr( (FILE *)(is.file$) ); } 221 217 222 void nlOn( ifstream & os ) { os.nlOnOff$ = true; } 218 223 void nlOff( ifstream & os ) { os.nlOnOff$ = false; } 219 bool getANL( ifstream & os ) { return os.nlOnOff$; } 220 221 bool fail( ifstream & is ) { return is.file$ == 0p || ferror( (FILE *)(is.file$) ); } 222 void clear( ifstream & is ) { clearerr( (FILE *)(is.file$) ); } 223 224 void ends( ifstream & is ) { 225 } // ends 226 227 bool eof( ifstream & is ) { return feof( (FILE *)(is.file$) ); } 224 225 void ends( ifstream & is ) {} 226 227 bool eof( ifstream & is ) { return feof( (FILE *)(is.file$) ) != 0; } 228 228 229 229 void open( ifstream & is, const char name[], const char mode[] ) {
Note: See TracChangeset
for help on using the changeset viewer.