rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit cc5cbeb46fdb1dcacfde60ad7e9bb11a39a65911
parent e8bb2c56eb016144f0fa2e595399a2d34b67cc62
Author: tjg <tjg>
Date:   Mon, 18 Jun 2001 12:58:15 +0000

  Bug: you can't pass a short to a stdargs function!

Diffstat:
Mprint.c | 4----
Mrc.h | 1-
2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/print.c b/print.c @@ -20,7 +20,6 @@ static bool name(Format *format, int ignore) { \ } Flag(uconv, FMT_unsigned) -Flag(hconv, FMT_short) Flag(rc_lconv, FMT_long) #if HAVE_QUAD_T @@ -103,8 +102,6 @@ static void intconv(Format *format, unsigned int radix, int upper, const char *a if (flags & FMT_long) n = va_arg(format->args, long); - else if (flags & FMT_short) - n = va_arg(format->args, short); else n = va_arg(format->args, int); @@ -202,7 +199,6 @@ static void inittab(void) { fmttab['%'] = pctconv; fmttab['u'] = uconv; - fmttab['h'] = hconv; fmttab['l'] = rc_lconv; fmttab['#'] = altconv; fmttab['-'] = leftconv; diff --git a/rc.h b/rc.h @@ -133,7 +133,6 @@ struct Format { enum { FMT_quad = 1, /* %q */ FMT_long = 2, /* %l */ - FMT_short = 4, /* %h */ FMT_unsigned = 8, /* %u */ FMT_zeropad = 16, /* %0 */ FMT_leftside = 32, /* %- */