make SCM_I_SETJMP and SCM_I_LONGJMP private
[bpt/guile.git] / libguile / deprecated.h
CommitLineData
19e2247d
MV
1/* This file contains definitions for deprecated features. When you
2 deprecate something, move it here when that is feasible.
3*/
4
5#ifndef SCM_DEPRECATED_H
6#define SCM_DEPRECATED_H
7
79488112 8/* Copyright (C) 2003,2004, 2005, 2006, 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
19e2247d 9 *
73be1d9e 10 * This library is free software; you can redistribute it and/or
53befeb7
NJ
11 * modify it under the terms of the GNU Lesser General Public License
12 * as published by the Free Software Foundation; either version 3 of
13 * the License, or (at your option) any later version.
19e2247d 14 *
53befeb7
NJ
15 * This library is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
73be1d9e
MV
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19e2247d 19 *
73be1d9e
MV
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
53befeb7
NJ
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * 02110-1301 USA
73be1d9e 24 */
19e2247d
MV
25
26#include "libguile/__scm.h"
55d30fac 27#include "libguile/strings.h"
a3e92377 28#include "libguile/eval.h"
ec16eb78 29#include "libguile/throw.h"
8a4ed2dd 30#include "libguile/iselect.h"
19e2247d
MV
31
32#if (SCM_ENABLE_DEPRECATED == 1)
33
b2feee6b
AW
34/* Deprecated 13-05-2011 because it's better just to scm_dynwind_begin.
35 That also avoids the temptation to stuff pointers in an SCM. */
36
37typedef SCM (*scm_t_inner) (void *);
38SCM_DEPRECATED SCM scm_internal_dynamic_wind (scm_t_guard before,
39 scm_t_inner inner,
40 scm_t_guard after,
41 void *inner_data,
42 void *guard_data);
43
86fb1eb6 44
965445d4
MV
45#define SCM_LIST0 SCM_EOL
46#define SCM_LIST1(e0) scm_cons ((e0), SCM_EOL)
47#define SCM_LIST2(e0, e1) scm_cons2 ((e0), (e1), SCM_EOL)
48#define SCM_LIST3(e0, e1, e2) scm_cons ((e0), SCM_LIST2 ((e1), (e2)))
49#define SCM_LIST4(e0, e1, e2, e3)\
50 scm_cons2 ((e0), (e1), SCM_LIST2 ((e2), (e3)))
51#define SCM_LIST5(e0, e1, e2, e3, e4)\
52 scm_cons ((e0), SCM_LIST4 ((e1), (e2), (e3), (e4)))
53#define SCM_LIST6(e0, e1, e2, e3, e4, e5)\
54 scm_cons2 ((e0), (e1), SCM_LIST4 ((e2), (e3), (e4), (e5)))
55#define SCM_LIST7(e0, e1, e2, e3, e4, e5, e6)\
56 scm_cons ((e0), SCM_LIST6 ((e1), (e2), (e3), (e4), (e5), (e6)))
57#define SCM_LIST8(e0, e1, e2, e3, e4, e5, e6, e7)\
58 scm_cons2 ((e0), (e1), SCM_LIST6 ((e2), (e3), (e4), (e5), (e6), (e7)))
59#define SCM_LIST9(e0, e1, e2, e3, e4, e5, e6, e7, e8)\
60 scm_cons ((e0),\
61 SCM_LIST8 ((e1), (e2), (e3), (e4), (e5), (e6), (e7), (e8)))
62
fc7bd367
AW
63#define SCM_OPDIRP SCM_OPDIRP__GONE__REPLACE_WITH__SCM_DIRP_and_SCM_DIR_OPEN_P
64#define SCM_PROCEDURE SCM_PROCEDURE__GONE__REPLACE_WITH__scm_procedure
65#define SCM_PROCEDURE_WITH_SETTER_P SCM_PROCEDURE_WITH_SETTER_P__GONE__REPLACE_WITH__scm_is_true__scm_procedure_with_setter_p
66#define SCM_SETTER SCM_SETTER__GONE__REPLACE_WITH__scm_setter
67#define SCM_VALIDATE_NUMBER_COPY SCM_VALIDATE_NUMBER_COPY__GONE__REPLACE_WITH__SCM_VALIDATE_DOUBLE_COPY
68#define SCM_VALIDATE_NUMBER_DEF_COPY SCM_VALIDATE_NUMBER_DEF_COPY__GONE__REPLACE_WITH__SCM_UNBNDP_and_SCM_VALIDATE_DOUBLE_COPY
69#define SCM_VALIDATE_OPDIR SCM_VALIDATE_OPDIR__GONE
70#define SCM_VALIDATE_STRING_COPY SCM_VALIDATE_STRING_COPY__GONE
71#define SCM_VALIDATE_SUBSTRING_SPEC_COPY SCM_VALIDATE_SUBSTRING_SPEC_COPY__GONE
72#define scm_array scm_array__GONE__REPLACE_WITH__scm_t_array
73#define scm_array_dim scm_array_dim__GONE__REPLACE_WITH__scm_t_array_dim
74#define scm_fport scm_fport__GONE__REPLACE_WITH__scm_t_fport
75#define scm_listify scm_listify__GONE__REPLACE_WITH__scm_list_n
76#define scm_option scm_option__GONE__REPLACE_WITH__scm_t_option
77#define scm_port scm_port__GONE__REPLACE_WITH__scm_t_port
78#define scm_port_rw_active scm_port_rw_active__GONE__REPLACE_WITH__scm_t_port_rw_active
79#define scm_ptob_descriptor scm_ptob_descriptor__GONE__REPLACE_WITH__scm_t_ptob_descriptor
80#define scm_rng scm_rng__GONE__REPLACE_WITH__scm_t_rng
81#define scm_rstate scm_rstate__GONE__REPLACE_WITH__scm_t_rstate
82#define scm_sizet scm_sizet__GONE__REPLACE_WITH__size_t
83#define scm_srcprops scm_srcprops__GONE__REPLACE_WITH__scm_t_srcprops
84#define scm_srcprops_chunk scm_srcprops_chunk__GONE__REPLACE_WITH__scm_t_srcprops_chunk
85#define scm_struct_i_flags scm_struct_i_flags__GONE__REPLACE_WITH__scm_vtable_index_flags
86#define scm_struct_i_free scm_struct_i_free__GONE__REPLACE_WITH__scm_vtable_index_instance_finalize
87#define scm_subr_entry scm_subr_entry__GONE__REPLACE_WITH__scm_t_subr_entry
88#define scm_substring_move_left_x scm_substring_move_left_x__GONE__REPLACE_WITH__scm_substring_move_x
89#define scm_substring_move_right_x scm_substring_move_right_x__GONE__REPLACE_WITH__scm_substring_move_x
90#define scm_vtable_index_printer scm_vtable_index_printer__GONE__REPLACE_WITH__scm_vtable_index_instance_printer
91#define scm_vtable_index_vtable scm_vtable_index_vtable__GONE__REPLACE_WITH__scm_vtable_index_self
92typedef scm_i_t_array scm_i_t_array__GONE__REPLACE_WITH__scm_t_array;
f3c6a02c
AW
93
94\f
95
55d30fac 96void scm_i_init_deprecated (void);
19e2247d 97
55d30fac 98#endif
19e2247d 99
55d30fac 100#endif /* SCM_DEPRECATED_H */