Date: Tue, 4 Dec 2001 12:51:25 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: David Malone <dwmalone@FreeBSD.org> Cc: <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/usr.bin/cmp misc.c regular.c special.c Message-ID: <20011204123825.A4441-100000@gamplex.bde.org> In-Reply-To: <200112032056.fB3KuG748305@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 3 Dec 2001, David Malone wrote: > dwmalone 2001/12/03 12:56:16 PST > > Modified files: > usr.bin/cmp misc.c regular.c special.c > Log: > Cast off_t to long long before printing. Use %ll instead of %q incase > long long and quad_t are not the same. > > 1.5 +2 -2 src/usr.bin/cmp/misc.c > 1.14 +4 -2 src/usr.bin/cmp/regular.c > 1.7 +2 -1 src/usr.bin/cmp/special.c This breaks C90 support, not to mention K&R support. Some committers recently took a detour to implement C99's intmax_t and %j so that it wouldn't take several rounds of commits to print typedefed scalar types properly (these are library features, unlike "long long", so they can be implemented without breaking C90 support). The most important part of the detour was completed in: ! RCS file: /home/ncvs/src/lib/libc/stdio/vfprintf.c,v ! Working file: vfprintf.c ! head: 1.32 ! ---------------------------- ! revision 1.32 ! date: 2001/11/30 06:12:15; author: fenner; state: Exp; lines: +233 -115 ! Implement several of the c99 updates to printf(3): ! - New length modifiers: hh, j, t, z. %ll should not be used to print typedefed types after this. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204123825.A4441-100000>