mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* evalext.h, evalext.c (scm_definedp, scm_defined_p): Renamed
scm_definedp to scm_defined_p and deprecated scm_definedp.
This commit is contained in:
parent
100ae50db2
commit
5ec1d2c8e0
4 changed files with 19 additions and 4 deletions
4
NEWS
4
NEWS
|
@ -214,6 +214,10 @@ the C variables that control garbage collection. The environment
|
||||||
variables GUILE_MAX_SEGMENT_SIZE, GUILE_INIT_SEGMENT_SIZE_2,
|
variables GUILE_MAX_SEGMENT_SIZE, GUILE_INIT_SEGMENT_SIZE_2,
|
||||||
GUILE_INIT_SEGMENT_SIZE_1, and GUILE_MIN_YIELD_2 should be used.
|
GUILE_INIT_SEGMENT_SIZE_1, and GUILE_MIN_YIELD_2 should be used.
|
||||||
|
|
||||||
|
** The function scm_definedp has been renamed to scm_defined_p
|
||||||
|
|
||||||
|
The name scm_definedp is deprecated.
|
||||||
|
|
||||||
** The struct scm_cell has been renamed to scm_t_cell
|
** The struct scm_cell has been renamed to scm_t_cell
|
||||||
|
|
||||||
This is in accordance to Guile's naming scheme for types. Note that
|
This is in accordance to Guile's naming scheme for types. Note that
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2002-10-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||||
|
|
||||||
|
* evalext.h, evalext.c (scm_definedp, scm_defined_p): Renamed
|
||||||
|
scm_definedp to scm_defined_p and deprecated scm_definedp.
|
||||||
|
|
||||||
2002-10-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
2002-10-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||||
|
|
||||||
* async.h, async.c (scm_system_async): Fixed deprecation to work
|
* async.h, async.c (scm_system_async): Fixed deprecation to work
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1998,1999,2000,2001 Free Software Foundation, Inc.
|
/* Copyright (C) 1998,1999,2000,2001,2002 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -67,13 +67,13 @@ scm_m_generalized_set_x (SCM xorig, SCM env SCM_UNUSED)
|
||||||
scm_misc_error (scm_s_set_x, scm_s_variable, SCM_EOL);
|
scm_misc_error (scm_s_set_x, scm_s_variable, SCM_EOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
SCM_DEFINE (scm_definedp, "defined?", 1, 1, 0,
|
SCM_DEFINE (scm_defined_p, "defined?", 1, 1, 0,
|
||||||
(SCM sym, SCM env),
|
(SCM sym, SCM env),
|
||||||
"Return @code{#t} if @var{sym} is defined in the lexical "
|
"Return @code{#t} if @var{sym} is defined in the lexical "
|
||||||
"environment @var{env}. When @var{env} is not specified, "
|
"environment @var{env}. When @var{env} is not specified, "
|
||||||
"look in the top-level environment as defined by the "
|
"look in the top-level environment as defined by the "
|
||||||
"current module.")
|
"current module.")
|
||||||
#define FUNC_NAME s_scm_definedp
|
#define FUNC_NAME s_scm_defined_p
|
||||||
{
|
{
|
||||||
SCM var;
|
SCM var;
|
||||||
|
|
||||||
|
|
|
@ -51,10 +51,16 @@
|
||||||
|
|
||||||
|
|
||||||
SCM_API SCM scm_m_generalized_set_x (SCM xorig, SCM env);
|
SCM_API SCM scm_m_generalized_set_x (SCM xorig, SCM env);
|
||||||
SCM_API SCM scm_definedp (SCM sym, SCM env);
|
SCM_API SCM scm_defined_p (SCM sym, SCM env);
|
||||||
SCM_API SCM scm_m_undefine (SCM x, SCM env);
|
SCM_API SCM scm_m_undefine (SCM x, SCM env);
|
||||||
SCM_API void scm_init_evalext (void);
|
SCM_API void scm_init_evalext (void);
|
||||||
|
|
||||||
|
#if (SCM_ENABLE_DEPRECATED == 1)
|
||||||
|
|
||||||
|
#define scm_definedp scm_defined_p
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* SCM_EVALEXT_H */
|
#endif /* SCM_EVALEXT_H */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue