Add support for long long modifier (e.g. %llx, %lld).

Reviewed by: bde
This commit is contained in:
Doug Rabson 1999-03-11 22:44:02 +00:00
parent 56ce1a8dc4
commit 93263596ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44674

View File

@ -39,7 +39,7 @@
static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
"$Id: vfprintf.c,v 1.19 1998/05/08 05:10:32 jb Exp $";
"$Id: vfprintf.c,v 1.20 1998/09/16 04:17:44 imp Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@ -545,7 +545,10 @@ reswitch: switch (ch) {
flags |= SHORTINT;
goto rflag;
case 'l':
flags |= LONGINT;
if (flags & LONGINT)
flags |= QUADINT;
else
flags |= LONGINT;
goto rflag;
case 'q':
flags |= QUADINT;
@ -1016,7 +1019,10 @@ reswitch: switch (ch) {
flags |= SHORTINT;
goto rflag;
case 'l':
flags |= LONGINT;
if (flags & LONGINT)
flags |= QUADINT;
else
flags |= LONGINT;
goto rflag;
case 'q':
flags |= QUADINT;