diff --git a/NEWS b/NEWS index b7fd69fcf..786177a09 100644 --- a/NEWS +++ b/NEWS @@ -214,6 +214,10 @@ the C variables that control garbage collection. The environment variables GUILE_MAX_SEGMENT_SIZE, GUILE_INIT_SEGMENT_SIZE_2, 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 This is in accordance to Guile's naming scheme for types. Note that diff --git a/libguile/ChangeLog b/libguile/ChangeLog index 76823efb3..e9bb2eb37 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -1,3 +1,8 @@ +2002-10-19 Dirk Herrmann + + * 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 * async.h, async.c (scm_system_async): Fixed deprecation to work diff --git a/libguile/evalext.c b/libguile/evalext.c index 16b3ed567..57b32e9e9 100644 --- a/libguile/evalext.c +++ b/libguile/evalext.c @@ -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 * 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_DEFINE (scm_definedp, "defined?", 1, 1, 0, +SCM_DEFINE (scm_defined_p, "defined?", 1, 1, 0, (SCM sym, SCM env), "Return @code{#t} if @var{sym} is defined in the lexical " "environment @var{env}. When @var{env} is not specified, " "look in the top-level environment as defined by the " "current module.") -#define FUNC_NAME s_scm_definedp +#define FUNC_NAME s_scm_defined_p { SCM var; diff --git a/libguile/evalext.h b/libguile/evalext.h index 0f2a7dc65..e0db5d2bc 100644 --- a/libguile/evalext.h +++ b/libguile/evalext.h @@ -51,10 +51,16 @@ 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 void scm_init_evalext (void); +#if (SCM_ENABLE_DEPRECATED == 1) + +#define scm_definedp scm_defined_p + +#endif + #endif /* SCM_EVALEXT_H */ /*