Changeset 8e4aa05 for libcfa/src/fstream.hfa
- Timestamp:
- Mar 4, 2021, 7:40:25 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 77d601f
- Parents:
- 342af53 (diff), a5040fe (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.hfa
r342af53 r8e4aa05 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" // mutex_lock 18 19 #include "iostream.hfa" 19 20 #include <exception.hfa> … … 34 35 char $separator[sepSize]; 35 36 char $tupleSeparator[sepSize]; 37 multiple_acquisition_lock $lock; 38 bool $acquired; 36 39 }; // ofstream 37 40 … … 69 72 ofstream & write( ofstream &, const char data[], size_t size ); 70 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 ); 71 82 72 83 void ?{}( ofstream & os ); … … 85 96 void * $file; 86 97 bool $nlOnOff; 98 multiple_acquisition_lock $lock; 99 bool $acquired; 87 100 }; // ifstream 88 101 … … 91 104 void nlOff( ifstream & ); 92 105 bool getANL( ifstream & ); 106 void ends( ifstream & ); 93 107 int fail( ifstream & is ); 94 108 int eof( ifstream & is ); … … 99 113 ifstream & ungetc( ifstream & is, char c ); 100 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 ); 101 123 102 124 void ?{}( ifstream & is );
Note:
See TracChangeset
for help on using the changeset viewer.