Lines Matching refs:context

104 #define scanf_len(context) ((context)->len)  argument
108 #define scanf_len(context) (*(context)) argument
112 scanf_getc(FILE *stream, scanf_context_t *context) in scanf_getc() argument
116 c = context->unget; in scanf_getc()
117 context->unget = MY_EOF; in scanf_getc()
122 ++scanf_len(context); in scanf_getc()
127 scanf_ungetc(INT c, FILE *stream, scanf_context_t *context) in scanf_ungetc() argument
130 --scanf_len(context); in scanf_ungetc()
133 context->unget = c; in scanf_ungetc()
141 getmb(FILE *stream, scanf_context_t *context, mbstate_t *ps, uint16_t flags) in getmb() argument
153 i = scanf_getc (stream, context); in getmb()
171 i = scanf_getc(stream, context); in getmb()
253 conv_int (FILE *stream, scanf_context_t *context, width_t width, void *addr, uint16_t flags, unsign… in conv_int() argument
258 i = scanf_getc (stream, context); /* after scanf_ungetc() */ in conv_int()
265 if (!--width || IS_EOF(i = scanf_getc(stream, context))) in conv_int()
273 if (!--width || IS_EOF(i = scanf_getc (stream, context))) in conv_int()
280 if (!--width || IS_EOF(i = scanf_getc (stream, context))) in conv_int()
285 if (!--width || IS_EOF(i = scanf_getc (stream, context))) in conv_int()
297 scanf_ungetc (i, stream, context); in conv_int()
303 } while (!IS_EOF(i = scanf_getc(stream, context))); in conv_int()
318 conv_brk (FILE *stream, scanf_context_t *context, width_t width, void *addr, const CHAR *_fmt, uint… in conv_brk() argument
334 WINT wi = getmb (stream, context, &ps, flags); in conv_brk()
383 scanf_ungetc (wi, stream, context); in conv_brk()
403 static INT skip_spaces (FILE *stream, scanf_context_t *context) in skip_spaces() argument
407 if (IS_EOF(i = scanf_getc (stream, context))) in skip_spaces()
410 scanf_ungetc (i, stream, context); in skip_spaces()
585 scanf_context_t context = SCANF_CONTEXT_INIT; in vfscanf() local
595 skip_spaces (stream, &context); in vfscanf()
601 if (IS_EOF(i = scanf_getc (stream, &context))) in vfscanf()
604 scanf_ungetc (i, stream, &context); in vfscanf()
715 putval (addr, (unsigned)scanf_len(&context), flags); in vfscanf()
725 WINT wi = getmb (stream, &context, &ps, flags); in vfscanf()
734 fmt = conv_brk (stream, &context, width, addr, fmt, flags); in vfscanf()
742 if (IS_EOF(skip_spaces (stream, &context))) in vfscanf()
753 WINT wi = getmb(stream, &context, &ps, flags); in vfscanf()
757 scanf_ungetc (wi, stream, &context); in vfscanf()
793 c = conv_int (stream, &context, width, addr, flags, base); in vfscanf()
797 c = conv_flt (stream, &context, width, addr, flags); in vfscanf()
823 c = conv_int (stream, &context, width, addr, flags, base); in vfscanf()
840 if (!IS_EOF(context.unget)) in vfscanf()
841 UNGETC(context.unget, stream); in vfscanf()
850 if (!IS_EOF(context.unget)) in vfscanf()
851 UNGETC(context.unget, stream); in vfscanf()