Changeset 5ea5b28 for libcfa/src/iostream.cfa
- Timestamp:
- Dec 22, 2018, 11:19:24 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- bd07b15
- Parents:
- 760235a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r760235a r5ea5b28 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Dec 13 14:13:22201813 // Update Count : 5 4812 // Last Modified On : Sat Dec 22 23:09:56 2018 13 // Update Count : 569 14 14 // 15 15 … … 34 34 void ?|?( ostype & os, bool b ) { 35 35 (ostype)(os | b); if ( getANL( os ) ) nl( os ); 36 setPrt( os, false ); // turn off 36 37 } // ?|? 37 38 … … 43 44 void ?|?( ostype & os, char c ) { 44 45 (ostype)(os | c); if ( getANL( os ) ) nl( os ); 46 setPrt( os, false ); // turn off 45 47 } // ?|? 46 48 … … 52 54 void ?|?( ostype & os, signed char sc ) { 53 55 (ostype)(os | sc); if ( getANL( os ) ) nl( os ); 56 setPrt( os, false ); // turn off 54 57 } // ?|? 55 58 … … 61 64 void ?|?( ostype & os, unsigned char usc ) { 62 65 (ostype)(os | usc); if ( getANL( os ) ) nl( os ); 66 setPrt( os, false ); // turn off 63 67 } // ?|? 64 68 … … 70 74 void & ?|?( ostype & os, short int si ) { 71 75 (ostype)(os | si); if ( getANL( os ) ) nl( os ); 76 setPrt( os, false ); // turn off 72 77 } // ?|? 73 78 … … 79 84 void & ?|?( ostype & os, unsigned short int usi ) { 80 85 (ostype)(os | usi); if ( getANL( os ) ) nl( os ); 86 setPrt( os, false ); // turn off 81 87 } // ?|? 82 88 … … 88 94 void & ?|?( ostype & os, int i ) { 89 95 (ostype)(os | i); if ( getANL( os ) ) nl( os ); 96 setPrt( os, false ); // turn off 90 97 } // ?|? 91 98 … … 97 104 void & ?|?( ostype & os, unsigned int ui ) { 98 105 (ostype)(os | ui); if ( getANL( os ) ) nl( os ); 106 setPrt( os, false ); // turn off 99 107 } // ?|? 100 108 … … 106 114 void & ?|?( ostype & os, long int li ) { 107 115 (ostype)(os | li); if ( getANL( os ) ) nl( os ); 116 setPrt( os, false ); // turn off 108 117 } // ?|? 109 118 … … 115 124 void & ?|?( ostype & os, unsigned long int uli ) { 116 125 (ostype)(os | uli); if ( getANL( os ) ) nl( os ); 126 setPrt( os, false ); // turn off 117 127 } // ?|? 118 128 … … 124 134 void & ?|?( ostype & os, long long int lli ) { 125 135 (ostype)(os | lli); if ( getANL( os ) ) nl( os ); 136 setPrt( os, false ); // turn off 126 137 } // ?|? 127 138 … … 133 144 void & ?|?( ostype & os, unsigned long long int ulli ) { 134 145 (ostype)(os | ulli); if ( getANL( os ) ) nl( os ); 146 setPrt( os, false ); // turn off 135 147 } // ?|? 136 148 … … 142 154 void & ?|?( ostype & os, float f ) { 143 155 (ostype)(os | f); if ( getANL( os ) ) nl( os ); 156 setPrt( os, false ); // turn off 144 157 } // ?|? 145 158 … … 151 164 void & ?|?( ostype & os, double d ) { 152 165 (ostype)(os | d); if ( getANL( os ) ) nl( os ); 166 setPrt( os, false ); // turn off 153 167 } // ?|? 154 168 … … 160 174 void & ?|?( ostype & os, long double ld ) { 161 175 (ostype)(os | ld); if ( getANL( os ) ) nl( os ); 176 setPrt( os, false ); // turn off 162 177 } // ?|? 163 178 … … 169 184 void & ?|?( ostype & os, float _Complex fc ) { 170 185 (ostype)(os | fc); if ( getANL( os ) ) nl( os ); 186 setPrt( os, false ); // turn off 171 187 } // ?|? 172 188 … … 178 194 void & ?|?( ostype & os, double _Complex dc ) { 179 195 (ostype)(os | dc); if ( getANL( os ) ) nl( os ); 196 setPrt( os, false ); // turn off 180 197 } // ?|? 181 198 … … 187 204 void & ?|?( ostype & os, long double _Complex ldc ) { 188 205 (ostype)(os | ldc); if ( getANL( os ) ) nl( os ); 206 setPrt( os, false ); // turn off 189 207 } // ?|? 190 208 … … 229 247 void ?|?( ostype & os, const char * str ) { 230 248 (ostype)(os | str); if ( getANL( os ) ) nl( os ); 249 setPrt( os, false ); // turn off 231 250 } // ?|? 232 251 … … 258 277 void ?|?( ostype & os, const void * p ) { 259 278 (ostype)(os | p); if ( getANL( os ) ) nl( os ); 279 setPrt( os, false ); // turn off 260 280 } // ?|? 261 281 … … 263 283 ostype & ?|?( ostype & os, ostype & (* manip)( ostype & ) ) { 264 284 (ostype)(manip( os )); 265 setNonl( os, false ); // ignore nonl in middle266 285 return os; 267 286 } // ?|? 268 287 void ?|?( ostype & os, ostype & (* manip)( ostype & ) ) { 269 288 (ostype)(manip( os )); 270 if ( getANL( os ) && ! getNonl( os ) ) nl( os ); // ignore nl if nonl at end271 set Nonl( os, false );289 if ( getANL( os ) && getPrt( os ) ) nl( os ); // ignore auto nl? 290 setPrt( os, false ); // turn off 272 291 } // ?|? 273 292 … … 282 301 ostype & nl( ostype & os ) { 283 302 (ostype)(os | '\n'); 303 setPrt( os, false ); // turn off 284 304 setNL( os, true ); 285 305 flush( os ); … … 288 308 289 309 ostype & nonl( ostype & os ) { 290 set Nonl( os, true ); // indicate nonl manipulator310 setPrt( os, false ); // turn off 291 311 return os; 292 312 } // nonl … … 339 359 sepSetCur( os, sepGet( os ) ); // switch to regular separator 340 360 if ( getANL( os ) ) nl( os ); 361 setPrt( os, false ); // turn off 341 362 } // ?|? 342 363 } // distribution
Note: See TracChangeset
for help on using the changeset viewer.