summaryrefslogtreecommitdiff
path: root/libguile/_scm.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@red-bean.com>1996-10-29 20:49:56 +0000
committerJim Blandy <jimb@red-bean.com>1996-10-29 20:49:56 +0000
commit5b4215a8b578bd898271490115b9e76184f25ee7 (patch)
treed97afac9bd2d69c8eef4048575a8b0bb1e44227e /libguile/_scm.h
parent581a242ba5fab52bc66686bdc4d8cd79d7f0842d (diff)
downloadguile-5b4215a8b578bd898271490115b9e76184f25ee7.tar.gz
* snarf.h: New file.
* guile-snarf.sh: New file. * Makefile.in (inner_h_files): Added snarf.h (ancillary, install, uninstall, distclean): Added actions for guile-snarf. (.c.x): Use guile-snarf. (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh. (gen_c_files): Note that these depend on guile-snarf. * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are now in "snarf.h". Added #include "snarf.h" to get them. * configure.in: Added guile-snarf to AC_OUTPUT * libguile.h: Added #include "snarf.h". (Patches applied and tweaked by Jim Blandy.)
Diffstat (limited to 'libguile/_scm.h')
-rw-r--r--libguile/_scm.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/libguile/_scm.h b/libguile/_scm.h
index 350246a15..16d87c66b 100644
--- a/libguile/_scm.h
+++ b/libguile/_scm.h
@@ -69,6 +69,7 @@
#include "../threads/threads.h" /* Some thread packages does switching
at async ticks. */
#endif
+#include "snarf.h" /* Everyone snarfs. */
/* On VMS, GNU C's errno.h contains a special hack to get link attributes
* for errno correct for linking to the C RTL.
@@ -112,44 +113,6 @@
-#ifndef SCM_MAGIC_SNARFER
-#define SCM_PROC(RANAME, STR, REQ, OPT, VAR, CFN) \
- static char RANAME[]=STR
-#define SCM_PROC1(RANAME, STR, TYPE, CFN) \
- static char RANAME[]=STR
-#else
-#define SCM_PROC(RANAME, STR, REQ, OPT, VAR, CFN) \
-%%% scm_make_gsubr (RANAME, REQ, OPT, VAR, CFN)
-#define SCM_PROC1(RANAME, STR, TYPE, CFN) \
-%%% scm_make_subr(RANAME, TYPE, CFN)
-#endif
-
-#ifndef SCM_MAGIC_SNARFER
-#define SCM_SYMBOL(c_name, scheme_name) \
- static SCM c_name = SCM_BOOL_F
-#else
-#define SCM_SYMBOL(C_NAME, SCHEME_NAME) \
-%%% C_NAME = scm_permanent_object (SCM_CAR (scm_intern0 (SCHEME_NAME)))
-#endif
-
-
-#ifndef SCM_MAGIC_SNARFER
-#define SCM_GLOBAL(c_name, scheme_name) \
- static SCM c_name = SCM_BOOL_F
-#else
-#define SCM_GLOBAL(C_NAME, SCHEME_NAME) \
-%%% C_NAME = scm_permanent_object (scm_intern0 (SCHEME_NAME)); SCM_SETCDR (C_NAME, SCM_BOOL_F)
-#endif
-
-
-#ifndef SCM_MAGIC_SNARFER
-#define SCM_CONST_LONG(C_NAME, SCHEME_NAME,VALUE) \
- static SCM C_NAME = SCM_BOOL_F
-#else
-#define SCM_CONST_LONG(C_NAME, SCHEME_NAME,VALUE) \
-%%% C_NAME = scm_permanent_object (scm_intern0 (SCHEME_NAME)); SCM_SETCDR (C_NAME, scm_long2num (VALUE))
-#endif
-
#define min(A,B) ((A) <= (B) ? (A) : (B))
#define max(A,B) ((A) >= (B) ? (A) : (B))