Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    r86a8be5 rb117e0c  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun 10 18:06:16 2019
    13 // Update Count     : 809
     12// Last Modified On : Sun Jun  9 20:54:05 2019
     13// Update Count     : 804
    1414//
    1515
     
    797797} // ?|?
    798798
    799 forall( dtype istype | istream( istype ) )
    800 istype & ?|?( istype & is, _Istream_Char f ) {
    801         fmt( is, "%*c" );                                                                       // argument variable unused
    802         return is;
    803 } // ?|?
    804 
    805799#define InputFMTImpl( T, CODE ) \
    806800forall( dtype istype | istream( istype ) ) \
     
    808802        enum { size = 16 }; \
    809803        char fmtstr[size]; \
    810         if ( f.wd == -1 ) { \
     804        if ( f.wd == -1 || strcmp( CODE, "c" ) == 0 ) { /* ignore width with "c" */     \
    811805                snprintf( fmtstr, size, "%%%s%s", f.ignore ? "*" : "", CODE ); \
    812806        } else { \
     
    818812} // ?|?
    819813
     814InputFMTImpl( char, "c" )
    820815InputFMTImpl( signed char, "hhi" )
    821816InputFMTImpl( unsigned char, "hhi" )
Note: See TracChangeset for help on using the changeset viewer.