From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Portability bug with UINTPTR_MAX in Solaris/Forte Date: Tue, 24 Jun 2003 09:05:34 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87wufcqts1.fsf@zip.com.au> References: <87isr0cjlb.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056409791 22926 80.91.224.249 (23 Jun 2003 23:09:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2003 23:09:51 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jun 24 01:09:47 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19UaRX-0005x6-00 for ; Tue, 24 Jun 2003 01:09:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UaRj-0002jr-R1 for guile-devel@m.gmane.org; Mon, 23 Jun 2003 19:09:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19UaPX-00025H-A8 for guile-devel@gnu.org; Mon, 23 Jun 2003 19:07:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19UaPM-0001rV-K4 for guile-devel@gnu.org; Mon, 23 Jun 2003 19:07:35 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UaNm-0001NG-Gh for guile-devel@gnu.org; Mon, 23 Jun 2003 19:05:54 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h5NN5oYd015028; Tue, 24 Jun 2003 09:05:51 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h5NN5oQg003038; Tue, 24 Jun 2003 09:05:50 +1000 (EST) Original-Received: from localhost (ppp97.dyn228.pacific.net.au [203.143.228.97]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h5NN5lnh024100; Tue, 24 Jun 2003 09:05:48 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19UaNT-0000WU-00; Tue, 24 Jun 2003 09:05:35 +1000 Original-To: Matthias Koeppe Mail-Copies-To: never In-Reply-To: (Matthias Koeppe's message of "Mon, 23 Jun 2003 11:15:27 +0200") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2574 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2574 Matthias Koeppe writes: > > (I still think that tricky > things like this should be checked at `configure' time, rather than > during compilation, though.) Oh, well, no need to add to the configure script if a cpp conditional can do it cleanly and portably. > +/* On Solaris 7 and 8, /usr/include/sys/int_limits.h defines > + INTPTR_MAX and UINTPTR_MAX to empty, INTPTR_MIN is not defined. That's a typo there is it? Only UINTPTR_MAX defined to empty. > +#if SCM_SIZEOF_INTPTR_T != 0 && defined(INTPTR_MAX) && defined(INTPTR_MIN) && INTPTR_MAX-0 != 0 && INTPTR_MIN-0 != 0 While you're at it you might like to merge the tests so scm_t_bits and scm_t_signed_bits are both based on "intptr" stuff, or both on "long", rather than having separate conditionals. Wouldn't want them to come out different. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel