Ignore:
Timestamp:
Oct 10, 2021, 5:02:46 PM (3 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
321a1b15
Parents:
fe8c31e
git-author:
Peter A. Buhr <pabuhr@…> (10/10/21 16:59:59)
git-committer:
Peter A. Buhr <pabuhr@…> (10/10/21 17:02:46)
Message:

change getANL to getANL$ (private)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    rfe8c31e rc8371b5  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Oct  6 18:39:13 2021
    13 // Update Count     : 508
     12// Last Modified On : Sun Oct 10 11:23:05 2021
     13// Update Count     : 512
    1414//
    1515
     
    206206} // ?{}
    207207
     208bool getANL$( ifstream & os ) { return os.nlOnOff$; }
     209
    208210inline void lock( ifstream & os ) with( os ) { lock( os.lock$ ); }
    209211inline void unlock( ifstream & os ) { unlock( os.lock$ ); }
     
    215217void ^?{}( ifstream & is ) { close( is ); }
    216218
     219bool fail( ifstream & is ) { return is.file$ == 0p || ferror( (FILE *)(is.file$) ); }
     220void clear( ifstream & is ) { clearerr( (FILE *)(is.file$) ); }
     221
    217222void nlOn( ifstream & os ) { os.nlOnOff$ = true; }
    218223void nlOff( ifstream & os ) { os.nlOnOff$ = false; }
    219 bool getANL( ifstream & os ) { return os.nlOnOff$; }
    220 
    221 bool fail( ifstream & is ) { return is.file$ == 0p || ferror( (FILE *)(is.file$) ); }
    222 void clear( ifstream & is ) { clearerr( (FILE *)(is.file$) ); }
    223 
    224 void ends( ifstream & is ) {
    225 } // ends
    226 
    227 bool eof( ifstream & is ) { return feof( (FILE *)(is.file$) ); }
     224
     225void ends( ifstream & is ) {}
     226
     227bool eof( ifstream & is ) { return feof( (FILE *)(is.file$) ) != 0; }
    228228
    229229void open( ifstream & is, const char name[], const char mode[] ) {
Note: See TracChangeset for help on using the changeset viewer.