* Don't use SCM_LISTn any more.
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
4dadf664
TTN
12001-06-30 Thien-Thi Nguyen <ttn@revel.glug.org>
2
3 * stamp-h.in: bye bye
4
02202352
MV
52001-06-30 Marius Vollmer <mvo@zagadka.ping.de>
6
7 * gh_eval.c (gh_eval_str): Use scm_c_eval_string instead of
8 scm_eval_0str.
9
10 * load.c, load.h (scm_c_primitive_load,
11 scm_c_primitive_load_path): New.
12
13 * strports.c, strports.h (scm_c_read_string): Renamed from
14 scm_read_0str. Also, added "const" qualifier to argument.
15 (scm_c_eval_string): Renamed from scm_eval_0str.
16 (scm_read_0str, scm_eval_0str): Deprecated.
17
df1ad0d1
MG
182001-06-28 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
19
20 * fluids.c (scm_c_with_fluid): Use scm_list_1() instead of
21 SCM_LIST1.
22
1afff620
KN
232001-06-28 Keisuke Nishida <kxn30@po.cwru.edu>
24
25 * list.h (scm_list_1, scm_list_2, scm_list_3, scm_list_4, scm_list_5,
26 scm_list_n): New functions.
27 (SCM_LIST0, SCM_LIST1, SCM_LIST2, SCM_LIST3, SCM_LIST4, SCM_LIST5,
28 SCM_LIST6, SCM_LIST7, SCM_LIST8, SCM_LIST9, scm_listify): Deprecated.
29 (lots of files): Use the new functions.
4dadf664 30
1afff620
KN
31 * goops.c (CALL_GF1, CALL_GF2, CALL_GF3, CALL_GF4): Use scm_call_N.
32
33 * strings.c: #include "libguile/deprecation.h".
34
b858464a
MG
352001-06-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
36
37 * read.c (scm_lreadr): When reading a hash token, check for a
38 user-defined hash procedure first, so that overriding the builtin
39 hash characters is possible (this was needed for implementing
40 SRFI-4's read synax `f32(...)').
4dadf664 41
b858464a
MG
42 * num2integral.i.c: Use scm_t_signed_bits instead of scm_t_bits,
43 because the latter is unsigned now and breaks comparisons like
44 (n < (scm_t_signed_bits)MIN_VALUE).
4dadf664 45
d95c0b76
NJ
462001-06-26 Neil Jerram <neil@ossau.uklinux.net>
47
48 * eval.h, eval.c (scm_call_4): New function.
49
50 * eval.c (SCM_APPLY, SCM_CEVAL, ENTER_APPLY): Call trap handlers
51 directly rather than dispatching to them via scm_ithrow and a lazy
52 catch.
4dadf664 53
d95c0b76
NJ
54 * eval.c (scm_evaluator_trap_table), eval.h (SCM_ENTER_FRAME_HDLR,
55 SCM_APPLY_FRAME_HDLR, SCM_EXIT_FRAME_HDLR): Add three new options
56 for trap handler procedures.
57
58 * debug.h (SCM_RESET_DEBUG_MODE): Add checks for trap handler
59 procedures not being #f.
60
30e3be5a
ML
612001-06-27 Michael Livshin <mlivshin@bigfoot.com>
62
63 * Makefile.am (c-tokenize.c): add rule to generate it.
64 (EXTRA_DIST): add c-tokenize.lex, so it gets distributed.
65
66 filter-doc-snarfage.c: remove.
67
82893676
MG
682001-06-26 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
69
70 * ports.c (scm_output_port_p): Use result of SCM_COERCE_OUTPORT.
71
72 The following set of changes makes compiling Guile under various
73 Windows compilers easier. Compilation under GNU systems should
74 not be affected at all.
75
76 Thanks to Stefan Jahn for all necessary information, patches and
77 testing.
4dadf664 78
82893676
MG
79 * posix.c: Conditialize getpwent, getgrent, kill, getppid, getuid,
80 getpgrp, ttyname, primitive-fork and some header inclusion for
81 Windows.
82
83 * random.c: Define M_PI, if not predefined and use __int64 for
84 LONG64 under Windows.
85
86 * scmsigs.c: Emulate some functions (alarm, sleep, kill) under
87 Windows and conditionalize some signal names.
88
4dadf664 89 * socket.c (scm_getsockopt): Added missing comma.
82893676
MG
90 Include socket library header under Windows.
91
92 * stime.c (CLKTCK): Add cast to int, to make it compile under
93 Windows.
94
95 * ports.c (truncate): New function, compiled only under Windows.
96
97 * net_db.c: Do not declare errno under Windows.
98
99 * iselect.h, inet_aton.c: Include socket library headers under
100 Windows.
101
102 * guile.c (inner_main): Under Windows, initialize socket library
103 and initialize gdb_interface data structures.
104
105 * gdb_interface.h: Under Windows, gdb_interface cannot be
106 initialized statically. Initialize at runtime instead.
107
108 * fports.c (write_all): ssize_t -> size_t.
109 (fport_print): Conditionalize call to ttyname().
110 (getflags): New function, compiled only under Windows.
111
112 * filesys.c: Conditionalize inclusion of <pwd.h>. Conditionalize
113 primitives chown, link, fcntl.
114 (scm_basename, scm_dirname): Under Windows, handle \ as well as /
115 as path seperator.
116
117 * backtrace.c: Include <io.h> under Windows.
118
119 * async.h (ASYNCH, SCM_ASYNC_H): Rename <foo>H to SCM_<foo>_H.
120
121 * _scm.h: Added preprocessor conditional for __MINGW32__ for errno
122 declaration.
123
fdc28395
KN
1242001-06-27 Keisuke Nishida <kxn30@po.cwru.edu>
125
126 * eval.c (scm_call_0, scm_call_1, scm_call_2, scm_call_3,
127 scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): New functions.
128 * eval.h (scm_call_0, scm_call_1, scm_call_2, scm_call_3,
129 scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): Declared.
130 * async.c (scm_run_asyncs), coop-threads.c (scheme_body_bootstrip,
131 scheme_handler_bootstrip), debug.c (with_traps_inner), dynwind.c
132 (scm_dynamic_wind, scm_dowinds), environments.c
133 (import_environment_conflict), eval.c (scm_macroexp, scm_force,
134 scm_primitive_eval_x, scm_primitive_eval), fluids.c (apply_thunk),
135 goops.c (GETVAR, purgatory, make_class_from_template,
136 scm_ensure_accessor), hashtab.c (scm_ihashx, scm_sloppy_assx,
137 scm_delx_x, fold_proc), hooks.c (scm_c_run_hook), load.c
138 (scm_primitive_load), modules.c (scm_resolve_module,
139 scm_c_define_module, scm_c_use_module, scm_c_export,
140 module_variable, scm_eval_closure_lookup, scm_sym2var,
141 scm_make_module, scm_ensure_user_module, scm_load_scheme_module),
142 ports.c (scm_port_for_each), print.c (scm_printer_apply),
143 properties.c (scm_primitive_property_ref), ramap.c (ramap,
144 ramap_cxr, rafe, scm_array_index_map_x, read.c (scm_lreadr),
145 scmsigs.c (sys_deliver_signals), sort.c (applyless), strports.c
146 (scm_object_to_string, scm_call_with_output_string,
147 scm_call_with_input_string), throw.c (scm_body_thunk,
148 scm_handle_by_proc, hbpca_body), unif.c (scm_make_shared_array,
149 scm_make_shared_array), vports.c (sf_flush, sf_write,
150 sf_fill_input, sf_close): Use one of the above functions.
151 * goops.c, hashtab.c, scmsigs.c, sort.c: #include "libguile/root.h".
152
36284627
DH
1532001-06-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
154
155 * filesys.c (scm_close), ports.c (scm_close_port,
156 scm_port_closed_p), strop.c (scm_string_null_p): Use SCM_BOOL
157 instead of SCM_NEGATE_BOOL.
158
159 * filesys.c (scm_stat): Clean up type dispatch.
160
161 * filesys.c (scm_stat), ports.c (scm_input_port_p,
162 scm_output_port_p): Get rid of redundant IM type check.
163
164 * filesys.c (scm_readdir, scm_getcwd, scm_readlink), gh_data.c
165 (gh_str2scm), load.c (scm_primitive_load, scm_internal_parse_path,
166 scm_search_path), net_db.c (scm_gethost, scm_getnet, scm_getproto,
167 scm_return_entry), numbers.c (scm_number_to_string), objects.c
168 (scm_make_subclass_object), ports.c (scm_port_mode), read.c
169 (scm_lreadr), simpos.c (scm_getenv), socket.c (scm_inet_ntoa,
170 scm_addr_vector), stime.c (scm_strftime), strings.c
171 (scm_makfromstrs, scm_makfrom0str, scm_substring), strings.h
172 (SCM_STRING_COERCE_0TERMINATION_X), strop.c (string_copy,
173 scm_string_split), strports.c (scm_strport_to_string), symbols.c
174 (scm_symbol_to_string), vports.c (sf_write): Use scm_mem2string
175 instead of scm_makfromstr.
176
177 * net_db.c (scm_sethost, scm_setnet, scm_setproto, scm_setserv),
178 ports.c (scm_close_all_ports_except), read.c (scm_lreadr,
179 scm_read_hash_extend), stime.c (scm_strftime), strings.c
180 (scm_string_append, scm_string), strings.h (SCM_STRINGP,
181 SCM_STRING_COERCE_0TERMINATION_X, SCM_RWSTRINGP), strop.c
182 (string_capitalize_x): Prefer explicit type check over SCM_N?IMP,
183 !SCM_<pred> over SCM_N<pred>.
184
185 * strings.[ch] (scm_makfromstr): Deprecated.
186
187 (scm_mem2string): New function, replaces scm_makfromstr.
188
189 * strings.c (scm_substring), strop.c (string_copy,
190 scm_string_split), strports.c (scm_strport_to_string), symbols.c
191 (scm_symbol_to_string): Fix gc problem.
192
193 * strings.h (STRINGSH, SCM_STRINGS_H): Rename <foo>H to
194 SCM_<foo>_H.
195
196 * validate.h (SCM_VALIDATE_SUBSTRING_SPEC_COPY): Eliminate
197 warning about comparing signed and unsigned values. This fix is
198 not optimal, since it won't work reliably if sizeof (c_start) >
199 sizeof (size_t) or sizeof (c_end) > sizeof (size_t). A better
200 solution is to define this macro as an inline function, thus
201 allowing to specifiy the types of c_start and c_end.
202
13dcb666
DH
2032001-06-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
204
205 * debug.h (SCM_DEBUGOBJ_FRAME): Deliver result as a
206 scm_t_debug_frame*.
207
208 * debug.h (DEBUGH, SCM_DEBUG_H), stacks.h (STACKSH, SCM_STACKSH):
209 Rename <foo>H to SCM_<foo>_H.
210
211 * stacks.c (NEXT_FRAME, narrow_stack): Prefer explicit type check
212 over SCM_N?IMP, !SCM_<pred> over SCM_N<pred>.
213
214 (narrow_stack): Make i unsigned. Don't use side-effecting
215 operations in conditions.
216
217 (narrow_stack, scm_make_stack, scm_stack_id,
218 scm_last_stack_frame): Get rid of redundant SCM_N?IMP checks.
219
220 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Clean up
221 type dispatch. No need to cast result of SCM_DEBUGOBJ_FRAME any
222 more.
223
224 (scm_stack_ref, scm_frame_previous, scm_frame_next): Fix
225 signedness.
226
227