Ignore:
Timestamp:
Jul 14, 2024, 6:00:32 PM (5 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
d796be70, eb5dbfd
Parents:
2e6b2a0
Message:

change order of ungetc parameters to harmonize with C ungetc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    r2e6b2a0 ra1a1f37d  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul  8 23:45:06 2024
    13 // Update Count     : 2018
     12// Last Modified On : Fri Jul 12 05:45:45 2024
     13// Update Count     : 2019
    1414//
    1515
     
    891891                        } // for
    892892                        if ( sign ) ullli = -ullli;
    893                 } else if ( sign ) ungetc( is, '-' );                   // return minus when no digits
     893                } else if ( sign ) ungetc( '-', is );                   // return minus when no digits
    894894                return is;
    895895        } // ?|?
     
    10691069                                // fprintf( stderr, "peek %d '%c'\n", args, peek );
    10701070                                if ( ! eof( is ) ) {                                    // can only fail at eof
    1071                                         ungetc( is, peek );
     1071                                        ungetc( peek, is );
    10721072                                        if ( ! isspace( peek ) ) throwResume ExceptionInst( cstring_length );
    10731073                                } // if
     
    10921092                                        if ( ! eof( is ) ) {
    10931093                                                if ( peek != delimiters[0] ) {
    1094                                                         ungetc( is, peek );
     1094                                                        ungetc( peek, is );
    10951095                                                        throwResume ExceptionInst( cstring_length );
    10961096                                                } // if
     
    11121112                                        // fprintf( stderr, "peek %d '%c'\n", args, peek );
    11131113                                        if ( ! eof( is ) ) {
    1114                                                 ungetc( is, peek );
     1114                                                ungetc( peek, is );
    11151115                                                if ( flags.inex ^ strchr( scanset, peek ) != 0p ) throwResume ExceptionInst( cstring_length );
    11161116                                        } // if
Note: See TracChangeset for help on using the changeset viewer.