2003-03-26 17:02:31 +00:00
|
|
|
|
/* This file contains definitions for deprecated features. When you
|
|
|
|
|
|
deprecate something, move it here when that is feasible.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2012-05-23 11:46:30 +02:00
|
|
|
|
/* Copyright (C) 2003, 2004, 2006, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
2003-03-26 17:02:31 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
|
|
* as published by the Free Software Foundation; either version 3 of
|
|
|
|
|
|
* the License, or (at your option) any later version.
|
2003-03-26 17:02:31 +00:00
|
|
|
|
*
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* This library is distributed in the hope that it will be useful, but
|
|
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
|
* Lesser General Public License for more details.
|
2003-03-26 17:02:31 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
|
|
* 02110-1301 USA
|
2003-04-05 19:15:35 +00:00
|
|
|
|
*/
|
2003-03-26 17:02:31 +00:00
|
|
|
|
|
2008-09-13 15:35:27 +02:00
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
|
# include <config.h>
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
2009-10-02 14:48:22 +02:00
|
|
|
|
#define SCM_BUILDING_DEPRECATED_CODE
|
|
|
|
|
|
|
2003-03-26 17:02:31 +00:00
|
|
|
|
#include "libguile/_scm.h"
|
2003-03-26 17:59:55 +00:00
|
|
|
|
#include "libguile/deprecation.h"
|
2009-11-15 20:50:08 +01:00
|
|
|
|
|
2003-03-26 17:02:31 +00:00
|
|
|
|
#if (SCM_ENABLE_DEPRECATED == 1)
|
|
|
|
|
|
|
2011-05-01 23:00:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
2011-05-13 12:16:56 +02:00
|
|
|
|
SCM
|
|
|
|
|
|
scm_internal_dynamic_wind (scm_t_guard before,
|
|
|
|
|
|
scm_t_inner inner,
|
|
|
|
|
|
scm_t_guard after,
|
|
|
|
|
|
void *inner_data,
|
|
|
|
|
|
void *guard_data)
|
|
|
|
|
|
{
|
|
|
|
|
|
SCM ans;
|
|
|
|
|
|
|
|
|
|
|
|
scm_c_issue_deprecation_warning
|
|
|
|
|
|
("`scm_internal_dynamic_wind' is deprecated. "
|
|
|
|
|
|
"Use the `scm_dynwind_begin' / `scm_dynwind_end' API instead.");
|
|
|
|
|
|
|
|
|
|
|
|
scm_dynwind_begin (SCM_F_DYNWIND_REWINDABLE);
|
|
|
|
|
|
scm_dynwind_rewind_handler (before, guard_data, SCM_F_WIND_EXPLICITLY);
|
|
|
|
|
|
scm_dynwind_unwind_handler (after, guard_data, SCM_F_WIND_EXPLICITLY);
|
|
|
|
|
|
ans = inner (inner_data);
|
|
|
|
|
|
scm_dynwind_end ();
|
|
|
|
|
|
return ans;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2011-05-26 12:34:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SCM
|
|
|
|
|
|
scm_immutable_cell (scm_t_bits car, scm_t_bits cdr)
|
|
|
|
|
|
{
|
|
|
|
|
|
scm_c_issue_deprecation_warning
|
|
|
|
|
|
("scm_immutable_cell is deprecated. Use scm_cell instead.");
|
|
|
|
|
|
|
|
|
|
|
|
return scm_cell (car, cdr);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SCM
|
|
|
|
|
|
scm_immutable_double_cell (scm_t_bits car, scm_t_bits cbr,
|
|
|
|
|
|
scm_t_bits ccr, scm_t_bits cdr)
|
|
|
|
|
|
{
|
|
|
|
|
|
scm_c_issue_deprecation_warning
|
|
|
|
|
|
("scm_immutable_double_cell is deprecated. Use scm_double_cell instead.");
|
|
|
|
|
|
|
|
|
|
|
|
return scm_double_cell (car, cbr, ccr, cdr);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-13 12:16:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
2012-05-23 11:46:30 +02:00
|
|
|
|
|
2003-03-26 17:02:31 +00:00
|
|
|
|
void
|
|
|
|
|
|
scm_i_init_deprecated ()
|
|
|
|
|
|
{
|
|
|
|
|
|
#include "libguile/deprecated.x"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|