397: #define SARG() \
398: ((intmax_t)(flags&MAXINT ? GETARG(intmax_t) : \
399: flags&LLONGINT ? GETARG(long long) : \
400: flags&LONGINT ? GETARG(long) : \
401: flags&PTRINT ? GETARG(ptrdiff_t) : \
402: flags&SIZEINT ? GETARG(ssize_t) : \
403: flags&SHORTINT ? (short)GETARG(int) : \
404: flags&CHARINT ? (__signed char)GETARG(int) : \
405: GETARG(int)))
406: #define UARG() \
407: ((uintmax_t)(flags&MAXINT ? GETARG(uintmax_t) : \
408: flags&LLONGINT ? GETARG(unsigned long long) : \
409: flags&LONGINT ? GETARG(unsigned long) : \
410: flags&PTRINT ? (uintptr_t)GETARG(ptrdiff_t) : /* XXX */ \
411: flags&SIZEINT ? GETARG(size_t) : \
412: flags&SHORTINT ? (unsigned short)GETARG(int) : \
413: flags&CHARINT ? (unsigned char)GETARG(int) : \
414: GETARG(unsigned int)))
415:
445: nextarg = n2; \
446: val = GETARG(int); \
447: nextarg = hold; \
449: } else { \
450: val = GETARG(int); \
451: }
646: mbseqlen = wcrtomb(buf,
647: (wchar_t)GETARG(wint_t), &mbs);
648: if (mbseqlen == (size_t)-1) {
656: #endif
657: *(cp = buf) = GETARG(int);
658: size = 1;
692: if (flags & LONGDBL) {
693: fparg.ldbl = GETARG(long double);
694: dtoaresult = cp =
701: } else {
702: fparg.dbl = GETARG(double);
703: dtoaresult = cp =
738: if (flags & LONGDBL) {
739: fparg.ldbl = GETARG(long double);
740: dtoaresult = cp =
747: } else {
748: fparg.dbl = GETARG(double);
749: dtoaresult = cp =
812: if (flags & LLONGINT)
813: *GETARG(long long *) = ret;
814: else if (flags & LONGINT)
815: *GETARG(long *) = ret;
816: else if (flags & SHORTINT)
817: *GETARG(short *) = ret;
818: else if (flags & CHARINT)
819: *GETARG(__signed char *) = ret;
820: else if (flags & PTRINT)
821: *GETARG(ptrdiff_t *) = ret;
822: else if (flags & SIZEINT)
823: *GETARG(ssize_t *) = ret;
824: else if (flags & MAXINT)
825: *GETARG(intmax_t *) = ret;
826: else
827: *GETARG(int *) = ret;
828: continue; /* no output */
844: /* NOSTRICT */
845: _umax = (u_long)GETARG(void *);
846: base = HEX;
858: }
859: if ((wcp = GETARG(wchar_t *)) == NULL) {
860: cp = "(null)";
870: #endif /* PRINTF_WIDE_CHAR */
871: if ((cp = GETARG(char *)) == NULL)
872: cp = "(null)";