Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Add 'j' format modifier for intmax_t.
details: https://anonhg.NetBSD.org/src/rev/6923d3fe9620
branches: trunk
changeset: 325435:6923d3fe9620
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Dec 24 21:41:49 2013 +0000
description:
Add 'j' format modifier for intmax_t.
diffstat:
sys/lib/libsa/subr_prf.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r cc012b7f1e31 -r 6923d3fe9620 sys/lib/libsa/subr_prf.c
--- a/sys/lib/libsa/subr_prf.c Tue Dec 24 20:10:29 2013 +0000
+++ b/sys/lib/libsa/subr_prf.c Tue Dec 24 21:41:49 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prf.c,v 1.21 2011/07/17 20:54:52 joerg Exp $ */
+/* $NetBSD: subr_prf.c,v 1.22 2013/12/24 21:41:49 jakllsch Exp $ */
/*-
* Copyright (c) 1993
@@ -213,6 +213,10 @@
#endif
lflag |= LONG;
goto reswitch;
+ case 'j':
+ if (sizeof(intmax_t) == sizeof(long))
+ lflag |= LONG;
+ goto reswitch;
case 't':
if (sizeof(PTRDIFF_T) == sizeof(long))
lflag |= LONG;
Home |
Main Index |
Thread Index |
Old Index