add the ability to understand and print INT and UINT-sized variables.
This commit is contained in:
parent
d1ba0651cc
commit
630b3b093b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: print.c,v 1.18 1995/03/21 09:08:06 cgd Exp $ */
|
||||
/* $NetBSD: print.c,v 1.19 1995/05/08 22:39:24 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993, 1994
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: print.c,v 1.18 1995/03/21 09:08:06 cgd Exp $";
|
||||
static char rcsid[] = "$NetBSD: print.c,v 1.19 1995/05/08 22:39:24 cgd Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -684,6 +684,12 @@ printval(bp, v)
|
||||
case USHORT:
|
||||
(void)printf(ofmt, v->width, *(u_short *)bp);
|
||||
break;
|
||||
case INT:
|
||||
(void)printf(ofmt, v->width, *(int *)bp);
|
||||
break;
|
||||
case UINT:
|
||||
(void)printf(ofmt, v->width, *(u_int *)bp);
|
||||
break;
|
||||
case LONG:
|
||||
(void)printf(ofmt, v->width, *(long *)bp);
|
||||
break;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ps.h,v 1.6 1995/03/21 09:08:12 cgd Exp $ */
|
||||
/* $NetBSD: ps.h,v 1.7 1995/05/08 22:39:43 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -36,7 +36,7 @@
|
||||
*/
|
||||
|
||||
#define UNLIMITED 0 /* unlimited terminal width */
|
||||
enum type { CHAR, UCHAR, SHORT, USHORT, LONG, ULONG, KPTR };
|
||||
enum type { CHAR, UCHAR, SHORT, USHORT, INT, UINT, LONG, ULONG, KPTR };
|
||||
|
||||
struct usave {
|
||||
struct timeval u_start;
|
||||
|
Loading…
Reference in New Issue
Block a user