Ignore:
Timestamp:
May 26, 2003, 4:43:12 PM (22 years ago)
Author:
zap
Message:

See ChangeLog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/stdio.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r235 r236  
    112112#if !defined (_VA_LIST)
    113113#define _VA_LIST
    114 typedef char *va_list;
     114typedef __builtin_va_list va_list;
    115115#endif
    116116
     
    159159int _rmtmp (void);
    160160
    161 int _getc_inline (FILE *);
    162 int _putc_inline (int, FILE *);
    163 
    164161extern __inline__ int feof (FILE *_s)
    165162{
     
    172169}
    173170
    174 /* Do not use this function in application programs! */
    175 
    176 extern __inline__ int _getc_inline (FILE *_s)
    177 {
    178   return (--_s->_rcount >= 0
    179           ? (unsigned char)*_s->_ptr++
    180           : _fill (_s));
    181 }
    182 
    183 /* Do not use this function in application programs! */
    184 
    185 extern __inline__ int _putc_inline (int _c, FILE *_s)
    186 {
    187   return (--_s->_wcount >= 0 && (_c != '\n' || !(_s->_flags & _IOLBF))
    188           ? (unsigned char)(*_s->_ptr++ = (char)_c)
    189           : _flush (_c, _s));
    190 }
    191 
    192 #if defined (__MT__)
    193 
    194171#define getc(s)   fgetc(s)
    195172#define putc(c,s) fputc(c,s)
    196 
    197 #else
    198 
    199 #define getc(s)   _getc_inline(s)
    200 #define putc(c,s) _putc_inline(c,s)
    201 
    202 #endif
    203173
    204174extern __inline__ int getchar (void) { return getc (stdin); }
Note: See TracChangeset for help on using the changeset viewer.