From owner-cvs-all Mon Dec 3 17:51:16 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id BB7AE37B405; Mon, 3 Dec 2001 17:51:09 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id MAA08540; Tue, 4 Dec 2001 12:51:07 +1100 Date: Tue, 4 Dec 2001 12:51:25 +1100 (EST) From: Bruce Evans X-X-Sender: To: David Malone Cc: , Subject: Re: cvs commit: src/usr.bin/cmp misc.c regular.c special.c In-Reply-To: <200112032056.fB3KuG748305@freefall.freebsd.org> Message-ID: <20011204123825.A4441-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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