This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
SCM_MAGIC_SNARFER
- To: guile at sourceware dot cygnus dot com
- Subject: SCM_MAGIC_SNARFER
- From: Kalle Olavi Niemitalo <tosi at stekt dot oulu dot fi>
- Date: 20 Mar 2000 15:47:09 +0200
The current version of guile-snarf defines SCM_MAGIC_SNARFER.
Will future versions keep doing that?
In the guile-emacs project, I and Ken Raeburn would like to snarf
via a temporary file so that guileapi.x can't get clobbered if
something goes wrong:
guileapi.x: guileapi.c
$(GUILE-SNARF) -I. -I$(srcdir) $(CPPFLAGS) $(srcdir)/guileapi.c \
> guileapi.tmp && mv guileapi.tmp guileapi.x
Currently, this method doesn't work if guileapi.x doesn't exist:
guileapi.c #includes guileapi.x and cpp will complain. That
could be avoided by not including the file when guile-snarf is
running:
#ifndef SCM_MAGIC_SNARFER
#include "guileapi.x"
#endif
So, can we rely on SCM_MAGIC_SNARFER being defined?