Changeset e474cf09 for libcfa/src/fstream.hfa
- Timestamp:
- Mar 2, 2021, 5:21:35 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 10dafa4
- Parents:
- 0f9c010b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.hfa
r0f9c010b re474cf09 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jun 19 16:29:17 202013 // Update Count : 18912 // Last Modified On : Mon Mar 1 22:45:08 2021 13 // Update Count : 217 14 14 // 15 15 16 16 #pragma once 17 17 18 #include "bits/weakso_locks.hfa" 18 #include "bits/weakso_locks.hfa" // mutex_lock 19 19 #include "iostream.hfa" 20 20 #include <exception.hfa> … … 35 35 char $separator[sepSize]; 36 36 char $tupleSeparator[sepSize]; 37 // multiple_acquisition_lock lock; 37 multiple_acquisition_lock $lock; 38 bool $acquired; 38 39 }; // ofstream 39 40 … … 71 72 ofstream & write( ofstream &, const char data[], size_t size ); 72 73 int fmt( ofstream &, const char format[], ... ) __attribute__(( format(printf, 2, 3) )); 74 void acquire( ofstream & os ); 75 void release( ofstream & os ); 76 77 struct osacquire { 78 ofstream & os; 79 }; 80 void ?{}( osacquire & acq, ofstream & os ); 81 void ^?{}( osacquire & acq ); 73 82 74 83 void ?{}( ofstream & os ); … … 87 96 void * $file; 88 97 bool $nlOnOff; 98 multiple_acquisition_lock $lock; 99 bool $acquired; 89 100 }; // ifstream 90 101 … … 93 104 void nlOff( ifstream & ); 94 105 bool getANL( ifstream & ); 106 void ends( ifstream & ); 95 107 int fail( ifstream & is ); 96 108 int eof( ifstream & is ); … … 101 113 ifstream & ungetc( ifstream & is, char c ); 102 114 int fmt( ifstream &, const char format[], ... ) __attribute__(( format(scanf, 2, 3) )); 115 void acquire( ifstream & is ); 116 void release( ifstream & is ); 117 118 struct isacquire { 119 ifstream & is; 120 }; 121 void ?{}( isacquire & acq, ifstream & is ); 122 void ^?{}( isacquire & acq ); 103 123 104 124 void ?{}( ifstream & is );
Note: See TracChangeset
for help on using the changeset viewer.