Changeset 10005 for trunk/src/msvcrt/scanf.h
- Timestamp:
- Apr 10, 2003, 12:28:07 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msvcrt/scanf.h
r9633 r10005 34 34 #define _CHAR_ char 35 35 #define _EOF_ MSVCRT_EOF 36 #define _ISSPACE_(c) isspace(c)37 #define _ISDIGIT_(c) isdigit(c)36 #define _ISSPACE_(c) MSVCRT_isspace(c) 37 #define _ISDIGIT_(c) MSVCRT_isdigit(c) 38 38 #define _CONVERT_(c) c /*** FIXME ***/ 39 39 #define _CHAR2DIGIT_(c, base) char2digit((c), (base)) … … 41 41 42 42 #ifdef CONSOLE 43 #define _GETC_(file) _getch()44 #define _UNGETC_(nch, file) _ungetch(nch)45 #define _FUNCTION_ _cscanf(const _CHAR_ *format, ...)43 #define _GETC_(file) MSVCRT__getch() 44 #define _UNGETC_(nch, file) MSVCRT__ungetch(nch) 45 #define _FUNCTION_ MSVCRT__cscanf(const _CHAR_ *format, ...) 46 46 #else 47 47 #ifdef STRING … … 115 115 int w_prefix = 0; 116 116 int prefix_finished = 0; 117 /* int I64_prefix = 0; */117 int I64_prefix = 0; 118 118 format++; 119 119 /* look for leading asterisk, which means 'suppress assignment of … … 139 139 if (*(format + 1) == '6' && 140 140 *(format + 2) == '4') { 141 /* I64_prefix = 1; */141 I64_prefix = 1; 142 142 format += 2; 143 143 FIXME("I64 prefix currently not implemented in fscanf/fwscanf"); … … 222 222 #define _SET_NUMBER_(type) *va_arg(ap, type*) = negative ? -cur : cur 223 223 if (number_signed) { 224 if (l_prefix) _SET_NUMBER_(long int); 224 if (I64_prefix) _SET_NUMBER_(long long); 225 else if (l_prefix) _SET_NUMBER_(long int); 225 226 else if (h_prefix) _SET_NUMBER_(short int); 226 227 else _SET_NUMBER_(int); … … 230 231 negative = 0; 231 232 } 232 if (l_prefix) _SET_NUMBER_(unsigned long int); 233 if (I64_prefix) _SET_NUMBER_(long long); 234 else if (l_prefix) _SET_NUMBER_(unsigned long int); 233 235 else if (h_prefix) 234 236 _SET_NUMBER_(unsigned short int);
Note:
See TracChangeset
for help on using the changeset viewer.