mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
Add support for long long modifier (e.g. %llx, %lld).
Reviewed by: bde
This commit is contained in:
parent
56ce1a8dc4
commit
93263596ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44674
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user