Ignore:
Timestamp:
Dec 22, 2018, 11:19:24 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

update iostream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    r760235a r5ea5b28  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Dec 13 14:13:22 2018
    13 // Update Count     : 548
     12// Last Modified On : Sat Dec 22 23:09:56 2018
     13// Update Count     : 569
    1414//
    1515
     
    3434        void ?|?( ostype & os, bool b ) {
    3535                (ostype)(os | b); if ( getANL( os ) ) nl( os );
     36                setPrt( os, false );                                                    // turn off
    3637        } // ?|?
    3738
     
    4344        void ?|?( ostype & os, char c ) {
    4445                (ostype)(os | c); if ( getANL( os ) ) nl( os );
     46                setPrt( os, false );                                                    // turn off
    4547        } // ?|?
    4648
     
    5254        void ?|?( ostype & os, signed char sc ) {
    5355                (ostype)(os | sc); if ( getANL( os ) ) nl( os );
     56                setPrt( os, false );                                                    // turn off
    5457        } // ?|?
    5558
     
    6164        void ?|?( ostype & os, unsigned char usc ) {
    6265                (ostype)(os | usc); if ( getANL( os ) ) nl( os );
     66                setPrt( os, false );                                                    // turn off
    6367        } // ?|?
    6468
     
    7074        void & ?|?( ostype & os, short int si ) {
    7175                (ostype)(os | si); if ( getANL( os ) ) nl( os );
     76                setPrt( os, false );                                                    // turn off
    7277        } // ?|?
    7378
     
    7984        void & ?|?( ostype & os, unsigned short int usi ) {
    8085                (ostype)(os | usi); if ( getANL( os ) ) nl( os );
     86                setPrt( os, false );                                                    // turn off
    8187        } // ?|?
    8288
     
    8894        void & ?|?( ostype & os, int i ) {
    8995                (ostype)(os | i); if ( getANL( os ) ) nl( os );
     96                setPrt( os, false );                                                    // turn off
    9097        } // ?|?
    9198
     
    97104        void & ?|?( ostype & os, unsigned int ui ) {
    98105                (ostype)(os | ui); if ( getANL( os ) ) nl( os );
     106                setPrt( os, false );                                                    // turn off
    99107        } // ?|?
    100108
     
    106114        void & ?|?( ostype & os, long int li ) {
    107115                (ostype)(os | li); if ( getANL( os ) ) nl( os );
     116                setPrt( os, false );                                                    // turn off
    108117        } // ?|?
    109118
     
    115124        void & ?|?( ostype & os, unsigned long int uli ) {
    116125                (ostype)(os | uli); if ( getANL( os ) ) nl( os );
     126                setPrt( os, false );                                                    // turn off
    117127        } // ?|?
    118128
     
    124134        void & ?|?( ostype & os, long long int lli ) {
    125135                (ostype)(os | lli); if ( getANL( os ) ) nl( os );
     136                setPrt( os, false );                                                    // turn off
    126137        } // ?|?
    127138
     
    133144        void & ?|?( ostype & os, unsigned long long int ulli ) {
    134145                (ostype)(os | ulli); if ( getANL( os ) ) nl( os );
     146                setPrt( os, false );                                                    // turn off
    135147        } // ?|?
    136148
     
    142154        void & ?|?( ostype & os, float f ) {
    143155                (ostype)(os | f); if ( getANL( os ) ) nl( os );
     156                setPrt( os, false );                                                    // turn off
    144157        } // ?|?
    145158
     
    151164        void & ?|?( ostype & os, double d ) {
    152165                (ostype)(os | d); if ( getANL( os ) ) nl( os );
     166                setPrt( os, false );                                                    // turn off
    153167        } // ?|?
    154168
     
    160174        void & ?|?( ostype & os, long double ld ) {
    161175                (ostype)(os | ld); if ( getANL( os ) ) nl( os );
     176                setPrt( os, false );                                                    // turn off
    162177        } // ?|?
    163178
     
    169184        void & ?|?( ostype & os, float _Complex fc ) {
    170185                (ostype)(os | fc); if ( getANL( os ) ) nl( os );
     186                setPrt( os, false );                                                    // turn off
    171187        } // ?|?
    172188
     
    178194        void & ?|?( ostype & os, double _Complex dc ) {
    179195                (ostype)(os | dc); if ( getANL( os ) ) nl( os );
     196                setPrt( os, false );                                                    // turn off
    180197        } // ?|?
    181198
     
    187204        void & ?|?( ostype & os, long double _Complex ldc ) {
    188205                (ostype)(os | ldc); if ( getANL( os ) ) nl( os );
     206                setPrt( os, false );                                                    // turn off
    189207        } // ?|?
    190208
     
    229247        void ?|?( ostype & os, const char * str ) {
    230248                (ostype)(os | str); if ( getANL( os ) ) nl( os );
     249                setPrt( os, false );                                                    // turn off
    231250        } // ?|?
    232251
     
    258277        void ?|?( ostype & os, const void * p ) {
    259278                (ostype)(os | p); if ( getANL( os ) ) nl( os );
     279                setPrt( os, false );                                                    // turn off
    260280        } // ?|?
    261281
     
    263283        ostype & ?|?( ostype & os, ostype & (* manip)( ostype & ) ) {
    264284                (ostype)(manip( os ));
    265                 setNonl( os, false );                                                   // ignore nonl in middle
    266285                return os;
    267286        } // ?|?
    268287        void ?|?( ostype & os, ostype & (* manip)( ostype & ) ) {
    269288                (ostype)(manip( os ));
    270                 if ( getANL( os ) && ! getNonl( os ) ) nl( os ); // ignore nl if nonl at end
    271                 setNonl( os, false );
     289                if ( getANL( os ) && getPrt( os ) ) nl( os );   // ignore auto nl?
     290                setPrt( os, false );                                                    // turn off
    272291        } // ?|?
    273292
     
    282301        ostype & nl( ostype & os ) {
    283302                (ostype)(os | '\n');
     303                setPrt( os, false );                                                    // turn off
    284304                setNL( os, true );
    285305                flush( os );
     
    288308
    289309        ostype & nonl( ostype & os ) {
    290                 setNonl( os, true );                                                    // indicate nonl manipulator
     310                setPrt( os, false );                                                    // turn off
    291311                return os;
    292312        } // nonl
     
    339359                sepSetCur( os, sepGet( os ) );                                  // switch to regular separator
    340360                if ( getANL( os ) ) nl( os );
     361                setPrt( os, false );                                                    // turn off
    341362        } // ?|?
    342363} // distribution
Note: See TracChangeset for help on using the changeset viewer.