mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* deprecated.c, deprecated.h: New files, to collect deprecated
things in one place. * Makefile.am: Added them in all the right places.
This commit is contained in:
parent
68bff0bd14
commit
19e2247dc7
2 changed files with 368 additions and 0 deletions
65
libguile/deprecated.c
Normal file
65
libguile/deprecated.c
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
/* This file contains definitions for deprecated features. When you
|
||||||
|
deprecate something, move it here when that is feasible.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Copyright (C) 2003 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
|
||||||
|
* the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this software; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
|
* Boston, MA 02111-1307 USA
|
||||||
|
*
|
||||||
|
* As a special exception, the Free Software Foundation gives permission
|
||||||
|
* for additional uses of the text contained in its release of GUILE.
|
||||||
|
*
|
||||||
|
* The exception is that, if you link the GUILE library with other files
|
||||||
|
* to produce an executable, this does not by itself cause the
|
||||||
|
* resulting executable to be covered by the GNU General Public License.
|
||||||
|
* Your use of that executable is in no way restricted on account of
|
||||||
|
* linking the GUILE library code into it.
|
||||||
|
*
|
||||||
|
* This exception does not however invalidate any other reasons why
|
||||||
|
* the executable file might be covered by the GNU General Public License.
|
||||||
|
*
|
||||||
|
* This exception applies only to the code released by the
|
||||||
|
* Free Software Foundation under the name GUILE. If you copy
|
||||||
|
* code from other Free Software Foundation releases into a copy of
|
||||||
|
* GUILE, as the General Public License permits, the exception does
|
||||||
|
* not apply to the code that you add in this way. To avoid misleading
|
||||||
|
* anyone as to the status of such modified files, you must delete
|
||||||
|
* this exception notice from them.
|
||||||
|
*
|
||||||
|
* If you write modifications of your own for GUILE, it is your choice
|
||||||
|
* whether to permit this exception to apply to your modifications.
|
||||||
|
* If you do not wish that, delete this exception notice. */
|
||||||
|
|
||||||
|
#include "libguile/_scm.h"
|
||||||
|
#include "libguile/deprecated.h"
|
||||||
|
#include "libguile/snarf.h"
|
||||||
|
#include "libguile/validate.h"
|
||||||
|
#include "libguile/strings.h"
|
||||||
|
#include "libguile/strop.h"
|
||||||
|
|
||||||
|
#if (SCM_ENABLE_DEPRECATED == 1)
|
||||||
|
|
||||||
|
SCM_REGISTER_PROC(s_substring_move_left_x, "substring-move-left!", 5, 0, 0, scm_substring_move_x);
|
||||||
|
|
||||||
|
SCM_REGISTER_PROC(s_substring_move_right_x, "substring-move-right!", 5, 0, 0, scm_substring_move_x);
|
||||||
|
|
||||||
|
void
|
||||||
|
scm_i_init_deprecated ()
|
||||||
|
{
|
||||||
|
#include "libguile/deprecated.x"
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
303
libguile/deprecated.h
Normal file
303
libguile/deprecated.h
Normal file
|
@ -0,0 +1,303 @@
|
||||||
|
/* This file contains definitions for deprecated features. When you
|
||||||
|
deprecate something, move it here when that is feasible.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SCM_DEPRECATED_H
|
||||||
|
#define SCM_DEPRECATED_H
|
||||||
|
|
||||||
|
/* Copyright (C) 2003 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
|
||||||
|
* the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this software; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
|
* Boston, MA 02111-1307 USA
|
||||||
|
*
|
||||||
|
* As a special exception, the Free Software Foundation gives permission
|
||||||
|
* for additional uses of the text contained in its release of GUILE.
|
||||||
|
*
|
||||||
|
* The exception is that, if you link the GUILE library with other files
|
||||||
|
* to produce an executable, this does not by itself cause the
|
||||||
|
* resulting executable to be covered by the GNU General Public License.
|
||||||
|
* Your use of that executable is in no way restricted on account of
|
||||||
|
* linking the GUILE library code into it.
|
||||||
|
*
|
||||||
|
* This exception does not however invalidate any other reasons why
|
||||||
|
* the executable file might be covered by the GNU General Public License.
|
||||||
|
*
|
||||||
|
* This exception applies only to the code released by the
|
||||||
|
* Free Software Foundation under the name GUILE. If you copy
|
||||||
|
* code from other Free Software Foundation releases into a copy of
|
||||||
|
* GUILE, as the General Public License permits, the exception does
|
||||||
|
* not apply to the code that you add in this way. To avoid misleading
|
||||||
|
* anyone as to the status of such modified files, you must delete
|
||||||
|
* this exception notice from them.
|
||||||
|
*
|
||||||
|
* If you write modifications of your own for GUILE, it is your choice
|
||||||
|
* whether to permit this exception to apply to your modifications.
|
||||||
|
* If you do not wish that, delete this exception notice. */
|
||||||
|
|
||||||
|
#include "libguile/__scm.h"
|
||||||
|
|
||||||
|
#if (SCM_ENABLE_DEPRECATED == 1)
|
||||||
|
|
||||||
|
#include "libguile/strings.h"
|
||||||
|
|
||||||
|
#define scm_substring_move_left_x scm_substring_move_x
|
||||||
|
#define scm_substring_move_right_x scm_substring_move_x
|
||||||
|
|
||||||
|
void scm_i_init_deprecated (void);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* SCM_DEPRECATED_H */
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* TODO */
|
||||||
|
|
||||||
|
long_long
|
||||||
|
ulong_long
|
||||||
|
scm_sizet
|
||||||
|
SCM_WNA
|
||||||
|
SCM_OUTOFRANGE
|
||||||
|
SCM_NALLOC
|
||||||
|
|
||||||
|
SCM_HUP_SIGNAL
|
||||||
|
SCM_INT_SIGNAL
|
||||||
|
SCM_FPE_SIGNAL
|
||||||
|
SCM_BUS_SIGNAL
|
||||||
|
|
||||||
|
SCM_SEGV_SIGNAL
|
||||||
|
SCM_ALRM_SIGNAL
|
||||||
|
SCM_GC_SIGNAL
|
||||||
|
SCM_TICK_SIGNAL
|
||||||
|
|
||||||
|
SCM_SIG_ORD
|
||||||
|
SCM_ORD_SIG
|
||||||
|
SCM_NUM_SIGS
|
||||||
|
|
||||||
|
scm_register_module_xxx
|
||||||
|
scm_registered_modules
|
||||||
|
|
||||||
|
scm_clear_registered_modules
|
||||||
|
scm_wta
|
||||||
|
|
||||||
|
scm_eval_3
|
||||||
|
scm_eval2
|
||||||
|
|
||||||
|
SCM_SETAND_CAR
|
||||||
|
SCM_SETOR_CAR
|
||||||
|
SCM_SETAND_CDR
|
||||||
|
SCM_SETOR_CDR
|
||||||
|
|
||||||
|
SCM_FREEP
|
||||||
|
SCM_NFREEP
|
||||||
|
SCM_GC8MARKP
|
||||||
|
SCM_SETGC8MARK
|
||||||
|
SCM_CLRGC8MARK
|
||||||
|
|
||||||
|
SCM_GCTYP16
|
||||||
|
SCM_GCCDR
|
||||||
|
scm_remember
|
||||||
|
scm_protect_object
|
||||||
|
scm_unprotect_object
|
||||||
|
|
||||||
|
scm_module_full_name
|
||||||
|
|
||||||
|
scm_the_root_module
|
||||||
|
scm_make_module
|
||||||
|
scm_ensure_user_module
|
||||||
|
|
||||||
|
scm_load_scheme_module
|
||||||
|
scm_port
|
||||||
|
scm_ptob_descriptor
|
||||||
|
scm_port_rw_active
|
||||||
|
|
||||||
|
scm_close_all_ports_except
|
||||||
|
scm_rstate
|
||||||
|
scm_rng
|
||||||
|
scm_i_rstate
|
||||||
|
|
||||||
|
SCM_SLOPPY_STRINGP
|
||||||
|
SCM_RWSTRINGP
|
||||||
|
SCM_STRING_UCHARS
|
||||||
|
SCM_STRING_CHARS
|
||||||
|
|
||||||
|
scm_read_only_string_p
|
||||||
|
scm_makstr
|
||||||
|
scm_makfromstr
|
||||||
|
|
||||||
|
scm_make_shared_substring
|
||||||
|
scm_tc7_substring
|
||||||
|
|
||||||
|
SCM_SLOPPY_CONSP
|
||||||
|
SCM_SLOPPY_NCONSP
|
||||||
|
scm_tc7_ssymbol
|
||||||
|
scm_tc7_msymbol
|
||||||
|
scm_tcs_symbols
|
||||||
|
|
||||||
|
scm_variable_set_name_hint
|
||||||
|
scm_builtin_variable
|
||||||
|
SCM_VARVCELL
|
||||||
|
SCM_UDVARIABLEP
|
||||||
|
SCM_DEFVARIABLEP
|
||||||
|
scm_internal_with_fluids
|
||||||
|
|
||||||
|
scm_make_gsubr
|
||||||
|
scm_make_gsubr_with_generic
|
||||||
|
scm_create_hook
|
||||||
|
list*
|
||||||
|
|
||||||
|
SCM_LIST0
|
||||||
|
SCM_LIST1
|
||||||
|
SCM_LIST2
|
||||||
|
SCM_LIST3
|
||||||
|
SCM_LIST4
|
||||||
|
SCM_LIST5
|
||||||
|
SCM_LIST6
|
||||||
|
SCM_LIST7
|
||||||
|
SCM_LIST8
|
||||||
|
SCM_LIST9
|
||||||
|
|
||||||
|
scm_listify
|
||||||
|
scm_sloppy_memq
|
||||||
|
scm_sloppy_memv
|
||||||
|
scm_sloppy_member
|
||||||
|
|
||||||
|
scm_end_of_file_key
|
||||||
|
scm_read_and_eval_x
|
||||||
|
|
||||||
|
scm_mkbig
|
||||||
|
scm_big2inum
|
||||||
|
scm_adjbig
|
||||||
|
scm_normbig
|
||||||
|
|
||||||
|
scm_copybig
|
||||||
|
scm_2ulong2big
|
||||||
|
scm_dbl2big
|
||||||
|
scm_big2dbl
|
||||||
|
SCM_FIXNUM_BIT
|
||||||
|
|
||||||
|
scm_subr_entry
|
||||||
|
SCM_SUBR_DOC
|
||||||
|
scm_make_subr_opt
|
||||||
|
scm_make_subr
|
||||||
|
|
||||||
|
scm_make_subr_with_generic
|
||||||
|
|
||||||
|
scm_call_catching_errors
|
||||||
|
scm_make_smob_type_mfpe
|
||||||
|
scm_set_smob_mfpe
|
||||||
|
|
||||||
|
scm_strprint_obj
|
||||||
|
scm_read_0str
|
||||||
|
scm_eval_0str
|
||||||
|
SCM_CHARS
|
||||||
|
SCM_UCHARS
|
||||||
|
|
||||||
|
SCM_SETCHARS
|
||||||
|
SCM_SLOPPY_SUBSTRP
|
||||||
|
SCM_SUBSTR_STR
|
||||||
|
SCM_SUBSTR_OFFSET
|
||||||
|
|
||||||
|
SCM_LENGTH_MAX
|
||||||
|
SCM_LENGTH
|
||||||
|
SCM_SETLENGTH
|
||||||
|
SCM_ROSTRINGP
|
||||||
|
SCM_ROLENGTH
|
||||||
|
|
||||||
|
SCM_ROCHARS
|
||||||
|
SCM_ROUCHARS
|
||||||
|
SCM_SUBSTRP
|
||||||
|
SCM_COERCE_SUBSTR
|
||||||
|
scm_strhash
|
||||||
|
|
||||||
|
scm_sym2vcell
|
||||||
|
scm_sym2ovcell_soft
|
||||||
|
scm_sym2ovcell
|
||||||
|
|
||||||
|
scm_intern_obarray_soft
|
||||||
|
scm_intern_obarray
|
||||||
|
scm_intern
|
||||||
|
scm_intern0
|
||||||
|
|
||||||
|
scm_sysintern
|
||||||
|
scm_sysintern0
|
||||||
|
scm_sysintern0_no_module_lookup
|
||||||
|
|
||||||
|
scm_symbol_value0
|
||||||
|
scm_string_to_obarray_symbol
|
||||||
|
scm_intern_symbol
|
||||||
|
|
||||||
|
scm_unintern_symbol
|
||||||
|
scm_symbol_binding
|
||||||
|
scm_symbol_interned_p
|
||||||
|
|
||||||
|
scm_symbol_bound_p
|
||||||
|
scm_symbol_set_x
|
||||||
|
scm_gentemp
|
||||||
|
|
||||||
|
scm_init_symbols_deprecated
|
||||||
|
scm_vector_set_length_x
|
||||||
|
|
||||||
|
SCM_OPDIRP
|
||||||
|
|
||||||
|
scm_fport
|
||||||
|
scm_option
|
||||||
|
SCM_CONST_LONG
|
||||||
|
SCM_VCELL
|
||||||
|
SCM_GLOBAL_VCELL
|
||||||
|
|
||||||
|
SCM_VCELL_INIT
|
||||||
|
SCM_GLOBAL_VCELL_INIT
|
||||||
|
scm_srcprops
|
||||||
|
scm_srcprops_chunk
|
||||||
|
|
||||||
|
scm_info_frame
|
||||||
|
scm_stack
|
||||||
|
scm_array
|
||||||
|
scm_array_dim
|
||||||
|
SCM_ARRAY_CONTIGUOUS
|
||||||
|
|
||||||
|
SCM_HUGE_LENGTH
|
||||||
|
SCM_FUNC_NAME
|
||||||
|
SCM_WTA
|
||||||
|
RETURN_SCM_WTA
|
||||||
|
|
||||||
|
SCM_VALIDATE_NUMBER_COPY
|
||||||
|
SCM_VALIDATE_NUMBER_DEF_COPY
|
||||||
|
|
||||||
|
SCM_VALIDATE_STRINGORSUBSTR
|
||||||
|
SCM_VALIDATE_ROSTRING
|
||||||
|
|
||||||
|
SCM_VALIDATE_ROSTRING_COPY
|
||||||
|
SCM_VALIDATE_NULLORROSTRING_COPY
|
||||||
|
|
||||||
|
SCM_VALIDATE_RWSTRING
|
||||||
|
SCM_VALIDATE_OPDIR
|
||||||
|
scm_small_istr2int
|
||||||
|
|
||||||
|
scm_istr2int
|
||||||
|
scm_istr2flo
|
||||||
|
scm_istring2number
|
||||||
|
scm_istr2int
|
||||||
|
|
||||||
|
scm_istr2flo
|
||||||
|
scm_istring2number
|
||||||
|
scm_vtable_index_vcell
|
||||||
|
|
||||||
|
SCM_ECONSP
|
||||||
|
SCM_NECONSP
|
||||||
|
|
||||||
|
scm_tc16_variable
|
||||||
|
|
||||||
|
#endif
|
Loading…
Add table
Add a link
Reference in a new issue