From: rixed@happyleptic.org
To: guile-user@gnu.org
Subject: Now that SCM type is a union...
Date: Fri, 12 Aug 2011 14:44:36 +0200 [thread overview]
Message-ID: <20110812124436.GA2223@ccellier.rd.securactive.lan> (raw)
Between stable-2.0 and master a patch changed the C representation
of the SCM type so that it is now a union.
This code :
static SCM foo = SCM_UNSPECIFIED;
now expands to something similar to :
static SCM foo = (SCM) { ... };
This form (casting a struct or union initializer while initializing a
global identifier) is for some reason invalid when gcc is called with
"-std=c99" (I was about to say : "was invalid in c99", but who really
knowns?) nor "-std=gnu99" (although it works when std is set to c89 or
gnu89).
I tried to get rid of the cast to (SCM) in tags.h but the compilation
then fails since some code relies on the cast to SCM.
So, lets suppose I have an app written in c99 that I want to extend with
guile, how could I compile it ?
next reply other threads:[~2011-08-12 12:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 12:44 rixed [this message]
2011-08-13 5:26 ` Now that SCM type is a union Ken Raeburn
2011-08-13 10:40 ` rixed
2011-08-13 12:23 ` Andy Wingo
2011-08-13 22:00 ` Ken Raeburn
2011-08-14 20:10 ` Andy Wingo
2011-08-15 2:04 ` Ken Raeburn
2011-08-15 2:21 ` Ken Raeburn
2011-09-15 19:54 ` Andy Wingo
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=20110812124436.GA2223@ccellier.rd.securactive.lan \
--to=rixed@happyleptic.org \
--cc=guile-user@gnu.org \
/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).