unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
Cc: marius.vollmer@uni-dortmund.de
Subject: A few config.h and scmconfig.h overhaul related issues.
Date: Mon, 17 Mar 2003 14:46:55 -0600	[thread overview]
Message-ID: <87wuixpvpc.fsf@raven.i.defaultvalue.org> (raw)


After switching (back) to the "gen-scmconfig > scmconfig.h" approach
(using a tiny C program), things have gone fairly smoothly.  I have a
tree which (I believe) no longer publically defines any config.h
symbols, other than the few deprecated bits Marius mentioned, that are
not prefixed with SCM_ or GUILE_.

However, there are a few remaining issues I wanted to discuss:

  - Marius suggested deprecate-and-keep DYNAMIC_LINKING, but what
    about --with-modules use (see configure.in)?

  - What was the final word on GUILE_DEBUG_MALLOC?  Should it be
    public or private?  It's never referenced in a public header, but
    do we know our clients don't need it?

  - There are a number of defines in __scm.h that I overlooked before
    when I was only looking at config.h symbols.  What, if anything,
    do we want to do about these?

      BIGNUMS (used in numbers.h, but do we ever *not* define it?)
      TICKS (doesn't appear to be used - remove?)
      ENGNOT (never used publically -- move to _scm.h?)
      CCLO (never used publically -- move to _scm.h?)
      SICP (never used publically -- move to _scm.h?)
      STACK_CHECKING (can we replace with existing SCM_STACK_CHECKING_P?)
      NO_CEVAL_STACK_CHECKING (doesn't appear to be used -- remove?)

  - the only public use of (SCM_)HAVE_STDC_HEADERS is in numbers.h, as
    is the only public use of HAVE_FLOATINGPOINT_H, HAVE_IEEEFP_H, and
    HAVE_NAN_H.  I can just change these to SCM_HAVE_NAN_H, etc. if
    needed, but I wanted to make sure no one else had an alternative.
    I was able to remove the public use of many of the private
    config.h symbols by computing #defines in gen-scmconfig, but I'm
    pretty sure that won't work in this case -- especially since we
    probably don't want to have scmconfig.h including nan.h, whenever
    available, etc.

  - I'm not sure we care, but there are a number of #defines that are
    never used like SCM_SINGLES.

  - should we be using #include <libguile/__scm.h> in our public
    headers rather than #include "libguile/__scm.h"?

  - at the moment we don't always include config.h and scmconfig.h (or
    their parallels _scm.h and __scm.h) *before* any other includes.
    Sometimes we include various system headers or similar and then
    #include "libguile/__scm.h" or similar.  I suspect we should
    probably change this.  The main reason is that our public and
    private config headers may define things that affect the system
    header includes, things like _GNU_SOURCE that need to be defined
    first.

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


             reply	other threads:[~2003-03-17 20:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-17 20:46 Rob Browning [this message]
2003-03-18 18:13 ` A few config.h and scmconfig.h overhaul related issues Rob Browning

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wuixpvpc.fsf@raven.i.defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=marius.vollmer@uni-dortmund.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).