(SCM_GC8MARKP, SCM_SETGC8MARK, SCM_CLRGC8MARK):
[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
8/* Copyright (C) 2003 Free Software Foundation, Inc.
9 *
73be1d9e
MV
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.
19e2247d 14 *
73be1d9e 15 * This library is distributed in the hope that it will be useful,
19e2247d 16 * but 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
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
19e2247d
MV
24
25#include "libguile/__scm.h"
55d30fac 26#include "libguile/strings.h"
19e2247d
MV
27
28#if (SCM_ENABLE_DEPRECATED == 1)
29
19e2247d
MV
30#define scm_substring_move_left_x scm_substring_move_x
31#define scm_substring_move_right_x scm_substring_move_x
32
55d30fac
MV
33typedef long long long_long;
34typedef unsigned long long ulong_long;
19e2247d 35
55d30fac 36#define scm_sizet size_t
19e2247d 37
55d30fac 38SCM_API SCM scm_wta (SCM arg, const char *pos, const char *s_subr);
19e2247d 39
55d30fac
MV
40#define SCM_WNA 8
41#define SCM_OUTOFRANGE 10
42#define SCM_NALLOC 11
19e2247d 43
55d30fac
MV
44SCM_API void scm_register_module_xxx (char *module_name, void *init_func);
45SCM_API SCM scm_registered_modules (void);
46SCM_API SCM scm_clear_registered_modules (void);
19e2247d 47
a0454d72
MV
48SCM_API SCM scm_protect_object (SCM obj);
49SCM_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))
7aaf8dc9
MD
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)
a0454d72
MV
64#define SCM_GCTYP16(x) SCM_TYP16 (x)
65#define SCM_GCCDR(x) SCM_CDR (x)
66SCM_API void scm_remember (SCM * ptr);
67
68SCM_API SCM scm_the_root_module (void);
69SCM_API SCM scm_make_module (SCM name);
70SCM_API SCM scm_ensure_user_module (SCM name);
71SCM_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
77SCM_API SCM scm_close_all_ports_except (SCM ports);
78
97f28fa4
MV
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
55d30fac 89void scm_i_init_deprecated (void);
19e2247d 90
55d30fac 91#endif
19e2247d 92
55d30fac 93#endif /* SCM_DEPRECATED_H */
19e2247d 94
55d30fac
MV
95#if 0
96/* TODO */
19e2247d 97
19e2247d
MV
98scm_variable_set_name_hint
99scm_builtin_variable
100SCM_VARVCELL
101SCM_UDVARIABLEP
102SCM_DEFVARIABLEP
103scm_internal_with_fluids
104
105scm_make_gsubr
106scm_make_gsubr_with_generic
107scm_create_hook
108list*
109
110SCM_LIST0
111SCM_LIST1
112SCM_LIST2
113SCM_LIST3
114SCM_LIST4
115SCM_LIST5
116SCM_LIST6
117SCM_LIST7
118SCM_LIST8
119SCM_LIST9
120
121scm_listify
122scm_sloppy_memq
123scm_sloppy_memv
124scm_sloppy_member
125
126scm_end_of_file_key
127scm_read_and_eval_x
128
129scm_mkbig
130scm_big2inum
131scm_adjbig
132scm_normbig
133
134scm_copybig
135scm_2ulong2big
136scm_dbl2big
137scm_big2dbl
138SCM_FIXNUM_BIT
139
140scm_subr_entry
141SCM_SUBR_DOC
142scm_make_subr_opt
143scm_make_subr
144
145scm_make_subr_with_generic
146
147scm_call_catching_errors
148scm_make_smob_type_mfpe
149scm_set_smob_mfpe
150
151scm_strprint_obj
152scm_read_0str
153scm_eval_0str
154SCM_CHARS
155SCM_UCHARS
156
157SCM_SETCHARS
158SCM_SLOPPY_SUBSTRP
159SCM_SUBSTR_STR
160SCM_SUBSTR_OFFSET
161
162SCM_LENGTH_MAX
163SCM_LENGTH
164SCM_SETLENGTH
165SCM_ROSTRINGP
166SCM_ROLENGTH
167
168SCM_ROCHARS
169SCM_ROUCHARS
170SCM_SUBSTRP
171SCM_COERCE_SUBSTR
172scm_strhash
173
174scm_sym2vcell
175scm_sym2ovcell_soft
176scm_sym2ovcell
177
178scm_intern_obarray_soft
179scm_intern_obarray
180scm_intern
181scm_intern0
182
183scm_sysintern
184scm_sysintern0
185scm_sysintern0_no_module_lookup
186
187scm_symbol_value0
188scm_string_to_obarray_symbol
189scm_intern_symbol
190
191scm_unintern_symbol
192scm_symbol_binding
193scm_symbol_interned_p
194
195scm_symbol_bound_p
196scm_symbol_set_x
197scm_gentemp
198
199scm_init_symbols_deprecated
200scm_vector_set_length_x
201
202SCM_OPDIRP
203
204scm_fport
205scm_option
206SCM_CONST_LONG
207SCM_VCELL
208SCM_GLOBAL_VCELL
209
210SCM_VCELL_INIT
211SCM_GLOBAL_VCELL_INIT
212scm_srcprops
213scm_srcprops_chunk
214
215scm_info_frame
216scm_stack
217scm_array
218scm_array_dim
219SCM_ARRAY_CONTIGUOUS
220
221SCM_HUGE_LENGTH
222SCM_FUNC_NAME
223SCM_WTA
224RETURN_SCM_WTA
225
226SCM_VALIDATE_NUMBER_COPY
227SCM_VALIDATE_NUMBER_DEF_COPY
228
229SCM_VALIDATE_STRINGORSUBSTR
230SCM_VALIDATE_ROSTRING
231
232SCM_VALIDATE_ROSTRING_COPY
233SCM_VALIDATE_NULLORROSTRING_COPY
234
235SCM_VALIDATE_RWSTRING
236SCM_VALIDATE_OPDIR
237scm_small_istr2int
238
239scm_istr2int
240scm_istr2flo
241scm_istring2number
242scm_istr2int
243
244scm_istr2flo
245scm_istring2number
246scm_vtable_index_vcell
247
248SCM_ECONSP
249SCM_NECONSP
250
251scm_tc16_variable
252
253#endif