Enable support for printing 8-byte integers. For some reason, most of the

code for this was present, but disabled.
This is required for POSIX compliance on platforms with 8-byte longs.
This commit is contained in:
bjh21 2001-12-07 13:37:39 +00:00
parent 20d6672fda
commit 84f98450e5
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: display.c,v 1.10 2001/02/15 18:16:12 christos Exp $ */
/* $NetBSD: display.c,v 1.11 2001/12/07 13:37:39 bjh21 Exp $ */
/*
* Copyright (c) 1989, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: display.c,v 1.10 2001/02/15 18:16:12 christos Exp $");
__RCSID("$NetBSD: display.c,v 1.11 2001/12/07 13:37:39 bjh21 Exp $");
#endif
#endif /* not lint */
@ -125,8 +125,8 @@ print(pr, bp)
double f8;
float f4;
int16_t s2;
int8_t s8;
int32_t s4;
int64_t s8;
u_int16_t u2;
u_int32_t u4;
u_int64_t u8;

View File

@ -1,4 +1,4 @@
/* $NetBSD: parse.c,v 1.11 2001/02/07 18:32:07 christos Exp $ */
/* $NetBSD: parse.c,v 1.12 2001/12/07 13:37:39 bjh21 Exp $ */
/*
* Copyright (c) 1989, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)parse.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: parse.c,v 1.11 2001/02/07 18:32:07 christos Exp $");
__RCSID("$NetBSD: parse.c,v 1.12 2001/12/07 13:37:39 bjh21 Exp $");
#endif
#endif /* not lint */
@ -307,6 +307,9 @@ isint: cs[2] = '\0';
case 2:
pr->bcnt = 2;
break;
case 8:
pr->bcnt = 8;
break;
default:
p1[1] = '\0';
badcnt(p1);