mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
remove all deprecated code
* libguile/async.c: * libguile/async.h: * libguile/debug.h: * libguile/deprecated.c: * libguile/deprecated.h: * libguile/evalext.h: * libguile/gc-malloc.c: * libguile/gc.h: * libguile/gen-scmconfig.c: * libguile/numbers.c: * libguile/ports.c: * libguile/ports.h: * libguile/procprop.c: * libguile/procprop.h: * libguile/read.c: * libguile/socket.c: * libguile/srfi-4.h: * libguile/strings.c: * libguile/strings.h: * libguile/tags.h: * module/ice-9/boot-9.scm: * module/ice-9/deprecated.scm: Remove all deprecated code. CPP defines that were not previously issuing warnings were changed so that their expansions would indicate the replacement forms to use, e.g. scm_sizet__GONE__REPLACE_WITH__size_t. The two exceptions were SCM_LISTN, which did not produce warnings before, and the string-filter argument order stuff. Drops the initial dirty memory usage of Guile down to 2.8 MB on my machine, from 4.4 MB.
This commit is contained in:
parent
7fbea320fb
commit
fc7bd367ab
22 changed files with 73 additions and 4745 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006, 2008, 2009, 2010, 2011 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
|
||||
|
@ -22,8 +22,6 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#define SCM_BUILDING_DEPRECATED_CODE
|
||||
|
||||
#include "libguile/_scm.h"
|
||||
#include "libguile/eval.h"
|
||||
#include "libguile/throw.h"
|
||||
|
@ -170,23 +168,6 @@ scm_async_click ()
|
|||
}
|
||||
}
|
||||
|
||||
#if (SCM_ENABLE_DEPRECATED == 1)
|
||||
|
||||
SCM_DEFINE (scm_system_async, "system-async", 1, 0, 0,
|
||||
(SCM thunk),
|
||||
"This function is deprecated. You can use @var{thunk} directly\n"
|
||||
"instead of explicitly creating an async object.\n")
|
||||
#define FUNC_NAME s_scm_system_async
|
||||
{
|
||||
scm_c_issue_deprecation_warning
|
||||
("'system-async' is deprecated. "
|
||||
"Use the procedure directly with 'system-async-mark'.");
|
||||
return thunk;
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
#endif /* SCM_ENABLE_DEPRECATED == 1 */
|
||||
|
||||
void
|
||||
scm_i_queue_async_cell (SCM c, scm_i_thread *t)
|
||||
{
|
||||
|
@ -341,47 +322,6 @@ SCM_DEFINE (scm_noop, "noop", 0, 0, 1,
|
|||
|
||||
|
||||
|
||||
#if (SCM_ENABLE_DEPRECATED == 1)
|
||||
|
||||
SCM_DEFINE (scm_unmask_signals, "unmask-signals", 0, 0, 0,
|
||||
(),
|
||||
"Unmask signals. The returned value is not specified.")
|
||||
#define FUNC_NAME s_scm_unmask_signals
|
||||
{
|
||||
scm_i_thread *t = SCM_I_CURRENT_THREAD;
|
||||
|
||||
scm_c_issue_deprecation_warning
|
||||
("'unmask-signals' is deprecated. "
|
||||
"Use 'call-with-blocked-asyncs' instead.");
|
||||
|
||||
if (t->block_asyncs == 0)
|
||||
SCM_MISC_ERROR ("signals already unmasked", SCM_EOL);
|
||||
t->block_asyncs = 0;
|
||||
scm_async_click ();
|
||||
return SCM_UNSPECIFIED;
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
|
||||
SCM_DEFINE (scm_mask_signals, "mask-signals", 0, 0, 0,
|
||||
(),
|
||||
"Mask signals. The returned value is not specified.")
|
||||
#define FUNC_NAME s_scm_mask_signals
|
||||
{
|
||||
scm_i_thread *t = SCM_I_CURRENT_THREAD;
|
||||
|
||||
scm_c_issue_deprecation_warning
|
||||
("'mask-signals' is deprecated. Use 'call-with-blocked-asyncs' instead.");
|
||||
|
||||
if (t->block_asyncs > 0)
|
||||
SCM_MISC_ERROR ("signals already masked", SCM_EOL);
|
||||
t->block_asyncs = 1;
|
||||
return SCM_UNSPECIFIED;
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
#endif /* SCM_ENABLE_DEPRECATED == 1 */
|
||||
|
||||
static void
|
||||
increase_block (void *data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue