Changeset 236 for trunk/src/emx/include/stdio.h
- Timestamp:
- May 26, 2003, 4:43:12 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/stdio.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r235 r236 112 112 #if !defined (_VA_LIST) 113 113 #define _VA_LIST 114 typedef char *va_list;114 typedef __builtin_va_list va_list; 115 115 #endif 116 116 … … 159 159 int _rmtmp (void); 160 160 161 int _getc_inline (FILE *);162 int _putc_inline (int, FILE *);163 164 161 extern __inline__ int feof (FILE *_s) 165 162 { … … 172 169 } 173 170 174 /* Do not use this function in application programs! */175 176 extern __inline__ int _getc_inline (FILE *_s)177 {178 return (--_s->_rcount >= 0179 ? (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 194 171 #define getc(s) fgetc(s) 195 172 #define putc(c,s) fputc(c,s) 196 197 #else198 199 #define getc(s) _getc_inline(s)200 #define putc(c,s) _putc_inline(c,s)201 202 #endif203 173 204 174 extern __inline__ int getchar (void) { return getc (stdin); } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.