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: Summary of config.h variables and questions. Date: Fri, 07 Mar 2003 08:10:52 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87of4okuxf.fsf@zip.com.au> References: <87znoal646.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046988883 19436 80.91.224.249 (6 Mar 2003 22:14:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2003 22:14:43 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 06 23:14:39 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 18r3dO-00052n-00 for ; Thu, 06 Mar 2003 23:14:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18r3cW-0003yM-02 for guile-devel@m.gmane.org; Thu, 06 Mar 2003 17:13:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18r3bs-0003h1-00 for guile-devel@gnu.org; Thu, 06 Mar 2003 17:13:04 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18r3bn-0003Z7-00 for guile-devel@gnu.org; Thu, 06 Mar 2003 17:13:02 -0500 Original-Received: from sunny.pacific.net.au ([203.2.228.40]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18r3aW-00034d-00 for guile-devel@gnu.org; Thu, 06 Mar 2003 17:11:41 -0500 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h26MBdJH014854 for ; Fri, 7 Mar 2003 09:11:39 +1100 (EST) Original-Received: from localhost (ppp28.dyn228.pacific.net.au [203.143.228.28]) by wisma.pacific.net.au (8.8.8+Sun/8.8.8) with ESMTP id JAA03951 for ; Fri, 7 Mar 2003 09:11:38 +1100 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 18r3Zk-0000Ri-00; Fri, 07 Mar 2003 08:10:52 +1000 Original-To: guile-devel@gnu.org User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-pc-linux-gnu) 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:2041 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2041 Rob Browning writes: > > Note that "const" and "inline" above are normally #defined by > configure in config.h to be something suitable for the given platform > when possible, or #undef'ed otherwise. If we have been (or want to) > take advantage of this facility in our public headers, we probably > need to use SCM_INLINE and SCM_CONST or similar... It's worth bearing in mind that const and inline are aspects of the compiler, so ideally they'd be determined based on #ifdefs, allowing an application to be built with a different compiler than guile was compiled with. I'd suspect const doesn't need to be tested these days, especially not if K&R isn't supported by the rest of the header file stuff. For inline, maybe just testing for gcc or C++ would be enough, and let anyone using a vendor compiler put their hand up. If inline is only used for optimizations then there'd be no great loss if a few non-free compilers missed out on it. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel