Date: Sat, 7 Aug 1999 15:04:53 -0400 (EDT) From: "Brian F. Feldman" <green@FreeBSD.org> To: Warner Losh <imp@village.org> Cc: Don Lewis <Don.Lewis@tsc.tdk.com>, Sheldon Hearn <sheldonh@uunet.co.za>, freebsd-hackers@FreeBSD.org Subject: Re: quad_t and portability Message-ID: <Pine.BSF.4.10.9908071503370.23407-100000@janus.syracuse.net> In-Reply-To: <199908070652.AAA08080@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 7 Aug 1999, Warner Losh wrote: > In message <Pine.BSF.4.10.9908070248001.11809-100000@janus.syracuse.net> "Brian F. Feldman" writes: > : Sorry, kinda used to quad rather than long long. I'm pretty sure ll > : isn't yet supported by the kernel printf functions... > > You may be right about that. The simple solution to this, which I'd like to see, is: --- subr_prf.c.orig Sat Aug 7 14:52:55 1999 +++ subr_prf.c Sat Aug 7 15:03:19 1999 @@ -599,7 +599,11 @@ base = 10; goto number; case 'l': - lflag = 1; + if (lflag) { + lflag = 0; + qflag = 1; + } else + lflag = 1; goto reswitch; case 'o': if (qflag) And yes, a quadword is defined by us as being 64 bits, as a long long is defined in C9X. So I don't see any kind of problem doing this as a solution, period. > > Warner > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908071503370.23407-100000>