diff options
author | Andy Wingo <wingo@pobox.com> | 2011-11-18 11:50:50 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2012-07-28 13:03:04 +0200 |
commit | 6d46f1e48a76e3e5c9066a6e9ed417ac253d9d87 (patch) | |
tree | 5e88b8523fb20ea310343a9655096cab42a7e947 /libguile/struct.h | |
parent | 41a9e8829c1720da01f3bd471552688806478a51 (diff) | |
download | guile-6d46f1e48a76e3e5c9066a6e9ed417ac253d9d87.tar.gz |
deprecate make-vtable-vtable
* libguile/struct.h:
* libguile/struct.c (scm_make_vtable_vtable): Deprecate, as you can
handle most of the use cases with make-vtable, and we don't want to
promote the creation of new roots to the type hierarchy.
(scm_i_make_vtable_vtable): The internal replacement.
Diffstat (limited to 'libguile/struct.h')
-rw-r--r-- | libguile/struct.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libguile/struct.h b/libguile/struct.h index 743e7ae66..3072f24bf 100644 --- a/libguile/struct.h +++ b/libguile/struct.h @@ -180,7 +180,10 @@ SCM_API SCM scm_c_make_struct (SCM vtable, size_t n_tail, size_t n_inits, SCM_API SCM scm_c_make_structv (SCM vtable, size_t n_tail, size_t n_inits, scm_t_bits init[]); SCM_API SCM scm_make_vtable (SCM fields, SCM printer); -SCM_API SCM scm_make_vtable_vtable (SCM extra_fields, SCM tail_array_size, SCM init); +SCM_INTERNAL SCM scm_i_make_vtable_vtable (SCM extra_fields); +#if SCM_ENABLE_DEPRECATED == 1 +SCM_DEPRECATED SCM scm_make_vtable_vtable (SCM extra_fields, SCM tail_array_size, SCM init); +#endif SCM_API SCM scm_struct_ref (SCM handle, SCM pos); SCM_API SCM scm_struct_set_x (SCM handle, SCM pos, SCM val); SCM_API SCM scm_struct_vtable (SCM handle); |