Changes in / [812ba3d:2bfee8e]
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.cfa
r812ba3d r2bfee8e 124 124 void open( ofstream & os, const char name[], const char mode[] ) { 125 125 FILE * file = fopen( name, mode ); 126 #ifdef __CFA_DEBUG__126 // #ifdef __CFA_DEBUG__ 127 127 if ( file == 0p ) { 128 128 throw (Open_Failure){ os }; 129 129 // abort | IO_MSG "open output file \"" | name | "\"" | nl | strerror( errno ); 130 130 } // if 131 #endif // __CFA_DEBUG__131 // #endif // __CFA_DEBUG__ 132 132 (os){ file }; 133 133 } // open … … 262 262 void open( ifstream & is, const char name[], const char mode[] ) { 263 263 FILE * file = fopen( name, mode ); 264 #ifdef __CFA_DEBUG__264 // #ifdef __CFA_DEBUG__ 265 265 if ( file == 0p ) { 266 266 throw (Open_Failure){ is }; 267 267 // abort | IO_MSG "open input file \"" | name | "\"" | nl | strerror( errno ); 268 268 } // if 269 #endif // __CFA_DEBUG__269 // #endif // __CFA_DEBUG__ 270 270 is.file$ = file; 271 271 } // open -
libcfa/src/memory.cfa
r812ba3d r2bfee8e 155 155 156 156 forall(T &) 157 T * release(unique_ptr(T) & this) { 158 T * data = this.data; 159 this.data = 0p; 160 return data; 161 } 162 163 forall(T &) 157 164 int ?==?(unique_ptr(T) const & this, unique_ptr(T) const & that) { 158 165 return this.data == that.data;
Note: See TracChangeset
for help on using the changeset viewer.