(SCM_GC8MARKP, SCM_SETGC8MARK, SCM_CLRGC8MARK):
[bpt/guile.git] / libguile / deprecated.h
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
8 /* Copyright (C) 2003 Free Software Foundation, Inc.
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
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
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25 #include "libguile/__scm.h"
26 #include "libguile/strings.h"
27
28 #if (SCM_ENABLE_DEPRECATED == 1)
29
30 #define scm_substring_move_left_x scm_substring_move_x
31 #define scm_substring_move_right_x scm_substring_move_x
32
33 typedef long long long_long;
34 typedef unsigned long long ulong_long;
35
36 #define scm_sizet size_t
37
38 SCM_API SCM scm_wta (SCM arg, const char *pos, const char *s_subr);
39
40 #define SCM_WNA 8
41 #define SCM_OUTOFRANGE 10
42 #define SCM_NALLOC 11
43
44 SCM_API void scm_register_module_xxx (char *module_name, void *init_func);
45 SCM_API SCM scm_registered_modules (void);
46 SCM_API SCM scm_clear_registered_modules (void);
47
48 SCM_API SCM scm_protect_object (SCM obj);
49 SCM_API SCM scm_unprotect_object (SCM obj);
50
51 #define SCM_SETAND_CAR(x, y) \
52 (SCM_SETCAR ((x), SCM_PACK (SCM_UNPACK (SCM_CAR (x)) & (y))))
53 #define SCM_SETOR_CAR(x, y)\
54 (SCM_SETCAR ((x), SCM_PACK (SCM_UNPACK (SCM_CAR (x)) | (y))))
55 #define SCM_SETAND_CDR(x, y)\
56 (SCM_SETCDR ((x), SCM_PACK (SCM_UNPACK (SCM_CDR (x)) & (y))))
57 #define SCM_SETOR_CDR(x, y)\
58 (SCM_SETCDR ((x), SCM_PACK (SCM_UNPACK (SCM_CDR (x)) | (y))))
59 #define SCM_FREEP(x) (SCM_FREE_CELL_P (x))
60 #define SCM_NFREEP(x) (!SCM_FREE_CELL_P (x))
61 #define SCM_GC8MARKP(x) SCM_GC_MARK_P (x)
62 #define SCM_SETGC8MARK(x) SCM_SET_GC_MARK (x)
63 #define SCM_CLRGC8MARK(x) SCM_CLEAR_GC_MARK (x)
64 #define SCM_GCTYP16(x) SCM_TYP16 (x)
65 #define SCM_GCCDR(x) SCM_CDR (x)
66 SCM_API void scm_remember (SCM * ptr);
67
68 SCM_API SCM scm_the_root_module (void);
69 SCM_API SCM scm_make_module (SCM name);
70 SCM_API SCM scm_ensure_user_module (SCM name);
71 SCM_API SCM scm_load_scheme_module (SCM name);
72
73 #define scm_port scm_t_port
74 #define scm_ptob_descriptor scm_t_ptob_descriptor
75 #define scm_port_rw_active scm_t_port_rw_active
76
77 SCM_API SCM scm_close_all_ports_except (SCM ports);
78
79 #define scm_rstate scm_t_rstate
80 #define scm_rng scm_t_rng
81
82 #define SCM_SLOPPY_CONSP(x) ((1 & SCM_CELL_TYPE (x)) == 0)
83 #define SCM_SLOPPY_NCONSP(x) (!SCM_SLOPPY_CONSP(x))
84
85 #define scm_tc7_ssymbol scm_tc7_symbol
86 #define scm_tc7_msymbol scm_tc7_symbol
87 #define scm_tcs_symbols scm_tc7_symbol
88
89 void scm_i_init_deprecated (void);
90
91 #endif
92
93 #endif /* SCM_DEPRECATED_H */
94
95 #if 0
96 /* TODO */
97
98 scm_variable_set_name_hint
99 scm_builtin_variable
100 SCM_VARVCELL
101 SCM_UDVARIABLEP
102 SCM_DEFVARIABLEP
103 scm_internal_with_fluids
104
105 scm_make_gsubr
106 scm_make_gsubr_with_generic
107 scm_create_hook
108 list*
109
110 SCM_LIST0
111 SCM_LIST1
112 SCM_LIST2
113 SCM_LIST3
114 SCM_LIST4
115 SCM_LIST5
116 SCM_LIST6
117 SCM_LIST7
118 SCM_LIST8
119 SCM_LIST9
120
121 scm_listify
122 scm_sloppy_memq
123 scm_sloppy_memv
124 scm_sloppy_member
125
126 scm_end_of_file_key
127 scm_read_and_eval_x
128
129 scm_mkbig
130 scm_big2inum
131 scm_adjbig
132 scm_normbig
133
134 scm_copybig
135 scm_2ulong2big
136 scm_dbl2big
137 scm_big2dbl
138 SCM_FIXNUM_BIT
139
140 scm_subr_entry
141 SCM_SUBR_DOC
142 scm_make_subr_opt
143 scm_make_subr
144
145 scm_make_subr_with_generic
146
147 scm_call_catching_errors
148 scm_make_smob_type_mfpe
149 scm_set_smob_mfpe
150
151 scm_strprint_obj
152 scm_read_0str
153 scm_eval_0str
154 SCM_CHARS
155 SCM_UCHARS
156
157 SCM_SETCHARS
158 SCM_SLOPPY_SUBSTRP
159 SCM_SUBSTR_STR
160 SCM_SUBSTR_OFFSET
161
162 SCM_LENGTH_MAX
163 SCM_LENGTH
164 SCM_SETLENGTH
165 SCM_ROSTRINGP
166 SCM_ROLENGTH
167
168 SCM_ROCHARS
169 SCM_ROUCHARS
170 SCM_SUBSTRP
171 SCM_COERCE_SUBSTR
172 scm_strhash
173
174 scm_sym2vcell
175 scm_sym2ovcell_soft
176 scm_sym2ovcell
177
178 scm_intern_obarray_soft
179 scm_intern_obarray
180 scm_intern
181 scm_intern0
182
183 scm_sysintern
184 scm_sysintern0
185 scm_sysintern0_no_module_lookup
186
187 scm_symbol_value0
188 scm_string_to_obarray_symbol
189 scm_intern_symbol
190
191 scm_unintern_symbol
192 scm_symbol_binding
193 scm_symbol_interned_p
194
195 scm_symbol_bound_p
196 scm_symbol_set_x
197 scm_gentemp
198
199 scm_init_symbols_deprecated
200 scm_vector_set_length_x
201
202 SCM_OPDIRP
203
204 scm_fport
205 scm_option
206 SCM_CONST_LONG
207 SCM_VCELL
208 SCM_GLOBAL_VCELL
209
210 SCM_VCELL_INIT
211 SCM_GLOBAL_VCELL_INIT
212 scm_srcprops
213 scm_srcprops_chunk
214
215 scm_info_frame
216 scm_stack
217 scm_array
218 scm_array_dim
219 SCM_ARRAY_CONTIGUOUS
220
221 SCM_HUGE_LENGTH
222 SCM_FUNC_NAME
223 SCM_WTA
224 RETURN_SCM_WTA
225
226 SCM_VALIDATE_NUMBER_COPY
227 SCM_VALIDATE_NUMBER_DEF_COPY
228
229 SCM_VALIDATE_STRINGORSUBSTR
230 SCM_VALIDATE_ROSTRING
231
232 SCM_VALIDATE_ROSTRING_COPY
233 SCM_VALIDATE_NULLORROSTRING_COPY
234
235 SCM_VALIDATE_RWSTRING
236 SCM_VALIDATE_OPDIR
237 scm_small_istr2int
238
239 scm_istr2int
240 scm_istr2flo
241 scm_istring2number
242 scm_istr2int
243
244 scm_istr2flo
245 scm_istring2number
246 scm_vtable_index_vcell
247
248 SCM_ECONSP
249 SCM_NECONSP
250
251 scm_tc16_variable
252
253 #endif