Lines Matching refs:arg

150 union arg  union
157 static void pop_arg(union arg *arg, int type, va_list *ap) in pop_arg() argument
162 case PTR: arg->p = va_arg(*ap, void *); in pop_arg()
163 break; case INT: arg->i = va_arg(*ap, int); in pop_arg()
164 break; case UINT: arg->i = va_arg(*ap, unsigned int); in pop_arg()
166 break; case LONG: arg->i = va_arg(*ap, long); in pop_arg()
167 break; case ULONG: arg->i = va_arg(*ap, unsigned long); in pop_arg()
169 break; case ULLONG: arg->i = va_arg(*ap, unsigned long long); in pop_arg()
170 break; case SHORT: arg->i = (short)va_arg(*ap, int); in pop_arg()
171 break; case USHORT: arg->i = (unsigned short)va_arg(*ap, int); in pop_arg()
172 break; case CHAR: arg->i = (signed char)va_arg(*ap, int); in pop_arg()
173 break; case UCHAR: arg->i = (unsigned char)va_arg(*ap, int); in pop_arg()
175 break; case LLONG: arg->i = va_arg(*ap, long long); in pop_arg()
176 break; case SIZET: arg->i = va_arg(*ap, size_t); in pop_arg()
177 break; case IMAX: arg->i = va_arg(*ap, intmax_t); in pop_arg()
178 break; case UMAX: arg->i = va_arg(*ap, uintmax_t); in pop_arg()
179 break; case PDIFF: arg->i = va_arg(*ap, ptrdiff_t); in pop_arg()
180 break; case UIPTR: arg->i = (uintptr_t)va_arg(*ap, void *); in pop_arg()
182 break; case DBL: arg->f = va_arg(*ap, double); in pop_arg()
183 break; case LDBL: arg->f = va_arg(*ap, long double); in pop_arg()
469 static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg, int *nl_type) in printf_core()
474 union arg arg; in printf_core() local
558 if (argpos>=0) nl_type[argpos]=st, arg=nl_arg[argpos]; in printf_core()
559 else if (f) pop_arg(&arg, st, ap); in printf_core()
580 case BARE: *(int *)arg.p = cnt; break; in printf_core()
581 case LPRE: *(long *)arg.p = cnt; break; in printf_core()
582 case LLPRE: *(long long *)arg.p = cnt; break; in printf_core()
583 case HPRE: *(unsigned short *)arg.p = cnt; break; in printf_core()
584 case HHPRE: *(unsigned char *)arg.p = cnt; break; in printf_core()
585 case ZTPRE: *(size_t *)arg.p = cnt; break; in printf_core()
586 case JPRE: *(uintmax_t *)arg.p = cnt; break; in printf_core()
595 a = fmt_x(arg.i, z, t&32); in printf_core()
596 if (arg.i && (fl & ALT_FORM)) prefix+=(t>>4), pl=2; in printf_core()
599 a = fmt_o(arg.i, z); in printf_core()
600 if ((fl&ALT_FORM) && arg.i) prefix+=5, pl=1; in printf_core()
604 if (arg.i>INTMAX_MAX) { in printf_core()
605 arg.i=-arg.i; in printf_core()
612 a = fmt_u(arg.i, z); in printf_core()
615 if (!arg.i && !p) { in printf_core()
619 p = MAX(p, z-a + !arg.i); in printf_core()
622 *(a=z-(p=1))=arg.i; in printf_core()
628 a = arg.p ? arg.p : "(null)"; in printf_core()
647 wc[0] = arg.i; in printf_core()
649 arg.p = wc; in printf_core()
652 ws = arg.p; in printf_core()
657 ws = arg.p; in printf_core()
665 l = fmt_fp(f, arg.f, w, p, fl, t); in printf_core()
699 union arg nl_arg[NL_ARGMAX+1]; in vfprintf()
720 union arg nl_arg[NL_ARGMAX+1]; in vsnprintf()
755 union arg nl_arg[NL_ARGMAX+1]; in vfprintf()