From 960c305298af2d2e5bb32e36ab32dbe6e1ae8138 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Wed, 23 Apr 2003 23:48:21 +0200 Subject: * printf/doprnt.c: Add M for mp_limb_t. --- printf/doprnt.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'printf') diff --git a/printf/doprnt.c b/printf/doprnt.c index 8f7c85ddf..2ff552917 100644 --- a/printf/doprnt.c +++ b/printf/doprnt.c @@ -4,7 +4,7 @@ CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN FUTURE GNU MP RELEASES. -Copyright 2001, 2002 Free Software Foundation, Inc. +Copyright 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -423,6 +423,16 @@ __gmp_doprnt (const struct doprnt_funs_t *funs, void *data, /* glibc strerror(errno), no argument */ goto next; + case 'M': /* mp_limb_t */ + /* mung format string to l or L and let plain printf handle this */ +#if _LONG_LONG_LIMB + type = 'L'; +#else + type = 'l'; +#endif + fmt[-1] = type; + break; + case 'n': { void *p; -- cgit v1.2.1