diff options
author | Marius Vollmer <mvo@zagadka.de> | 2001-07-25 15:28:07 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2001-07-25 15:28:07 +0000 |
commit | dbf5dfb3c1e937b12261a32c47ee3f14ee7e3325 (patch) | |
tree | 076382ec22702196e3cbf7acbb6f1c88459885c2 /libguile/variable.h | |
parent | e5aca4b5c428232510ea207b895e894e0295401b (diff) | |
download | guile-dbf5dfb3c1e937b12261a32c47ee3f14ee7e3325.tar.gz |
* variable.h (scm_tc16_variable): Removed.
(SCM_VARIABLEP): Test for new tc7 code.
(scm_i_variable_print): New.
* variable.c (scm_tc16_variable): Removed.
(variable_print): Renamed to scm_i_variable_print and made
non-static.
(variable_equal_p): Removed.
(make_variable): Construct a tc7 object instead of a smob.
(scm_init_variable): Do not register smob.
Diffstat (limited to 'libguile/variable.h')
-rw-r--r-- | libguile/variable.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/variable.h b/libguile/variable.h index 014fc821f..577f1f820 100644 --- a/libguile/variable.h +++ b/libguile/variable.h @@ -52,9 +52,7 @@ /* Variables */ -extern scm_t_bits scm_tc16_variable; - -#define SCM_VARIABLEP(X) SCM_SMOB_PREDICATE (scm_tc16_variable, X) +#define SCM_VARIABLEP(X) (SCM_NIMP(X) && SCM_TYP7(X) == scm_tc7_variable) #if !SCM_ENABLE_VCELLS #define SCM_VARIABLE_REF(V) SCM_CELL_OBJECT_1(V) @@ -83,6 +81,8 @@ extern SCM scm_variable_set_name_hint (SCM var, SCM hint); extern SCM scm_builtin_variable (SCM name); #endif +extern void scm_i_variable_print (SCM var, SCM port, scm_print_state *pstate); + extern void scm_init_variable (void); #endif /* SCM_VARIABLE_H */ |