| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#if !defined(ECL_LEGACY_H) && !defined(ECL_NO_LEGACY) |
| 13 |
#define ECL_LEGACY_H |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
#define CHARACTERP(o) ECL_CHARACTERP(o) |
| 19 |
#define BASE_CHAR_P(o) ECL_BASE_CHAR_P(o) |
| 20 |
#define BASE_CHAR_CODE_P(o) ECL_BASE_CHAR_CODE_P(o) |
| 21 |
#define CODE_CHAR(o) ECL_CODE_CHAR(o) |
| 22 |
#define CHAR_CODE(o) ECL_CHAR_CODE(o) |
| 23 |
#define REAL_TYPE(t) ECL_REAL_TYPE_P(t) |
| 24 |
#define IMMEDIATE(o) ECL_IMMEDIATE(o) |
| 25 |
#define IMMEDIATE_TAG ECL_IMMEDIATE_TAG |
| 26 |
|
| 27 |
#define FIXNUM_TAG t_fixnum |
| 28 |
#define MAKE_FIXNUM(n) ecl_make_fixnum(n) |
| 29 |
#define FIXNUM_MINUSP(n) ecl_fixnum_minusp(n) |
| 30 |
#define FIXNUM_PLUSP(n) ecl_fixnum_plusp(n) |
| 31 |
#define fix(o) ecl_fixnum(o) |
| 32 |
#define FIXNUMP(o) ECL_FIXNUMP(o) |
| 33 |
|
| 34 |
#define sf(obje) (obje)->SF.SFVAL |
| 35 |
#define df(obje) (obje)->DF.DFVAL |
| 36 |
#define make_shortfloat(x) ecl_make_shortfloat(x); |
| 37 |
|
| 38 |
#define big_dim big_num->_mp_alloc |
| 39 |
#define big_size big_num->_mp_size |
| 40 |
#define big_limbs big_num->_mp_d |
| 41 |
|
| 42 |
#define si_bc_file(o) si_compiled_function_file(o) |
| 43 |
#define ARRAYP ECL_ARRAYP |
| 44 |
#define VECTORP ECL_VECTORP |
| 45 |
#define ARRAY_TYPE(t) (t >= t_array && t <= t_bitvector) |
| 46 |
#define c_string_to_object ecl_read_from_cstring |
| 47 |
|
| 48 |
#define big_register0_get _ecl_big_register0 |
| 49 |
#define big_register1_get _ecl_big_register1 |
| 50 |
#define big_register2_get _ecl_big_register2 |
| 51 |
#define big_register_free _ecl_big_register_free |
| 52 |
#define big_register_copy _ecl_big_register_copy |
| 53 |
#define big_register_normalize _ecl_big_register_normalize |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
#define cl_alloc_simple_base_string ecl_alloc_simple_base_string |
| 58 |
#define cl_alloc_adjustable_base_string ecl_alloc_adjustable_base_string |
| 59 |
#define cl_alloc_simple_extended_string ecl_alloc_simple_extended_string |
| 60 |
|
| 61 |
#define ecl_search_hash _ecl_gethash |
| 62 |
|
| 63 |
#define read_VV ecl_init_module |
| 64 |
|
| 65 |
#define FEprogram_error_noreturn FEprogram_error |
| 66 |
|
| 67 |
#endif |
| 68 |
|
| 69 |
#define make_simple_base_string(s) ecl_make_simple_base_string((s),-1) |
| 70 |
#define make_constant_base_string(s) ecl_make_constant_base_string((char *)(s),-1) |
| 71 |
#define make_base_string_copy(s) ecl_make_simple_base_string((s),-1) |
| 72 |
|
| 73 |
#define stp_ordinary ecl_stp_ordinary |
| 74 |
#define stp_constant ecl_stp_constant |
| 75 |
#define stp_special ecl_stp_special |
| 76 |
#define stp_macro ecl_stp_macro |
| 77 |
#define stp_special_form ecl_stp_special_form |
| 78 |
|
| 79 |
#define aet_object ecl_aet_object |
| 80 |
#define aet_sf ecl_aet_sf |
| 81 |
#define aet_df ecl_aet_df |
| 82 |
#define aet_bit ecl_aet_bit |
| 83 |
#define aet_fix ecl_aet_fix |
| 84 |
#define aet_index ecl_aet_index |
| 85 |
#define aet_b8 ecl_aet_b8 |
| 86 |
#define aet_i8 ecl_aet_i8 |
| 87 |
#define aet_b16 ecl_aet_b16 |
| 88 |
#define aet_i16 ecl_aet_i16 |
| 89 |
#define aet_b32 ecl_aet_b32 |
| 90 |
#define aet_i32 ecl_aet_i32 |
| 91 |
#define aet_b64 ecl_aet_b64 |
| 92 |
#define aet_i64 ecl_aet_i64 |
| 93 |
#define aet_ch ecl_aet_ch |
| 94 |
#define aet_bc ecl_aet_bc |
| 95 |
|
| 96 |
#define htt_eq ecl_htt_eq |
| 97 |
#define htt_eql ecl_htt_eql |
| 98 |
#define htt_equal ecl_htt_equal |
| 99 |
#define htt_equalp ecl_htt_equalp |
| 100 |
#define htt_not_weak ecl_htt_not_weak |
| 101 |
#define htt_weak_key ecl_htt_weak_key |
| 102 |
#define htt_weak_value ecl_htt_weak_value |
| 103 |
#define htt_weak_key_and_value ecl_htt_weak_key_and_value |
| 104 |
|
| 105 |
#define ecl_make_singlefloat ecl_make_single_float |
| 106 |
#define ecl_make_doublefloat ecl_make_double_float |
| 107 |
#define ecl_make_longfloat ecl_make_long_float |
| 108 |
|
| 109 |
#define number_to_float(x) ((float)ecl_to_double(x)) |
| 110 |
|
| 111 |
#define ecl_make_unsigned_long_Long(o) ecl_make_ulong_long(o) |
| 112 |
#define ecl_to_unsigned_long_long(o) ecl_to_ulong_long(o) |
| 113 |
|
| 114 |
#define ADIMLIM ECL_ARRAY_DIMENSION_LIMIT |
| 115 |
#define ATOTLIM ECL_ARRAY_TOTAL_LIMIT |
| 116 |
#define ARANKLIM ECL_ARRAY_RANK_LIMIT |
| 117 |
|
| 118 |
#define CALL_ARGUMENTS_LIMIT ECL_CALL_ARGUMENTS_LIMIT |
| 119 |
#define LAMBDA_PARAMETERS_LIMIT ECL_LAMBDA_PARAMETERS_LIMIT |
| 120 |
#define C_ARGUMENTS_LIMIT ECL_C_ARGUMENTS_LIMIT |
| 121 |
|
| 122 |
#define cl_va_start ecl_va_start |
| 123 |
#define cl_va_list ecl_va_list |
| 124 |
#define cl_va_arg ecl_va_arg |
| 125 |
#define cl_va_end ecl_va_end |
| 126 |
|
| 127 |
#define CHAR_CODE_LIMIT ECL_CHAR_CODE_LIMIT |
| 128 |
|
| 129 |
#define NVALUES cl_env.nvalues |
| 130 |
#define VALUES(n) cl_env.values[n] |
| 131 |
#define return0() return ((NVALUES = 0),ECL_NIL) |
| 132 |
#define return1(x) return ((VALUES(0)=(x)),(NVALUES=1),VALUES(0)) |
| 133 |
#define returnn(x) return x |
| 134 |
|
| 135 |
#define CL_UNWIND_PROTECT_BEGIN ECL_UNWIND_PROTECT_BEGIN |
| 136 |
#define CL_UNWIND_PROTECT_END ECL_UNWIND_PROTECT_END |
| 137 |
#define CL_UNWIND_PROTECT_EXIT ECL_UNWIND_PROTECT_EXIT |
| 138 |
#define CL_BLOCK_END ECL_BLOCK_END |
| 139 |
#define CL_BLOCK_BEGIN ECL_BLOCK_BEGIN |
| 140 |
#define CL_CATCH_BEGIN ECL_CATCH_BEGIN |
| 141 |
#define CL_CATCH_END ECL_CATCH_END |
| 142 |
#define CL_CATCH_ALL_BEGIN ECL_CATCH_ALL_BEGIN |
| 143 |
#define CL_CATCH_ALL_IF_CAUGHT ECL_CATCH_ALL_IF_CAUGHT |
| 144 |
#define CL_CATCH_ALL_END ECL_CATCH_ALL_END |
| 145 |
|
| 146 |
#define bds_bd ecl_bds_frame |
| 147 |
typedef struct ecl_bds_frame *bds_ptr; |
| 148 |
typedef struct ecl_ihs_frame *ihs_ptr; |
| 149 |
|
| 150 |
#define LISTP(x) ECL_LISTP(x) |
| 151 |
#define CONSP(x) ECL_CONSP(x) |
| 152 |
#define ATOM(x) ECL_ATOM(x) |
| 153 |
#define SYMBOLP(x) ECL_SYMBOLP(x) |
| 154 |
|
| 155 |
enum { |
| 156 |
smm_input, |
| 157 |
smm_input_file, |
| 158 |
smm_output, |
| 159 |
smm_output_file, |
| 160 |
smm_io, |
| 161 |
smm_io_file, |
| 162 |
smm_synonym, |
| 163 |
smm_broadcast, |
| 164 |
smm_concatenated, |
| 165 |
smm_two_way, |
| 166 |
smm_echo, |
| 167 |
smm_string_input, |
| 168 |
smm_string_output, |
| 169 |
smm_probe, |
| 170 |
#if defined(WSOCK) |
| 171 |
smm_input_wsock, |
| 172 |
smm_output_wsock, |
| 173 |
smm_io_wsock, |
| 174 |
#endif |
| 175 |
#if defined(MS_WINDOWS_HOST) |
| 176 |
smm_io_wcon, |
| 177 |
#endif |
| 178 |
smm_sequence_input, |
| 179 |
smm_sequence_output |
| 180 |
}; |
| 181 |
|
| 182 |
#define Cnil ECL_NIL |
| 183 |
#define Ct ECL_T |
| 184 |
|
| 185 |
#define SYM_FUN(x) ECL_SYM_FUN(x) |
| 186 |
|
| 187 |
#define CLASS_OF(x) ECL_CLASS_OF(x) |
| 188 |
#define CLASS_NAME(x) ECL_CLASS_NAME(x) |
| 189 |
#define CLASS_SUPERIORS(x) ECL_CLASS_SUPERIORS(x) |
| 190 |
#define CLASS_INFERIORS(x) ECL_CLASS_INFERIORS(x) |
| 191 |
#define CLASS_SLOTS(x) ECL_CLASS_SLOTS(x) |
| 192 |
#define CLASS_CPL(x) ECL_CLASS_CPL(x) |
| 193 |
|
| 194 |
#define STYPE(x) ECL_STRUCT_TYPE(x) |
| 195 |
#define SLOTS(x) ECL_STRUCT_SLOTS(x) |
| 196 |
#define SLOT(x,i) ECL_STRUCT_SLOT(x,i) |
| 197 |
#define SLENGTH(x) ECL_STRUCT_LENGTH(x) |
| 198 |
#define SNAME(x) ECL_STRUCT_NAME(x) |
| 199 |
|
| 200 |
#define type_of(x) ecl_t_of(x) |
| 201 |
|