Lines Matching refs:arg
140 union arg union
147 static void pop_arg(union arg *arg, int type, va_list *ap) in pop_arg() argument
152 case PTR: arg->p = va_arg(*ap, void *); in pop_arg()
153 break; case INT: arg->i = va_arg(*ap, int); in pop_arg()
154 break; case UINT: arg->i = va_arg(*ap, unsigned int); in pop_arg()
156 break; case LONG: arg->i = va_arg(*ap, long); in pop_arg()
157 break; case ULONG: arg->i = va_arg(*ap, unsigned long); in pop_arg()
159 break; case ULLONG: arg->i = va_arg(*ap, unsigned long long); in pop_arg()
160 break; case SHORT: arg->i = (short)va_arg(*ap, int); in pop_arg()
161 break; case USHORT: arg->i = (unsigned short)va_arg(*ap, int); in pop_arg()
162 break; case CHAR: arg->i = (signed char)va_arg(*ap, int); in pop_arg()
163 break; case UCHAR: arg->i = (unsigned char)va_arg(*ap, int); in pop_arg()
165 break; case LLONG: arg->i = va_arg(*ap, long long); in pop_arg()
166 break; case SIZET: arg->i = va_arg(*ap, size_t); in pop_arg()
167 break; case IMAX: arg->i = va_arg(*ap, intmax_t); in pop_arg()
168 break; case UMAX: arg->i = va_arg(*ap, uintmax_t); in pop_arg()
169 break; case PDIFF: arg->i = va_arg(*ap, ptrdiff_t); in pop_arg()
170 break; case UIPTR: arg->i = (uintptr_t)va_arg(*ap, void *); in pop_arg()
172 break; case DBL: arg->f = va_arg(*ap, double); in pop_arg()
173 break; case LDBL: arg->f = va_arg(*ap, long double); in pop_arg()
199 static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_arg, int *nl_type) in wprintf_core()
204 union arg arg; in wprintf_core() local
290 if (argpos>=0) nl_type[argpos]=st, arg=nl_arg[argpos]; in wprintf_core()
291 else if (f) pop_arg(&arg, st, ap); in wprintf_core()
303 case BARE: *(int *)arg.p = cnt; break; in wprintf_core()
304 case LPRE: *(long *)arg.p = cnt; break; in wprintf_core()
305 case LLPRE: *(long long *)arg.p = cnt; break; in wprintf_core()
306 case HPRE: *(unsigned short *)arg.p = cnt; break; in wprintf_core()
307 case HHPRE: *(unsigned char *)arg.p = cnt; break; in wprintf_core()
308 case ZTPRE: *(size_t *)arg.p = cnt; break; in wprintf_core()
309 case JPRE: *(uintmax_t *)arg.p = cnt; break; in wprintf_core()
314 fputwc(btowc(arg.i), f); in wprintf_core()
318 fputwc(arg.i, f); in wprintf_core()
322 a = arg.p; in wprintf_core()
333 bs = arg.p; in wprintf_core()
340 bs = arg.p; in wprintf_core()
361 l = fprintf(f, charfmt, w, p, arg.f); in wprintf_core()
364 l = fprintf(f, charfmt, w, p, arg.i); in wprintf_core()
385 union arg nl_arg[NL_ARGMAX]; in vfwprintf()
404 union arg nl_arg[NL_ARGMAX]; in vswprintf()
419 union arg nl_arg[NL_ARGMAX]; in vfwprintf()