diff options
author | Andy Wingo <wingo@pobox.com> | 2011-05-01 23:00:55 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-05-01 23:01:14 +0200 |
commit | f3c6a02c885ad29f6af0d786e14e34c81d49470f (patch) | |
tree | 474cafafa5a568854070b7900ff3a4116aef1a83 /libguile/deprecated.c | |
parent | 1d9c2e6271105ee0f728127d9b544432b7cc0f4f (diff) | |
download | guile-f3c6a02c885ad29f6af0d786e14e34c81d49470f.tar.gz |
deprecate scm_struct_table
* libguile/goops.h:
* libguile/goops.c (scm_i_define_class_for_vtable): New internal helper,
defines a class for a vtable, relying on the name slot being set
correctly.
(scm_class_of, create_struct_classes): Use the local vtable-to-class
map instead of scm_struct_table.
* libguile/struct.h (SCM_STRUCT_TABLE_NAME, SCM_SET_STRUCT_TABLE_NAME)
(SCM_STRUCT_TABLE_CLASS, SCM_SET_STRUCT_TABLE_CLASS, scm_struct_table)
(scm_struct_create_handle): Deprecate these internals of the map
between structs and classes.
* libguile/deprecated.h:
* libguile/deprecated.c (scm_struct_create_handle): Deprecated code over
here now.
Diffstat (limited to 'libguile/deprecated.c')
-rw-r--r-- | libguile/deprecated.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libguile/deprecated.c b/libguile/deprecated.c index 049807a99..41e4dbcd3 100644 --- a/libguile/deprecated.c +++ b/libguile/deprecated.c @@ -2561,10 +2561,24 @@ scm_whash_insert (SCM whash, SCM key, SCM obj) +SCM scm_struct_table = SCM_BOOL_F; + +SCM +scm_struct_create_handle (SCM obj) +{ + scm_c_issue_deprecation_warning + ("`scm_struct_create_handle' is deprecated, and has no effect."); + + return scm_cons (obj, scm_cons (SCM_BOOL_F, SCM_BOOL_F)); +} + + + void scm_i_init_deprecated () { properties_whash = scm_make_weak_key_hash_table (SCM_UNDEFINED); + scm_struct_table = scm_make_hash_table (SCM_UNDEFINED); #include "libguile/deprecated.x" } |