29#define _EOF_RET (short)WEOF
30#define _ISSPACE_(c) iswspace(c)
31#define _ISDIGIT_(c) iswdigit(c)
32#define _WIDE2SUPPORTED_(c) c
33#define _CHAR2SUPPORTED_(c) c
34#define _CHAR2DIGIT_(c, base) wchar2digit((c), (base))
35#define _BITMAPSIZE_ 256*256
40#define _ISSPACE_(c) isspace(c)
41#define _ISDIGIT_(c) isdigit(c)
42#define _WIDE2SUPPORTED_(c) c
43#define _CHAR2SUPPORTED_(c) c
44#define _CHAR2DIGIT_(c, base) char2digit((c), (base))
45#define _BITMAPSIZE_ 256
49#define _GETC_(file) (consumed++, _getch())
50#define _UNGETC_(nch, file) do { _ungetch(nch); consumed--; } while(0)
51#define _LOCK_FILE_(file) _lock_file(stdin)
52#define _UNLOCK_FILE_(file) _unlock_file(stdin)
55#define _FUNCTION_ static int vcwscanf_s_l(const char *format, _locale_t locale, __ms_va_list ap)
57#define _FUNCTION_ static int vcwscanf_l(const char *format, _locale_t locale, __ms_va_list ap)
61#define _FUNCTION_ static int vcscanf_s_l(const char *format, _locale_t locale, __ms_va_list ap)
63#define _FUNCTION_ static int vcscanf_l(const char *format, _locale_t locale, __ms_va_list ap)
71#define _GETC_(file) (consumed==length ? '\0' : (consumed++, *file++))
72#define _UNGETC_(nch, file) do { file--; consumed--; } while(0)
73#define _LOCK_FILE_(file) do {} while(0)
74#define _UNLOCK_FILE_(file) do {} while(0)
77#define _FUNCTION_ static int vsnwscanf_s_l(const wchar_t *file, size_t length, const wchar_t *format, _locale_t locale, __ms_va_list ap)
79#define _FUNCTION_ static int vsnwscanf_l(const wchar_t *file, size_t length, const wchar_t *format, _locale_t locale, __ms_va_list ap)
83#define _FUNCTION_ static int vsnscanf_s_l(const char *file, size_t length, const char *format, _locale_t locale, __ms_va_list ap)
85#define _FUNCTION_ static int vsnscanf_l(const char *file, size_t length, const char *format, _locale_t locale, __ms_va_list ap)
89#define _GETC_(file) (consumed++, *file++)
90#define _UNGETC_(nch, file) do { file--; consumed--; } while(0)
91#define _LOCK_FILE_(file) do {} while(0)
92#define _UNLOCK_FILE_(file) do {} while(0)
95#define _FUNCTION_ static int vswscanf_s_l(const wchar_t *file, const wchar_t *format, _locale_t locale, __ms_va_list ap)
97#define _FUNCTION_ static int vswscanf_l(const wchar_t *file, const wchar_t *format, _locale_t locale, __ms_va_list ap)
101#define _FUNCTION_ static int vsscanf_s_l(const char *file, const char *format, _locale_t locale, __ms_va_list ap)
103#define _FUNCTION_ static int vsscanf_l(const char *file, const char *format, _locale_t locale, __ms_va_list ap)
109#define _GETC_(file) (consumed++, fgetwc(file))
110#define _UNGETC_(nch, file) do { ungetwc(nch, file); consumed--; } while(0)
111#define _LOCK_FILE_(file) _lock_file(file)
112#define _UNLOCK_FILE_(file) _unlock_file(file)
114#define _FUNCTION_ static int vfwscanf_s_l(FILE* file, const wchar_t *format, _locale_t locale, __ms_va_list ap)
116#define _FUNCTION_ static int vfwscanf_l(FILE* file, const wchar_t *format, _locale_t locale, __ms_va_list ap)
119#define _GETC_(file) (consumed++, fgetc(file))
120#define _UNGETC_(nch, file) do { ungetc(nch, file); consumed--; } while(0)
121#define _LOCK_FILE_(file) _lock_file(file)
122#define _UNLOCK_FILE_(file) _unlock_file(file)
124#define _FUNCTION_ static int vfscanf_s_l(FILE* file, const char *format, _locale_t locale, __ms_va_list ap)
126#define _FUNCTION_ static int vfscanf_l(FILE* file, const char *format, _locale_t locale, __ms_va_list ap)
176 else if (*
format ==
'%') {
183 int prefix_finished = 0;
199 while (!prefix_finished) {
201 case 'h': h_prefix++;
break;
209 case 'w': w_prefix = 1;
break;
210 case 'L': L_prefix = 1;
break;
212 if (*(
format + 1) ==
'6' &&
221 if (!prefix_finished)
format++;
227 if (
sizeof(
void *) ==
sizeof(
LONGLONG)) I64_prefix = 1;
253 if (
nch ==
'-' ||
nch ==
'+') {
254 negative = (
nch==
'-');
297 if (!seendigit)
break;
300#define _SET_NUMBER_(type) *va_arg(ap, type*) = negative ? -(LONGLONG)cur : cur
315 int exp = 0, negative = 0;
324 if (
nch ==
'-' ||
nch ==
'+') {
325 negative = (
nch==
'-');
339 hlp =
d*10 +
nch -
'0';
364 hlp =
d*10 +
nch -
'0';
408 _internal_handle_float(negative,
exp,
suppress,
d, l_prefix || L_prefix, &
ap);
426 expcnt = expcnt*expcnt;
450 if (w_prefix || l_prefix)
goto widecharstring;
451 else if (h_prefix)
goto charstring;
453 else goto widecharstring;
455 else goto charstring;
458 if (w_prefix || l_prefix)
goto widecharstring;
459 else if (h_prefix)
goto charstring;
461 else goto charstring;
463 else goto widecharstring;
467 char *sptr_beg = sptr;
497 wchar_t *sptr_beg = sptr;
528 if (w_prefix || l_prefix)
goto widecharacter;
529 else if (h_prefix)
goto character;
531 else goto widecharacter;
536 if (w_prefix || l_prefix)
goto widecharacter;
537 else if (h_prefix)
goto character;
541 else goto widecharacter;
726#undef _CHAR2SUPPORTED_
727#undef _WIDE2SUPPORTED_
#define RtlInitializeBitMap
#define HeapFree(x, y, z)
GLint GLint GLsizei width
NTSYSAPI void WINAPI DbgBreakPoint(void)
static unsigned int number
#define MSVCRT__EM_ZERODIVIDE
#define MSVCRT__EM_INVALID
#define MSVCRT__EM_DENORMAL
unsigned int __cdecl _control87(unsigned int, unsigned int)
#define MSVCRT__EM_UNDERFLOW
#define MSVCRT__EM_OVERFLOW
#define MSVCRT__EM_INEXACT
#define _WIDE2SUPPORTED_(c)
#define _LOCK_FILE_(file)
#define _SET_NUMBER_(type)
#define _UNLOCK_FILE_(file)
#define _UNGETC_(nch, file)
#define _CHAR2SUPPORTED_(c)
#define _CHAR2DIGIT_(c, base)
void int int ULONGLONG int va_list * ap