Ignore:
Timestamp:
Apr 14, 2025, 9:05:58 PM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
0d41e600
Parents:
10ef475
git-author:
Peter A. Buhr <pabuhr@…> (04/14/25 20:59:04)
git-committer:
Peter A. Buhr <pabuhr@…> (04/14/25 21:05:58)
Message:

rename I/O function "clear" to "clearerr"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    r10ef475 r768d091  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Oct  1 20:59:45 2024
    13 // Update Count     : 582
     12// Last Modified On : Mon Apr 14 20:41:51 2025
     13// Update Count     : 583
    1414//
    1515
     
    109109
    110110bool fail( ofstream & os ) { return os.file$ == 0 || ferror( (FILE *)(os.file$) ); }
    111 void clear( ofstream & os ) { clearerr( (FILE *)(os.file$) ); }
     111void clearerr( ofstream & os ) { clearerr( (FILE *)(os.file$) ); }
    112112int flush( ofstream & os ) { return fflush( (FILE *)(os.file$) ); }
    113113
     
    225225
    226226bool fail( ifstream & is ) { return is.file$ == 0p || ferror( (FILE *)(is.file$) ); }
    227 void clear( ifstream & is ) { clearerr( (FILE *)(is.file$) ); }
     227void clearerr( ifstream & is ) { clearerr( (FILE *)(is.file$) ); }
    228228
    229229void nlOn( ifstream & os ) { os.nlOnOff$ = true; }
Note: See TracChangeset for help on using the changeset viewer.