1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

* 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.
This commit is contained in:
Marius Vollmer 2001-07-25 15:28:07 +00:00
parent e5aca4b5c4
commit dbf5dfb3c1
2 changed files with 22 additions and 19 deletions

View file

@ -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 */