diff options
author | Andy Wingo <wingo@pobox.com> | 2017-09-22 10:25:38 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2017-09-22 10:32:33 +0200 |
commit | fe4a34d20d8342106a46fc2b842a892c17a11920 (patch) | |
tree | b0de9d3b4d1e4231749e8211ca8c80140234e042 /libguile/procs.c | |
parent | 53d4df80c91d0c744e86df421572f60bb9a80261 (diff) | |
download | guile-fe4a34d20d8342106a46fc2b842a892c17a11920.tar.gz |
Deprecate make-struct
* libguile/struct.c: Replace uses of scm_make_struct with
scm_make_struct_no_tail or scm_c_make_struct.
(scm_make_struct_no_tail): Move this function to C instead of Scheme
to be able to deprecate scm_make_struct.
* libguile/struct.h (scm_make_struct_no_tail): New public declaration.
* libguile/deprecated.h:
* libguile/deprecated.c (scm_make_struct): Deprecate.
* libguile/print.c:
* libguile/procs.c:
* libguile/stacks.c: Replace uses of scm_make_struct with
scm_make_struct_no_tail.
* test-suite/tests/coverage.test:
* test-suite/tests/structs.test: Use make-struct/no-tail instead of
make-struct.
* NEWS: Add entry.
Diffstat (limited to 'libguile/procs.c')
-rw-r--r-- | libguile/procs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libguile/procs.c b/libguile/procs.c index 08c5c355e..2329f4a1b 100644 --- a/libguile/procs.c +++ b/libguile/procs.c @@ -1,5 +1,5 @@ /* Copyright (C) 1995, 1996, 1997, 1999, 2000, 2001, 2006, 2008, 2009, - * 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2010, 2011, 2012, 2013, 2017 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -90,8 +90,7 @@ SCM_DEFINE (scm_make_procedure_with_setter, "make-procedure-with-setter", 2, 0, { SCM_VALIDATE_PROC (1, procedure); SCM_VALIDATE_PROC (2, setter); - return scm_make_struct (pws_vtable, SCM_INUM0, - scm_list_2 (procedure, setter)); + return scm_make_struct_no_tail (pws_vtable, scm_list_2 (procedure, setter)); } #undef FUNC_NAME |