This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SCM_MAGIC_SNARFER


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]