diff options
author | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2001-03-30 15:03:23 +0000 |
---|---|---|
committer | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2001-03-30 15:03:23 +0000 |
commit | 22a52da14dd86801cc3a36837601929effde1904 (patch) | |
tree | 3742d5d516018e6fcf53ace4d6f68762e285891c /libguile/macros.h | |
parent | 8715ff170378801396575750c54f32fba3a0b624 (diff) | |
download | guile-22a52da14dd86801cc3a36837601929effde1904.tar.gz |
* Replaced a lot of calls to SCM_C[AD]R with more appropriate macros.
* Minor cleanups to hashtable implementation.
* Minor code beautifications.
Diffstat (limited to 'libguile/macros.h')
-rw-r--r-- | libguile/macros.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libguile/macros.h b/libguile/macros.h index 92436fe95..ccc80dffd 100644 --- a/libguile/macros.h +++ b/libguile/macros.h @@ -1,8 +1,8 @@ /* classes: h_files */ -#ifndef MACROSH -#define MACROSH -/* Copyright (C) 1998, 2000 Free Software Foundation, Inc. +#ifndef SCM_MACROS_H +#define SCM_MACROS_H +/* Copyright (C) 1998,2000,2001 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -51,6 +51,10 @@ #define SCM_ASSYNT(_cond, _msg, _subr) \ if (!(_cond)) scm_misc_error (_subr, _msg, SCM_EOL); +#define SCM_MACROP(x) SCM_TYP16_PREDICATE (scm_tc16_macro, (x)) +#define SCM_MACRO_TYPE(m) (SCM_CELL_WORD_0 (m) >> 16) +#define SCM_MACRO_CODE(m) SCM_CELL_OBJECT_1 (m) + extern scm_bits_t scm_tc16_macro; extern SCM scm_makacro (SCM code); @@ -65,7 +69,7 @@ extern SCM scm_make_synt (const char *name, SCM (*fcn) ()); extern void scm_init_macros (void); -#endif /* MACROSH */ +#endif /* SCM_MACROS_H */ /* Local Variables: |