Commit | Line | Data |
---|---|---|
ba1b2226 HWN |
1 | 2002-08-06 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
2 | ||
3 | * read.c (scm_input_error): new function: give meaningful error | |
4 | messages, and throw read-error | |
5 | ||
6 | * gc-malloc.c (scm_calloc): add scm_calloc. | |
7 | ||
39e8f371 HWN |
8 | 2002-08-05 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
9 | ||
33138b05 HWN |
10 | * tags.h: remove GC bits documentation from the tags table. |
11 | ||
39e8f371 HWN |
12 | * read.c (INPUT_ERROR): Prepare for file:line:column error |
13 | messages for errors in scm_lreadr() and friends. | |
14 | ||
15 | 2002-08-04 Han-Wen Nienhuys <hanwen@cs.uu.nl> | |
16 | ||
17 | * gc-malloc.c (scm_malloc): use scm_realloc() (simplifies | |
18 | implementation). | |
19 | (scm_gc_calloc): new function | |
20 | ||
5f16b897 | 21 | 2002-08-04 Han-Wen <hanwen@cs.uu.nl> |
402788a9 | 22 | |
5f16b897 HWN |
23 | * ports.c (scm_new_port_table_entry): init port entry to 0 |
24 | completely. | |
402788a9 HWN |
25 | |
26 | * ports.c (scm_new_port_table_entry): change function from | |
27 | scm_add_to_port_table. This prevents cells with null-pointers from | |
28 | being exposed to GC. | |
29 | ||
30 | * vports.c (s_scm_make_soft_port) strports.c (scm_mkstrport), | |
31 | fports.c (scm_fdes_to_port): Use scm_new_port_table_entry(). | |
c8a1bdc4 | 32 | |
c2cbcc57 HWN |
33 | * gc.c (s_scm_gc_stats): add cell-yield and malloc-yield statistic |
34 | to gc-stats. | |
35 | ||
c8a1bdc4 HWN |
36 | * numbers.c (big2str): return "0" for 0 iso. "" |
37 | ||
c2cbcc57 HWN |
38 | * gc-segment.c, gc-malloc.c gc-mark.c, gc-freelist.c, gc-card.c, |
39 | private-gc.h: new file | |
c8a1bdc4 HWN |
40 | |
41 | * gc.c: completely revised and cleaned up the GC. It now uses lazy | |
42 | sweeping. More documentation in workbook/newgc.text | |
43 | ||
aea06b34 MV |
44 | 2002-07-25 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
45 | ||
46 | * random.c (rstate_free): Return zero. | |
47 | ||
35060ae9 DH |
48 | 2002-07-24 Dirk Herrmann <D.Herrmann@tu-bs.de> |
49 | ||
50 | * environments.c (remove_key_from_alist): Removed. | |
51 | ||
52 | (obarray_remove): Simplified. | |
53 | ||
6a535440 SJ |
54 | 2002-07-24 Stefan Jahn <stefan@lkcc.org> |
55 | ||
56 | * continuations.h: ia64: Include <signal.h> before | |
57 | <sys/ucontext.h>. | |
58 | ||
bcbd25b7 DH |
59 | 2002-07-21 Dirk Herrmann <D.Herrmann@tu-bs.de> |
60 | ||
61 | * modules.c (scm_sym2var): Don't compare SCM values with ==. | |
62 | ||
1d1559ce HWN |
63 | 2002-07-21 Han-Wen <hanwen@cs.uu.nl> |
64 | ||
65 | * goops.c (scm_compute_applicable_methods): use | |
66 | scm_remember_upto_here_1 iso scm_remember_upto_here | |
67 | ||
68 | * macros.c: include deprecation.h | |
69 | ||
70 | * vectors.c (s_scm_vector_move_right_x): remove side effect in | |
71 | macro arg. | |
72 | (s_scm_vector_move_left_x): idem. | |
73 | ||
74 | * net_db.c, posix.c, socket.c: variable naming: change ans to | |
75 | result. | |
76 | ||
77 | * sort.c (scm_merge_vector_x): accept vector as argument | |
78 | iso. SCM*. This is needed for full GC correctness. | |
79 | ||
80 | * gc.h: undo previous undocumented changes related to #ifdef | |
81 | GENGC. | |
82 | ||
34d19ef6 HWN |
83 | 2002-07-20 Han-Wen <hanwen@cs.uu.nl> |
84 | ||
85 | * *.c: add space after commas everywhere. | |
86 | ||
87 | * *.c: use SCM_VECTOR_SET everywhere, where a vector is written. | |
88 | Document cases where SCM_WRITABLE_VELTS() is used. | |
89 | ||
90 | * vectors.h (SCM_VELTS): prepare for write barrier, and let | |
91 | SCM_VELTS() return a const pointer | |
92 | (SCM_VECTOR_SET): add macro. | |
93 | ||
3063e30a DH |
94 | 2002-07-15 Dirk Herrmann <D.Herrmann@tu-bs.de> |
95 | ||
96 | * eval.c (SCM_CEVAL), macros.c (macro_print, scm_makmacro, | |
97 | scm_sym_macro, scm_macro_type), macros.h (scm_makmacro): | |
98 | Deprecated the special kind of built-in dynamic syntax transformer | |
99 | that was inaccurately named "macro". Note: The built-in syntax | |
100 | transformers that are named "mmacro" or "memoizing-macro" still | |
101 | exist, and it is these which come much closer to what one would | |
102 | call a macro. | |
103 | ||
4c5f8e8f NJ |
104 | 2002-07-13 Neil Jerram <neil@ossau.uklinux.net> |
105 | ||
106 | * eval.c (unmemocopy): Fix for | |
107 | 1001-local-eval-error-backtrace-segfaults (unmemoization crash | |
108 | with internal definitions and local-eval). | |
109 | ||
4f6f9ae3 GH |
110 | 2002-07-12 Gary Houston <ghouston@arglist.com> |
111 | ||
112 | * dynl.c: Don't define stub procedures if DYNAMIC_LINKING is not | |
113 | defined. They don't do anything useful, especially since the | |
114 | only case where DYNAMIC_LINKING is undefined seems to be | |
115 | when --with-modules=no is given to configure, which is basically | |
116 | requesting that the "dynamic linking module" be omitted. | |
117 | ||
118 | * Makefile.am (libguile_la_SOURCES): move dynl.c from | |
119 | libguile_la_SOURCES to EXTRA_libguile_la_SOURCES. | |
120 | ||
121 | * extensions.c (load_extension): check DYNAMIC_LINKING for | |
122 | scm_dynamic_call. | |
123 | * init.c (scm_init_guile_1): check DYNAMIC_LINKING for | |
124 | scm_init_dynamic_linking. | |
125 | ||
c21935e6 MV |
126 | 2002-07-10 Marius Vollmer <mvo@zagadka.ping.de> |
127 | ||
128 | * guile.c, iselect.h, net_db.c, posix.c, socket.c: No need to | |
129 | check for Cygwin when including <winsock2.h>, this is already | |
130 | check for by configure. Thus, revert change from 2002-07-07. | |
131 | ||
ee95d597 GH |
132 | 2002-07-10 Gary Houston <ghouston@arglist.com> |
133 | ||
9540b68f | 134 | * eq.c: include <string.h> |
ee95d597 GH |
135 | * dynl.c: docstring editing. |
136 | ||
46732b54 GH |
137 | 2002-07-09 Gary Houston <ghouston@arglist.com> |
138 | ||
139 | * dynl.c (scm_dynamic_call): docstring editing. | |
140 | ||
c09d12e0 RB |
141 | 2002-07-08 Rob Browning <rlb@defaultvalue.org> |
142 | ||
143 | * gc_os_dep.c: HURD fixes. | |
144 | ||
3f6571eb MV |
145 | 2002-07-07 Marius Vollmer <mvo@zagadka.ping.de> |
146 | ||
147 | Crosscompiling and Cygwin fixes by Jan Nieuwenhuizen. Thanks! | |
148 | ||
149 | * Makefile.am: Override default rule for c-tokenize.$(OBJECT); | |
150 | this should be compiled for BUILD host. | |
151 | Override default rule for | |
152 | guile_filter_doc_snarfage$(EEXECT); this should run on BUILD host. | |
153 | Add missing $(EXEEXT) to guile_filter_doc_snarfage invocation. | |
154 | (snarf2checkedtexi): Use GUILE_FOR_BUILD instead of preinstguile. | |
155 | ||
156 | * guile.c, iselect.h, net_db.c, posix.c, socket.c: Do not include | |
157 | <winsock2.h> on Cygwin even when we have it. | |
158 | ||
bd987b8e DH |
159 | 2002-07-01 Dirk Herrmann <D.Herrmann@tu-bs.de> |
160 | ||
161 | * __scm.h (SCM_CAUTIOUS), eval.c (scm_eval_args, deval_args, | |
162 | SCM_CEVAL): Removed compile time option SCM_CAUTIOUS to clean up | |
163 | the code. Full number of arguments checking of closures is | |
164 | mandatory now. However, the option to disable the checking has | |
165 | most probably not been used anyway. | |
166 | ||
8505e285 DH |
167 | 2002-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de> |
168 | ||
bd987b8e DH |
169 | * __scm.h (SCM_RECKLESS), backtrace.c (SCM_ASSERT), debug.c |
170 | (scm_debug_options), eval.c (scm_lookupcar, scm_lookupcar1, | |
171 | scm_badargsp, SCM_CEVAL, SCM_APPLY, scm_map, scm_for_each), | |
172 | feature.c (scm_init_feature), gsubr.c (scm_gsubr_apply), numbers.c | |
173 | (scm_logand, scm_logior, scm_logxor, scm_i_dbl2big), srcprop.c | |
174 | (scm_source_properties, scm_set_source_properties_x, | |
175 | scm_source_property): Removed compile time option SCM_RECKLESS to | |
176 | clean up the code. Full number of arguments checking of closures | |
177 | is mandatory now. However, the option to disable the checking has | |
178 | most probably not been used anyway. | |
8505e285 DH |
179 | |
180 | * srcprop.c (scm_source_properties, scm_set_source_properties_x, | |
181 | scm_source_property): Use !SCM_CONSP instead of SCM_NCONSP. | |
182 | ||
2ee08a28 GH |
183 | 2002-06-30 Gary Houston <ghouston@arglist.com> |
184 | ||
732b9327 GH |
185 | * dynl.c: Removed all SCM_DEFER_INTS/SCM_ALLOW_INTS, which won't |
186 | do anything useful. Added a comment about need for a mutex if | |
187 | pre-emptive threading is supported. | |
188 | ||
2ee08a28 GH |
189 | * posix.c (scm_convert_exec_args), dynl.c |
190 | (scm_make_argv_from_stringlist): static procs: 1) renamed both to | |
191 | allocate_string_pointers. 2) simplified: don't reallocate the | |
192 | strings, just make an array of pointers 3) avoid memory leaks on | |
193 | error 4) let the procedure report errors in its own name. | |
194 | Consequences: 1) the procedures now assume that SCM strings are | |
195 | nul-terminated, which should always be the case. 2) Since strings | |
196 | are not reallocated, it's now possible for strings passed to | |
197 | dynamic-args-call to be mutated. | |
198 | ||
c136c920 DH |
199 | 2002-06-28 Dirk Herrmann <D.Herrmann@tu-bs.de> |
200 | ||
201 | * __scm.h, eval.c, eval.h: Removed compile time option | |
202 | MEMOIZE_LOCALS to clean up the code. Now, caching of local | |
203 | variable positions during memoization is mandatory. However, the | |
204 | option to disable the caching has most probably not been used | |
205 | anyway. | |
206 | ||
e540802f MV |
207 | 2002-06-18 Marius Vollmer <mvo@zagadka.ping.de> |
208 | ||
209 | * print.c (scm_simple_format): Print missing part of format before | |
210 | ~% control. Thanks to Daniel Skarda! | |
211 | ||
4c1ffcdd MV |
212 | 2002-06-01 Marius Vollmer <mvo@zagadka.ping.de> |
213 | ||
214 | * mkstemp.c: Added exception notice to license statement. | |
215 | ||
ba1b077b MV |
216 | 2002-05-22 Marius Vollmer <mvo@zagadka.ping.de> |
217 | ||
8dc434c7 MV |
218 | * numbers.c (mem2ureal): When returning an inexact zero, make sure |
219 | it is represented as a floating point value so that we can change | |
220 | its sign. | |
221 | ||
ba1b077b MV |
222 | From John W. Eaton <jwe@bevo.che.wisc.edu> |
223 | ||
224 | * numbers.c (idbl2str): Don't omit sign when printing negative zero. | |
225 | ||
74c58131 TTN |
226 | 2002-05-14 Thien-Thi Nguyen <ttn@giblet.glug.org> |
227 | ||
228 | * gc_os_dep.c: For I386/OPENBSD, allow for `__i386__' | |
0926d46e | 229 | in addition to `i386'. Thanks to Dale P. Smith. |
74c58131 | 230 | |
8766d4b5 MV |
231 | 2002-05-08 Marius Vollmer <mvo@zagadka.ping.de> |
232 | ||
233 | * eq.c (real_eqv): New. | |
234 | (scm_eqv_p): Use it when comparing reals and complexes. | |
235 | ||
236 | * numbers.c: Include <string.h>, for strncmp. | |
237 | (mem2complex): Do not create negative NaNs. | |
238 | (scm_leq_p, scm_geq_p): Explicitely return #f when comparing a | |
239 | NaN. | |
240 | (scm_inexact_to_exact): Signal error when converting a NaN. | |
74c58131 | 241 | |
1d8c3cad MV |
242 | 2002-05-06 Marius Vollmer <mvo@zagadka.ping.de> |
243 | ||
244 | * posix.c (scm_putenv): Handle removing variables explicitely by | |
245 | calling unsetenv. | |
246 | ||
247 | From John W. Eaton. | |
74c58131 | 248 | |
1d8c3cad MV |
249 | * numbers.h: Conditionally include floatingpoint.h, ieeefp.h, and |
250 | nan.h. Provide declarations for scm_inf_p, scm_nan_p, scn_inf, | |
251 | and scm_nan. | |
252 | * numbers.c: [SCO && ! HAVE_ISNAN] (isnan): New function. | |
253 | [SCO && ! HAVE_ISINF] (isinf): New function. | |
254 | (xisinf, xisnan): New functions. | |
255 | (IS_INF): Delete. | |
256 | (isfinite): Define in terms of xisinf. | |
257 | (scm_inf_p, scm_nan_p): New functions. | |
258 | (guile_Inf, guile_NaN): New file-scope vars. | |
259 | (guile_ieee_init): New function. | |
260 | (scm_inf, scm_nan): New functions. | |
261 | (idbl2str): Handle Inf and NaN. Remove funny label and | |
262 | corresponding gotos. | |
263 | (ALLOW_DIVIDE_BY_ZERO): New macro. | |
264 | (scm_divide): Allow division by zero to occur if | |
265 | ALLOW_DIVIDE_BY_ZERO is defined. | |
266 | Handle bignums and ints as special cases. | |
267 | ||
268 | Additional stuff by me: | |
269 | ||
270 | numbers.c (mem2ureal): Recognize "inf.0" and "nan.xxx". | |
271 | (scm_even_p, scm_odd_p): Treat infinity as even and odd. | |
272 | (iflo2str): Don't output a '+' for negative numbers or for Inf and | |
273 | NaN. They will provide their own sign. | |
274 | (scm_divide): Only allow divides by inexact zeros. Dividing by | |
275 | exact zeros still signals an errors. | |
74c58131 | 276 | |
7a0c65eb TTN |
277 | 2002-04-22 Thien-Thi Nguyen <ttn@giblet.glug.org> |
278 | ||
87b72063 | 279 | * goops.h (scm_slot_exists_p): Rename from scm_slots_exists_p. |
7a0c65eb TTN |
280 | * goops.c (scm_slot_exists_p): Rename from scm_slots_exists_p. |
281 | (s_scm_slot_exists_p): Rename from s_scm_slots_exists_p. | |
282 | Thanks to Andreas Rottmann. | |
283 | ||
5e423a39 GH |
284 | 2002-04-20 Gary Houston <ghouston@arglist.com> |
285 | ||
286 | * removal of unused fields in root state (thanks to Christopher | |
287 | Cramer for pointing out the disuse.) | |
288 | * root.h (scm_root_state): removed def_inp, def_outp, def_errp. | |
1841c44a | 289 | (scm_def_inp, scm_def_outp, scm_def_errp): removed. |
b6287a25 | 290 | |
5e423a39 GH |
291 | * root.c (root_mark): don't mark them. |
292 | (scm_make_root): don't set them to #f. | |
293 | * init.c (scm_init_standard_ports): don't initialise with the | |
294 | default ports. | |
295 | ||
9d2cce76 MV |
296 | 2002-04-17 Marius Vollmer <mvo@zagadka.ping.de> |
297 | ||
298 | * Makefile.am (EXTRA_DIST): Added cpp_err_symbols.c and | |
299 | cpp_sig_symbols.c. | |
300 | ||
301 | 2002-04-16 Marius Vollmer <mvo@zagadka.ping.de> | |
302 | ||
303 | * guile-snarf.in: Do not clean input file. This would write to | |
304 | the $(srcdir) during a VPATH build, which is not allowed. It also | |
305 | isn't needed since it only works when an output filename has been | |
306 | specified and in that case we don't need to clean the input file | |
307 | because the output file will already exist. | |
308 | ||
6f79b6cc MV |
309 | 2002-03-31 Marius Vollmer <mvo@zagadka.ping.de> |
310 | ||
311 | * guile-snarf: Install the trap for removing $cleanfile only when | |
312 | the value of $cleanfile is actually known. | |
313 | ||
21550b10 RB |
314 | 2002-04-10 Rob Browning <rlb@defaultvalue.org> |
315 | ||
316 | * .cvsignore: add versiondat.h and *.c.clean.c. | |
317 | ||
bc76d628 DH |
318 | 2002-03-26 Dirk Herrmann <D.Herrmann@tu-bs.de> |
319 | ||
320 | * srcprop.[ch] (scm_c_source_property_breakpoint_p): New | |
321 | function, replaces macro SRCBRKP. | |
322 | ||
323 | (SRCBRKP): Deprecated. | |
324 | ||
325 | * eval.c (SCM_CEVAL): Replaced use of SRCBRKP by call to | |
326 | scm_c_source_property_breakpoint_p. Removed some use of arg1 as | |
327 | temporary variable. | |
328 | ||
5132eef0 DH |
329 | 2002-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de> |
330 | ||
331 | * debug.h, eval.c: Deprecated CHECK_ENTRY, CHECK_APPLY and | |
332 | CHECK_EXIT and removed all references to them. | |
333 | ||
680516ba DH |
334 | 2002-03-24 Dirk Herrmann <D.Herrmann@tu-bs.de> |
335 | ||
336 | * debug.h (scm_ready_p, debug_print): Removed declarations. | |
337 | ||
338 | * eval.c (EVALCELLCAR): Removed. | |
339 | ||
340 | (SCM_CEVAL): Eliminated label loopnoap. Removed side-effecting | |
341 | operation from condition. | |
342 | ||
e2bd68e0 MV |
343 | 2002-03-24 Marius Vollmer <mvo@zagadka.ping.de> |
344 | ||
345 | * guile-snarf.in: When the output filename is "-", write to | |
346 | stdout. When no "-o" option is given, use "-" as the output | |
347 | filename (i.e., stdout). Only 'clean' the inputfile or remove the | |
348 | output file on error when the output file name is not "-". Define | |
349 | the preprocessor macro SCM_MAGIC_SNARFER while snarfing. | |
350 | ||
351 | * Makefile.am (.c.x): Pass "-o $@" to guile-snarf. | |
352 | ||
ab1f1094 DH |
353 | 2002-03-23 Dirk Herrmann <D.Herrmann@tu-bs.de> |
354 | ||
355 | * eval.c (SCM_CEVAL, SCM_APPLY): Eliminated labels wrongnumargs | |
356 | and the corresponding goto statements. Removed redundant code. | |
357 | ||
42030fb2 DH |
358 | 2002-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de> |
359 | ||
360 | * eval.c (SCM_CEVAL): Minimized scope of variable arg2. | |
361 | Eliminated redundant SCM_IMP check. Exlined call to EVALCAR. | |
362 | Re-enabled handing of rpsubrs and asubrs. | |
363 | ||
e050d4f8 DH |
364 | 2002-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de> |
365 | ||
366 | * eval.c (SIDEVAL): Removed. | |
367 | ||
368 | (SCM_CEVAL): Minimized scope of variable orig_sym. Eliminated | |
369 | goto-labels cdrxnoap, cdrxbegin and nontoplevel_cdrxnoap. Changed | |
370 | argument checking order for set! to locals, variables and symbols. | |
371 | Improvements to control structure. Removed some uses of arg1 and | |
372 | arg2 as temporary variables. | |
373 | ||
a6d344d3 TTN |
374 | 2002-03-15 Thien-Thi Nguyen <ttn@giblet.glug.org> |
375 | ||
376 | * guile-snarf.in: Remove "--compat=1.4" support. | |
377 | Add "-d" and "-D" support. | |
378 | ||
379 | (deprecated_list): New var. | |
380 | (compat_mode_clean_xxx): Delete. | |
381 | (grep_deprecated): New func. | |
382 | ("main"): If "-d" or "-D", call `grep_deprecated'. | |
383 | ||
3939e9df NJ |
384 | 2002-03-15 Neil Jerram <neil@ossau.uklinux.net> |
385 | ||
387d418c NJ |
386 | * hooks.h: Change scm_t_c_hookype_t everywhere to |
387 | scm_t_c_hook_type. | |
388 | ||
bb2c02f2 | 389 | Docstring fixes: |
a6d344d3 | 390 | |
bb2c02f2 NJ |
391 | * strings.c (scm_string_p): Change unnecessary `iff' to `if'. |
392 | ||
393 | * ports.c (scm_sys_make_void_port): Use `@file'. | |
394 | ||
395 | * numbers.c (scm_number_p, scm_real_p): Use `otherwise' rather | |
396 | than `else'. | |
397 | ||
398 | * macros.c (scm_makmacro): Don't say that the form replaces its | |
399 | source, because it doesn't. | |
400 | (scm_makmmacro): Clarify difference between this and scm_makmacro. | |
401 | ||
402 | * backtrace.c (scm_display_error), filesys.c (scm_umask, | |
403 | scm_select, scm_basename), goops.c (scm_method_generic_function), | |
404 | numbers.c (scm_integer_length), posix.c (scm_getgroups, scm_execl, | |
405 | scm_setlocale, scm_flock), socket.c (scm_shutdown): Correct | |
406 | spelling mistakes. | |
407 | ||
3939e9df NJ |
408 | * debug.c (scm_debug_options), eval.c |
409 | (scm_eval_options_interface), read.c (scm_read_options): Change | |
410 | incorrect @var in docstring to @code. | |
411 | ||
3b3cc781 MV |
412 | 2002-03-14 Marius Vollmer <mvo@zagadka.ping.de> |
413 | ||
500b0d5b MV |
414 | * unif.c (singp): Use SCM_REALP instead of SCM_SLOPPY_REALP. |
415 | ||
3b3cc781 MV |
416 | * snarf.h (SCM_SNARF_INIT): Add "^:^" after code so that |
417 | guile-snarf can remove trailing non-init code. | |
418 | ||
419 | * guile-snarf.in (modern_snarf): Remove everything following and | |
420 | including "^:^" from the output. | |
421 | ||
dff98306 DH |
422 | 2002-03-14 Dirk Herrmann <D.Herrmann@tu-bs.de> |
423 | ||
424 | * eval.c (SCM_CEVAL), srcprop.h (SRCBRKP): Eliminated union 't'. | |
425 | ||
426 | * eval.c (SCM_CEVAL): Exlined call to EVALCAR. | |
427 | ||
2287fb53 TTN |
428 | 2002-03-13 Thien-Thi Nguyen <ttn@giblet.glug.org> |
429 | ||
430 | * guile-snarf.in: Update copyright. | |
431 | Rewrite to internalize error handling. | |
432 | Add "--compat=1.4" handling. | |
433 | Add commentary. | |
434 | ||
435 | * Makefile.am (libpath.h): Use @top_srcdir_absolute@. | |
436 | (snarfcppopts): New var. | |
437 | (.c.x): Use $(snarfcppopts). Rework guile-snarf usage. | |
438 | (.c.doc): Use $(snarfcppopts). | |
439 | ||
822250a4 TTN |
440 | * alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c, |
441 | continuations.c, debug-malloc.c, debug.c, deprecation.c, dynl.c, | |
442 | dynwind.c, environments.c, eq.c, error.c, eval.c, evalext.c, | |
443 | extensions.c, feature.c, filesys.c, fluids.c, fports.c, gc.c, | |
444 | goops.c, gsubr.c, guardians.c, hash.c, hashtab.c, hooks.c, | |
445 | ioext.c, iselect.c, keywords.c, lang.c, list.c, load.c, macros.c, | |
446 | modules.c, net_db.c, numbers.c, objects.c, objprop.c, options.c, | |
447 | pairs.c, ports.c, posix.c, print.c, procprop.c, procs.c, | |
448 | properties.c, ramap.c, random.c, rdelim.c, read.c, regex-posix.c, | |
449 | root.c, rw.c, scmsigs.c, script.c, simpos.c, socket.c, sort.c, | |
450 | srcprop.c, stackchk.c, stacks.c, stime.c, strings.c, strop.c, | |
451 | strorder.c, strports.c, struct.c, symbols.c, threads.c, throw.c, | |
452 | unif.c, values.c, variable.c, vectors.c, version.c, vports.c, | |
453 | weaks.c: Retire inclusion guard macro SCM_MAGIC_SNARFER. | |
454 | ||
b7798e10 DH |
455 | 2002-03-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
456 | ||
457 | * eval.c (SCM_CEVAL): Got rid of the last reference to t.lloc. | |
458 | The next step will be to remove the union 't' and simplify the | |
459 | code of SCM_CEVAL that way. | |
460 | ||
04a98cff NJ |
461 | 2002-03-12 Neil Jerram <neil@ossau.uklinux.net> |
462 | ||
463 | * iselect.c (collisionp, gnfds, greadfds, gwritefds, gexceptfds, | |
464 | rreadfds, rwritefds, rexceptfds): Made static. | |
465 | ||
466 | * gc.c (terminating), fports.c (terminating): Renamed | |
467 | scm_i_terminating. | |
468 | ||
16d98032 MV |
469 | 2002-03-11 Marius Vollmer <mvo@zagadka.ping.de> |
470 | ||
5046250e MV |
471 | * numbers.c (scm_divide): Adapt code from libstdc++/f2c to void |
472 | potential overflow problems. Thanks to John W Eaton! | |
473 | ||
8794207d MV |
474 | * strop.c (string_capitalize_x): Treat characters as unsigned so |
475 | that 8-bit chars work. Thanks to David Pirotte! | |
16d98032 | 476 | |
1d15ecd3 DH |
477 | 2002-03-10 Dirk Herrmann <D.Herrmann@tu-bs.de> |
478 | ||
479 | * eval.c (SCM_CEVAL): Cleaned up the handling of 'slot-ref', | |
480 | 'slot-set!' and 'nil-cond'. Removed some uses of t.arg1, arg2 and | |
481 | proc as temporary variables. Introduced temporary variables with | |
482 | hopefully descriptive names for clarification. Replaced SCM_N?IMP | |
483 | by a more explicit predicate in some places. | |
484 | ||
485 | 2002-03-09 Dirk Herrmann <D.Herrmann@tu-bs.de> | |
f12745b6 DH |
486 | |
487 | * eval.c (SCM_CEVAL): Cleaned up the handling of #@dispatch. | |
488 | Added lots of comments regarding the implementation of #@dispatch. | |
489 | Changed intra-procedure communication to use t.arg1 instead of | |
490 | arg2. Removed some uses of t.arg1, t.lloc and proc as temporary | |
491 | variables. Introduced temporary variables with hopefully | |
492 | descriptive names for clarification. Replaced SCM_N?IMP by a more | |
493 | explicit predicate in some places. Use SCM_INSTANCE_HASH instead | |
494 | of computing the expression explicitly. Eliminate now unused | |
495 | label nontoplevel_cdrxbegin. | |
496 | ||
497 | * goops.h (SCM_INSTANCE_HASH): New macro. | |
498 | ||
499 | * objects.h (SCM_CMETHOD_FORMALS, SCM_CMETHOD_BODY): New macros. | |
500 | ||
1ebf1566 TTN |
501 | 2002-03-08 Thien-Thi Nguyen <ttn@giblet.glug.org> |
502 | ||
503 | * Makefile.am (bin_SCRIPTS): Revive this decl, w/ initial element | |
504 | "guile-snarf" moved back from `noinst_SCRIPTS'. | |
505 | ||
020c890c NJ |
506 | 2002-03-08 Neil Jerram <neil@ossau.uklinux.net> |
507 | ||
58d233cc NJ |
508 | * srcprop.c (scm_set_source_property_x): If SRCPROPS obj already |
509 | exists when adding a source property other than those that are | |
510 | handled explicitly, add the new property to the SRCPROPS obj's | |
511 | plist. | |
512 | ||
020c890c NJ |
513 | * debug.h (SCM_MAX_FRAME_SIZE): Remove incorrect comment about use |
514 | of SCM_MAX_FRAME_SIZE as a bit mask; it isn't used like this. | |
515 | ||
516 | * eval.c (SCM_CEVAL): Don't store scm_debug_eframe_size in | |
517 | debug.status. It isn't needed, and it can overflow the bits | |
518 | reserved for it (which may lead to a segv or a GC abort). | |
519 | ||
3f04400d DH |
520 | 2002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de> |
521 | ||
522 | * eval.c (SCM_CEVAL): Cleaned up the handling of 'apply'. Removed | |
523 | side-effecting operations from conditions and macro calls. | |
524 | Replaced SCM_N?IMP by a more explicit predicate in some places. | |
525 | Minimized the scope of some variables. | |
526 | ||
97820583 SJ |
527 | 2002-03-02 Stefan Jahn <stefan@lkcc.org> |
528 | ||
529 | * convert.i.c: Fixed int <-> long conversions which would have | |
530 | failed if their sizes were different. | |
531 | ||
38ace99e DH |
532 | 2002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de> |
533 | ||
534 | * eval.c (SCM_CEVAL): Cleaned up the handling of 'if', 'let', | |
535 | 'letrec' and 'set*': Removed some uses of t.arg1, t.lloc and proc | |
536 | as temporary variables. Removed side-effecting operations from | |
537 | conditions and macro calls. Introduced temporary variables with | |
538 | hopefully descriptive names for clarification. Replaced SCM_N?IMP | |
539 | by a more explicit predicate in some places. Removed code that | |
540 | was conditionally compiled if SICP was defined - which it never | |
541 | is. | |
542 | ||
e5cb71a0 DH |
543 | 2002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de> |
544 | ||
545 | * eval.c (SCM_CEVAL): Cleaned up the handling of 'cons' and 'do': | |
546 | Removed some uses of t.arg1 and proc as temporary variables. | |
547 | Removed side-effecting operations from conditions and macro calls. | |
548 | Introduced temporary variables with hopefully descriptive names | |
549 | for clarification. Replaced SCM_N?IMP by a more explicit | |
550 | predicate in some places. | |
551 | ||
6a0f6ff3 DH |
552 | 2002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de> |
553 | ||
554 | * eval.c (scm_badargsp, SCM_CEVAL): Replaced SCM_N?IMP by a more | |
555 | explicit predicate in some places. | |
556 | ||
557 | (CHECK_EQVISH): Removed. | |
558 | ||
559 | (SCM_CEVAL): Removed some uses of t.arg1 and proc as temporary | |
560 | variables. Removed side-effecting operations from conditions and | |
561 | macro calls. Introduced temporary variables for clarification. | |
562 | Sorted if-else-if check for the type of the last form in a list by | |
563 | frequency. Avoided some unnecessary tail-recursion calls. | |
564 | ||
228a24ef DH |
565 | 2002-03-01 Dirk Herrmann <D.Herrmann@tu-bs.de> |
566 | ||
567 | * gc.c (SCM_HEAP_SEG_SIZE, CELL_UP, CELL_DN, NEXT_DATA_CELL, | |
568 | init_heap_seg, alloc_some_heap), gc.h (struct scm_cell, struct | |
569 | scm_t_cell, SCM_CELLPTR, SCM_GC_CARD_SIZE, | |
570 | SCM_GC_IN_CARD_HEADERP), tags.h (SCM_CELLP): Renamed the struct | |
571 | scm_cell and all its uses to scm_t_cell in accordance to Guile's | |
572 | naming scheme for types. | |
573 | ||
574 | * alist.c (scm_acons), convert.i.c (CTYPES2UVECT, | |
575 | CTYPES2UVECT_OPTIONAL), coop-threads.c (scm_call_with_new_thread, | |
576 | scm_spawn_thread), debug.c (scm_make_debugobj), environments.c | |
577 | (scm_make_environment), eval.c (scm_closure), fports.c | |
578 | (scm_fdes_to_port), gc.c (scm_deprecated_newcell, | |
579 | scm_deprecated_newcell2), inline.h (scm_alloc_cell, scm_cell), | |
580 | list.c (SCM_I_CONS), numbers.c (scm_i_mkbig), pairs.c (scm_cons), | |
581 | ports.c (scm_void_port), procs.c (scm_c_make_subr, scm_makcclo), | |
582 | smob.c (scm_make_smob), smob.h (SCM_NEWSMOB), strings.c | |
583 | (scm_take_str, scm_allocate_string), strports.c (scm_mkstrport), | |
584 | unif.c (scm_make_uve), variable.c (make_variable), vectors.c | |
585 | (scm_c_make_vector), vports.c (scm_make_soft_port): Renamed | |
586 | scm_alloc_cell to scm_cell. | |
587 | ||
588 | * environments.c (core_environments_observe), gc.c | |
589 | (scm_deprecated_newcell2), goops.c (wrap_init, scm_wrap_object), | |
590 | inline.h (scm_alloc_double_cell, scm_double_cell), num2float.i.c | |
591 | (FLOAT2NUM), numbers.c (scm_make_real), procs.c | |
592 | (scm_make_procedure_with_setter), smob.h (SCM_NEWSMOB2, | |
593 | SCM_NEWSMOB3), struct.c (scm_make_struct, scm_make_vtable_vtable), | |
594 | symbols.c (scm_mem2symbol, scm_mem2uninterned_symbol), weaks.c | |
595 | (allocate_weak_vector): Renamed scm_alloc_double_cell to | |
596 | scm_double_cell. | |
597 | ||
edb810bb SJ |
598 | 2002-02-27 Stefan Jahn <stefan@lkcc.org> |
599 | ||
600 | * convert.i.c, convert.c: Better range checking. | |
601 | ||
602 | * inet_aton.c, fports.c: Commented the inclusion of <winsock2.h>. | |
603 | ||
1ebf1566 | 604 | * deprecation.c (vsnprintf): Define to `_vsnprintf' for |
edb810bb SJ |
605 | Windows (MinGW). |
606 | ||
327d4dd3 TTN |
607 | 2002-02-26 Thien-Thi Nguyen <ttn@giblet.glug.org> |
608 | ||
609 | * Makefile.am: Update path to pre-inst-guile automake frag. | |
610 | ||
89d7a92c | 611 | 2002-02-25 Dirk Herrmann <D.Herrmann@tu-bs.de> |
646052c0 DH |
612 | |
613 | * gc.c (scm_gc_sweep): Make it compile even when deprecated | |
614 | features are excluded. | |
615 | ||
89d7a92c | 616 | 2002-02-25 Dirk Herrmann <D.Herrmann@tu-bs.de> |
bac0e232 DH |
617 | |
618 | * num2integral.i.c (NUM2INTEGRAL): Fixed signedness problem. | |
619 | ||
4f2716b6 GH |
620 | 2002-02-25 Gary Houston <ghouston@arglist.com> |
621 | ||
622 | * convert.c: include <string.h> for convert_i.c. | |
623 | ||
46151112 RB |
624 | 2002-02-24 Rob Browning <rlb@defaultvalue.org> |
625 | ||
626 | * .cvsignore: add stamp-h1. | |
627 | ||
cd328b4f NJ |
628 | 2002-02-21 Neil Jerram <neil@ossau.uklinux.net> |
629 | ||
630 | * unif.c (scm_array_to_list): Correct name, which had been | |
631 | accidentally changed to scm_t_arrayo_list! | |
632 | ||
c709de7f MD |
633 | 2002-02-20 Mikael Djurfeldt <mdj@linnaeus> |
634 | ||
635 | * gc.c (scm_gc_sweep): Print an error message when aborting due to | |
636 | underflowing scm_mallocated. | |
637 | ||
c1965d31 MV |
638 | 2002-02-14 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
639 | ||
640 | * gc.h, gc.c (scm_must_malloc, scm_must_realloc, scm_must_strdup, | |
641 | scm_must_strndup, scm_done_malloc, scm_done_free, scm_must_free): | |
642 | Reimplemented using the new scm_gc_malloc, etc., functions and | |
643 | deprecated. | |
644 | ||
b606945b TTN |
645 | 2002-02-11 Thien-Thi Nguyen <ttn@giblet.glug.org> |
646 | ||
647 | * Makefile.am (bin_PROGRAMS): Move `guile_filter_doc_snarfage' | |
648 | to `noinst_PROGRAMS'. | |
649 | (bin_SCRIPTS): Move all values to `noinst_SCRIPTS'; delete. | |
650 | (noinst_PROGRAMS, noinst_SCRIPTS): New. | |
651 | ||
7c686ba8 MV |
652 | 2002-02-11 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
653 | ||
654 | * gc.h, gc.c (scm_gc_sweep): Issue deprecation warning when | |
655 | non-zero is returned from a port or smob free function. | |
656 | (scm_malloc, scm_realloc, scm_strndup, scm_strdup, | |
657 | scm_gc_register_collectable_memory, | |
658 | scm_gc_unregister_collectable_memory, scm_gc_malloc, | |
659 | scm_gc_realloc, scm_gc_free, scm_gc_strndup, scm_gc_strdup): New. | |
660 | ||
661 | * backtrace.c, continuations.c, convert.i.c, coop-threads.c, | |
662 | debug-malloc.c, dynl.c, environments.c, environments.h, | |
663 | extensions.c, filesys.c, fports.c, gc.c, gc.h, gh_data.c, goops.c, | |
664 | guardians.c, hooks.c, init.c, keywords.c, load.c, numbers.c, | |
665 | ports.c, posix.c, procs.c, rdelim.c, regex-posix.c, root.c, | |
666 | smob.c, stime.c, strings.c, struct.c, struct.h, symbols.c, unif.c, | |
667 | vectors.c, weaks.c: Use scm_gc_malloc/scm_malloc and | |
668 | scm_gc_free/free instead of scm_must_malloc and scm_must_free, as | |
669 | appropriate. Return zero from smob and port free functions. | |
670 | ||
671 | * debug-malloc.c (scm_malloc_reregister): Handle "old == NULL". | |
672 | ||
673 | * deprecation.h, deprecation.c: Reimplemented to allow deprecation | |
674 | messages while the GC is running. | |
675 | (scm_c_issue_deprecation_warning_fmt): New. | |
676 | ||
677 | * fports.c (scm_setvbuf): Reset read buffer to saved values when | |
678 | it is pointing to the putback buffer. | |
679 | ||
66adc0a6 TTN |
680 | 2002-02-08 Thien-Thi Nguyen <ttn@giblet.glug.org> |
681 | ||
682 | * gsubr.c (create_gsubr): On "too many args" error, | |
683 | also display arg count and name. Thanks to Bill Schottstaedt. | |
684 | ||
0187b4f4 TTN |
685 | 2002-02-05 Thien-Thi Nguyen <ttn@giblet.glug.org> |
686 | ||
687 | * Makefile.am: Include $(top_srcdir)/pre-inst-guile.am. | |
688 | ||
689 | (bin_SCRIPTS): Remove guile-snarf-docs-texi. | |
690 | (alldotdocfiles, snarf2checkedtexi, dotdoc2texi): New vars. | |
691 | (guile.texi, guile-procedures.texi): Use $(dotdoc2texi). | |
692 | ||
693 | * guile-snarf-docs-texi.in: Bye bye. | |
694 | ||
402e687c MV |
695 | 2002-02-04 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
696 | ||
697 | * symbols.c (scm_make_symbol): Fix typo in docstring. | |
698 | ||
699 | * symbols.h (scm_mem2uninterned_symbol, scm_symbol_interned_p, | |
700 | scm_make_symbol): New prototypes. | |
701 | ||
319b98ed MV |
702 | 2002-02-03 Marius Vollmer <mvo@zagadka.ping.de> |
703 | ||
704 | * symbols.h (SCM_SET_SYMBOL_HASH): Removed. | |
705 | (SCM_SYMBOL_INTERNED_P): New. | |
706 | * symbols.c (scm_symbol_hash): Use scm_ulong2num instead of | |
707 | SCM_MAKINUM since hash values can well be bignums. | |
708 | (scm_mem2symbol): Only use hash values below SCM_T_BITS_MAX/2. | |
709 | This signals a interned symbol. | |
710 | (scm_mem2uninterned_symbol, scm_symbol_interned_p, | |
711 | scm_make_symbol): New. | |
0187b4f4 | 712 | |
319b98ed MV |
713 | * print.c (scm_iprin1): Print uninterned symbols unreadably. |
714 | ||
34472dfe TTN |
715 | 2002-02-02 Thien-Thi Nguyen <ttn@giblet.glug.org> |
716 | ||
717 | * __scm.h (HAVE_UINTPTR_T): Only define if UINTPTR_T attributes | |
718 | are defined: UINTPTR_MAX, INTPTR_MAX, INTPTR_MIN. | |
0187b4f4 | 719 | Thanks to Dave Love. |
34472dfe | 720 | |
1b39c2e3 MV |
721 | 2002-01-31 Marius Vollmer <mvo@zagadka.ping.de> |
722 | ||
723 | * symbols.c (scm_gensym): Use " g" as default prefix, not "g". | |
319b98ed | 724 | This might help to make unintended clashes less likely. |
1b39c2e3 MV |
725 | (scm_string_to_symbol): Protect the string until the symbols is |
726 | created. | |
727 | ||
1fa86ca5 SJ |
728 | 2002-01-31 Stefan Jahn <stefan@lkcc.org> |
729 | ||
730 | * convert.c, convert.h, convert.i.c: New files containing C | |
34472dfe | 731 | array to Scheme conversion helpers meant to be replacement |
1fa86ca5 SJ |
732 | functions for the deprecated gh interface. |
733 | ||
734 | * Makefile.am: Setup rules for new `convert.*' files. | |
735 | ||
af68e5e5 SJ |
736 | 2002-01-28 Stefan Jahn <stefan@lkcc.org> |
737 | ||
738 | * symbols.c (scm_c_symbol2str): New function, replacement for | |
739 | `gh_scm2newsymbol()'. | |
740 | ||
34472dfe | 741 | * strings.c (scm_c_substring2str): New function. Proper |
af68e5e5 SJ |
742 | replacement for `gh_get_substr()'. |
743 | ||
744 | * socket.c: Include `stdint.h' if available for the `uint32_t' | |
745 | declaration. | |
746 | ||
34472dfe | 747 | * scmsigs.c (s_scm_sigaction): Initialize `chandler' (inhibits |
af68e5e5 SJ |
748 | compiler warning). |
749 | ||
750 | * backtrace.c: Include `lang.h' for GUILE_DEBUG conditional. | |
751 | ||
c96d76b8 | 752 | 2002-01-22 Neil Jerram <neil@ossau.uklinux.net> |
34472dfe | 753 | |
c96d76b8 | 754 | Other changes unrelated to Elisp... |
34472dfe | 755 | |
c96d76b8 NJ |
756 | * eval.c (scm_m_if): Use s_if rather than repeating string literal |
757 | "if". | |
758 | (comments): Fix a few typos. | |
759 | (scm_for_each): Add parentheses around oddly unparenthesized | |
760 | if/while conditions. | |
761 | ||
762 | * read.c (scm_read_opts): Add full stop at end of doc for | |
763 | `keywords' option. | |
764 | ||
765 | * script.c (scm_compile_shell_switches): Use scm_str2symbol | |
766 | instead of gh_symbol2scm. | |
767 | ||
768 | * srcprop.h (SRCPROPBRK): Return C type rather than SCM. | |
769 | (SRCBRKP): Use SRCPROPBRK rather than duplicating its logic. | |
770 | ||
771 | * srcprop.c (scm_srcprops_to_plist, scm_source_property): Change | |
772 | SRCPROPBRK (x) to SCM_BOOL (SRCPROPBRK (x)). | |
773 | ||
774 | First batch of changes for Elisp support... | |
775 | ||
776 | * alist.c, async.c, boolean.c, dynl.c, eval.c, filesys.c, | |
777 | fluids.c, list.c, load.c, options.c, posix.c, print.c, sort.c, | |
778 | throw.c, vectors.c, weaks.c: Add #include for lang.h. | |
779 | ||
780 | * eval.c, eval.h, init.c, lang.c, lang.h: Use SCM_ENABLE_ELISP to | |
781 | conditionalize compilation and initialization of Elisp support | |
782 | function. | |
34472dfe | 783 | |
c96d76b8 NJ |
784 | * alist.c (scm_assq, scm_assv, scm_assoc), async.c |
785 | (scm_asyncs_pending, scm_run_asyncs, noop), backtrace.c | |
786 | (scm_set_print_params_x), dynl.c (scm_make_argv_from_stringlist), | |
787 | filesys.c (fill_select_type, retrieve_select_type), fluids.c | |
788 | (scm_swap_fluids, scm_swap_fluids_reverse), list.c (scm_null_p, | |
789 | scm_ilength, scm_append_x, scm_last_pair, scm_reverse, | |
790 | scm_reverse_x, scm_list_ref, scm_list_set_x, scm_list_cdr_set_x, | |
bbd26b5a NJ |
791 | scm_c_memq, scm_memv, scm_member), load.c (scm_search_path), |
792 | options.c (change_option_setting, scm_options), posix.c | |
793 | (environ_list_to_c), print.c (scm_iprlist), throw.c | |
794 | (scm_exit_status), vectors.c (scm_vector), weaks.c | |
795 | (scm_weak_vector): Use SCM_NULL_OR_NIL_P instead of SCM_NULLP. | |
c96d76b8 NJ |
796 | |
797 | * boolean.c (scm_not): Use `SCM_FALSEP || SCM_NILP' instead of | |
798 | just SCM_FALSEP. | |
34472dfe | 799 | |
c96d76b8 NJ |
800 | * boolean.c (scm_boolean_p): Use `SCM_BOOLP || SCM_NILP' instead |
801 | of just SCM_BOOLP. | |
802 | ||
803 | * eval.c (scm_lisp_nil, scm_lisp_t, s_nil_ify, scm_m_nil_ify, | |
804 | s_t_ify, scm_m_t_ify, s_0_cond, scm_m_0_cond, s_0_ify, | |
805 | scm_m_0_ify, s_1_ify, scm_m_1_ify): Removed. | |
806 | (scm_m_atfop): Support function aliasing. Support both function | |
807 | args, which need transformation, and macro args, which do not. | |
808 | Add explanatory comments. | |
809 | (SCM_CEVAL): In switch cases for SCM_IM_AND, SCM_IM_COND, | |
810 | SCM_IM_DO, SCM_IM_IF and SCM_IM_OR, add `|| SCM_NILP' to existing | |
811 | checks for SCM_FALSEP. In switch case for SCM_IM_NIL_COND, use | |
812 | SCM_NULLP || SCM_NILP instead of checks against (removed) | |
813 | scm_lisp_nil. Removed switch cases for SCM_IM_NIL_IFY, | |
814 | SCM_IM_T_IFY, SCM_IM_0_COND, SCM_IM_0_IFY, SCM_IM_1_IFY. | |
815 | ||
816 | * lang.c (scm_nil_cons, scm_nil_car, scm_nil_cdr, scm_null, | |
817 | scm_m_while, scm_nil_eq): Commented out; I don't think we need | |
818 | these, but I don't want to remove them yet, just in case. | |
819 | (scm_init_lang): Define `%nil' variable on Scheme level to hold | |
820 | Elisp nil value. | |
821 | ||
822 | * lang.h (SCM_NILP): Test against Elisp nil value instead of | |
823 | against (removed) scm_lisp_nil. | |
824 | (SCM_NILNULLP, SCM_NIL2EOL, SCM_EOL2NIL): Commented out. | |
825 | (SCM_NULL_OR_NIL_P): New. | |
826 | ||
827 | * list.c (scm_append): Use SCM_VALIDATE_NULL_OR_NIL instead of | |
828 | SCM_VALIDATE_NULL. | |
829 | ||
830 | * print.c (scm_isymnames): Fix comment. Remove #@nil-ify, | |
831 | #@t-ify, #@0-cond, #@0-ify, #@1-ify. Add #nil (for SCM_ELISP_NIL | |
832 | value). | |
833 | ||
834 | * sort.c (scm_sorted_p, scm_merge, scm_merge_list_x, scm_merge_x, | |
835 | scm_sort_x, scm_sort, scm_stable_sort_x, scm_stable_sort): Use | |
836 | SCM_NULL_OR_NIL_P instead of SCM_NULLP. In constructions like `if | |
837 | (SCM_NULLP (x)) return SCM_EOL;', return x rather than SCM_EOL. | |
838 | ||
839 | * tags.h (SCM_IM_NIL_IFY, SCM_IM_T_IFY, SCM_IM_0_COND, | |
840 | SCM_IM_0_IFY, SCM_IM_1_IFY): Removed. | |
841 | (SCM_IM_BIND, SCM_IM_DELAY, SCM_IM_CALL_WITH_VALUES, SCM_UNBOUND): | |
842 | Numbering shifted down accordingly. | |
843 | (SCM_ELISP_NIL): New IFLAG. | |
844 | ||
845 | * validate.h (SCM_VALIDATE_NULL_OR_NIL): New. | |
34472dfe | 846 | |
a392ee15 DH |
847 | 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de> |
848 | ||
849 | * eval.c: Removed outdated references to "everr". Improved some | |
850 | comments. | |
851 | ||
852 | (scm_deval_args, deval_args): Renamed scm_deval_args to | |
853 | deval_args, since it is not part of the interface. | |
854 | ||
855 | (SCM_CEVAL): Added (maybe somewhat verbose) comment. Avoid to | |
856 | use references to debug.vect[0] before it exists. Add parentheses | |
857 | to switch statement. | |
858 | ||
859 | * goops.h: Added local emacs variables. | |
860 | ||
24933780 DH |
861 | 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de> |
862 | ||
863 | * eval.[ch] (scm_deval_args): Made static. | |
864 | ||
865 | * srcprop.c (scm_source_property): Remove redundant SCM_IMP | |
866 | test. | |
867 | ||
868 | * strings.c (scm_c_string2str): Clarified comment. Replaced | |
869 | THINKME by FIXME for uniformness. Removed question about whether | |
870 | arguments need to be protected from garbage collection: Arguments | |
871 | must be protected as any other variable. | |
872 | ||
f9450cdb DH |
873 | 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de> |
874 | ||
875 | * procs.h (SCM_CLOSURE_BODY): New Macro. | |
876 | ||
877 | * debug.c (scm_procedure_name, scm_procedure_source), eval.c | |
878 | (SCM_CEVAL, SCM_APPLY), goops.c (scm_sys_initialize_object, | |
879 | get_slot_value, set_slot_value), procs.c | |
880 | (scm_procedure_documentation), sort.c (closureless), stacks.c | |
881 | (get_applybody): Replace SCM_CDR (SCM_CODE (...)) by | |
882 | SCM_CLOSURE_BODY. | |
883 | ||
884 | * sort.c (closureless): Prefer !SCM_FOOP over SCM_NFOOP. | |
885 | ||
5dc64f64 MV |
886 | 2001-12-26 Marius Vollmer <mvo@zagadka.ping.de> |
887 | ||
888 | * Makefile.am (guile-procedures.txt): When we don't have makeinfo, | |
889 | use "cp" instead. | |
890 | ||
197ee3d3 MV |
891 | 2001-12-16 Marius Vollmer <mvo@zagadka.ping.de> |
892 | ||
893 | * stacks.c, stacks.h (scm_t_stackype): Renamed to scm_stack_type | |
894 | everywhere. | |
895 | ||
896 | * continuations.c (scm_make_continuation): Do not retain the | |
897 | throw_value when the continuation is invoked. | |
898 | ||
4d4528e7 SJ |
899 | 2001-12-08 Stefan Jahn <stefan@lkcc.org> |
900 | ||
901 | * strings.c (scm_c_string2str): New function. Converts a | |
34472dfe | 902 | given Scheme string into a C string. Also put in two |
4d4528e7 SJ |
903 | THINKME's regarding the malloc policy for the missing converter |
904 | routines. | |
905 | ||
98347362 NJ |
906 | 2001-12-01 Neil Jerram <neil@ossau.uklinux.net> |
907 | ||
908 | * gh_data.c (gh_module_lookup): Use scm_str2symbol rather than | |
909 | gh_symbol2scm. | |
910 | ||
1fc8902f DH |
911 | 2001-11-28 Dirk Herrmann <D.Herrmann@tu-bs.de> |
912 | ||
913 | * gc.h (SCM_GC_CELL_WORD, SCM_GC_CELL_OBJECT, | |
914 | SCM_GC_SET_CELL_WORD, SCM_GC_SET_CELL_OBJECT): New macros. | |
915 | ||
916 | (SCM_GC_CELL_TYPE, SCM_CELL_WORD, SCM_CELL_OBJECT, | |
917 | SCM_SET_CELL_WORD, SCM_SET_CELL_OBJECT, SCM_FREE_CELL_CDR, | |
918 | SCM_GC_SET_CELL_OBJECT): Express in terms of SCM_GC_CELL_* | |
919 | macros. | |
920 | ||
921 | (SCM_FREE_CELL_P): Express in terms of SCM_GC_CELL_TYPE. | |
922 | ||
923 | * inline.h (scm_alloc_cell, scm_alloc_double_cell): Use | |
924 | SCM_GC_CELL_* macros when accessing free cells. | |
925 | ||
4878beec MV |
926 | 2001-11-25 Marius Vollmer <mvo@zagadka.ping.de> |
927 | ||
928 | * vectors.h (SCM_MAKE_VECTOR_TAG): New. | |
34472dfe | 929 | * unif.h (SCM_MAKE_BITVECTOR_TAG, SCM_MAKE_UVECTOR_TAG): New. |
4878beec MV |
930 | * symbols.h (SCM_MAKE_SYMBOL_TAG): New. |
931 | * strings.h (SCM_MAKE_STRING_TAG): New. | |
932 | * procs.h (SCM_MAKE_CCLO_TAG): New. | |
933 | * numbers.h (SCM_MAKE_BIGNUM_TAG): New. | |
934 | ||
935 | * goops.h: Replaced SCM_DEBUG_DEPRECATED with | |
936 | !SCM_ENABLE_DEPRECATED. | |
937 | ||
938 | * async.c, async.h (scm_system_async_mark_from_signal_handler): | |
939 | New. | |
940 | ||
941 | * scmsigs.c (scm_take_signal): Removed all code that assumes that | |
942 | signal handlers are allowed to divert the flow of control. Call | |
943 | scm_system_async_mark_from_signal_handler instead of | |
944 | scm_system_async_mark. | |
945 | ||
946 | ||
947 | Deprecated SCM_NEWCELL and SCM_NEWCELL2. Added scm_alloc_cell and | |
948 | scm_alloc_double_cell in their place. | |
34472dfe | 949 | |
4878beec MV |
950 | * gc.h (SCM_GC_SET_ALLOCATED, scm_debug_newcell, |
951 | scm_debug_newcell2, scm_tc16_allocated): Removed from header. | |
952 | (scm_deprecated_newcell, scm_deprecated_newcell2): New. | |
953 | (SCM_NEWCELL, SCM_NEWCELL2): Implement in terms of | |
954 | scm_deprecated_newcell and scm_deprecated_newcell2. | |
955 | ||
956 | gc.c (scm_tc16_allocated): Only define when including deprecated | |
957 | features. | |
958 | (scm_debug_newcell, scm_debug_newcell2): Removed. | |
959 | (scm_init_storage): Do not initialize scm_tc16_allocated. | |
960 | (scm_init_gc): Do it here. | |
961 | (allocated_mark): New, from old code. | |
962 | (scm_deprecated_newcell, scm_deprecated_newcell2): New. | |
34472dfe | 963 | |
4878beec | 964 | * inline.c, inline.h: New files. |
34472dfe | 965 | * Makefile.am: Added them in all the right places. |
4878beec | 966 | |
34472dfe | 967 | * _scm.h: Include "libguile/inline.h". |
4878beec MV |
968 | |
969 | * alist.c, coop-threads.c, debug.c, environments.c, eval.c, | |
970 | fports.c, gh_data.c, goops.c, guardians.c, lang.c, list.c, | |
971 | num2float.i.c, numbers.c, pairs.c, ports.c, print.c, procs.c, | |
972 | smob.c, smob.h, strings.c, strports.c, struct.c, symbols.c, | |
973 | unif.c, variable.c, vectors.c, vports.c, weaks.c: Replaced | |
974 | SCM_NEWCELL and SCM_NEWCELL2 with scm_alloc_cell and | |
975 | scm_alloc_double_cell, respectively. | |
976 | ||
d2bc7fae MV |
977 | 2001-11-23 Marius Vollmer <mvo@zagadka.ping.de> |
978 | ||
979 | * modules.c (scm_c_use_module): Adapt to changes to | |
980 | `process-use-modules'. | |
981 | ||
5eec27e9 DH |
982 | 2001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de> |
983 | ||
984 | * numbers.c (scm_divide): Fix more division by zero errors. | |
985 | ||
8978878f GH |
986 | 2001-11-21 Gary Houston <ghouston@arglist.com> |
987 | ||
988 | * Makefile.am (OMIT_DEPENDENCIES): removed, since it seems to be | |
989 | obsolete. autogen.sh says: | |
990 | invalid unused variable name: `OMIT_DEPENDENCIES' | |
991 | ||
164826d3 DH |
992 | 2001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de> |
993 | ||
994 | * numbers.c (scm_divide): Fix (/ 0). Thanks to Keith Wright for | |
995 | reporting the bug. | |
996 | ||
84aff7a7 MV |
997 | 2001-11-21 Marius Vollmer <mvo@zagadka.ping.de> |
998 | ||
999 | * Makefile.am (install-exec-hook): Prepend $(DESTDIR) to filename. | |
1000 | Thanks to Eric Gillespie, Jr! | |
34472dfe | 1001 | |
6063dc1d SJ |
1002 | 2001-11-21 Stefan Jahn <stefan@lkcc.org> |
1003 | ||
34472dfe TTN |
1004 | * win32-socket.c (getservent, setservent, endservent, |
1005 | getprotoent, setprotoent, endprotoent): New functions. | |
6063dc1d SJ |
1006 | Appropriate replacements for M$-Windows. |
1007 | ||
1008 | * numbers.c (SIZE_MAX, PTRDIFF_MAX, PTRDIFF_MIN): Reintroduced | |
1009 | these definitions for GUILE_DEBUG. | |
1010 | ||
1011 | * net_db.c: Include "win32-socket.h" if compiling with a native | |
34472dfe TTN |
1012 | M$-Windows compiler. Include some pieces of code (protoent and |
1013 | servent interface) protected by HAVE_* macros when using a | |
6063dc1d SJ |
1014 | native M$-Windows compiler. |
1015 | ||
351982f6 MV |
1016 | 2001-11-20 Marius Vollmer <mvo@zagadka.ping.de> |
1017 | ||
1018 | * modules.c (scm_c_export): Do nothing when the first argument is | |
1019 | already the terminating NULL. Thanks to Han-Wen Nienhuys! | |
1020 | ||
849038b5 TTN |
1021 | 2001-11-20 Thien-Thi Nguyen <ttn@glug.org> |
1022 | ||
1023 | * Makefile.am (libpath.h): In SCM_BUILD_INFO, | |
1024 | also include `buildstamp'. | |
1025 | ||
5c790b44 RB |
1026 | 2001-11-18 Rob Browning <rlb@defaultvalue.org> |
1027 | ||
1028 | * version.c | |
1029 | (s_scm_major_version): use SCM_MAJOR_VERSION. | |
1030 | (s_scm_minor_version): use SCM_MINOR_VERSION. | |
1031 | (s_scm_micro_version): use SCM_MICRO_VERSION. | |
1032 | (s_scm_version): use SCM_MAJOR_VERSION, SCM_MINOR_VERSION, and | |
1033 | SCM_MICRO_VERSION. | |
1034 | ||
1035 | * version.h.in | |
1036 | (SCM_MAJOR_VERSION): renamed from SCM_GUILE_MAJOR_VERSION. | |
1037 | (SCM_MINOR_VERSION): renamed from SCM_GUILE_MINOR_VERSION. | |
1038 | (SCM_MICRO_VERSION): renamed from SCM_GUILE_MICRO_VERSION. | |
1039 | ||
694a9bb3 NJ |
1040 | 2001-11-18 Neil Jerram <neil@ossau.uklinux.net> |
1041 | ||
1042 | * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x): | |
1043 | Rewrite docstrings without reference to substring-move-left/right, | |
1044 | since the latter no longer exist. | |
1045 | ||
302c12b4 DH |
1046 | 2001-11-17 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1047 | ||
1048 | * eval.c: Removed bogus comment about acros. | |
1049 | ||
1050 | (scm_unmemocar): Use !SCM_CONSP instead of SCM_IMP. | |
1051 | Minimize scope of local variable. Eliminate dependency on | |
1052 | macro DEBUG_EXTENSIONS. | |
1053 | ||
1054 | (s_splicing): New error message string. | |
1055 | ||
1056 | (scm_m_body): Issue 'bad body' message rather than 'missing | |
1057 | expression' message. | |
1058 | ||
1059 | (scm_m_quote): Eliminate unnecessary copying. | |
1060 | ||
1061 | (scm_m_lambda, scm_m_letstar, scm_m_letrec, scm_m_let): Leave the | |
1062 | checking of the body to scm_m_body. | |
1063 | ||
1064 | (scm_m_do): Move comment to function header. Rename arg1 to | |
1065 | binding. Made the code a bit easier to read. | |
1066 | ||
1067 | (evalcar): Removed. | |
1068 | ||
1069 | (iqq): Added a comment. Changed the depth parameter to | |
1070 | unsigned. Use size_t for vector lengths. Make sure vector object | |
1071 | is gc protected as long as its contents are read. Add some syntax | |
1072 | checks. Get rid of unnecessary SCM_IMP test. Clean up the | |
1073 | control structure a bit. | |
1074 | ||
1075 | (scm_m_delay): Added comment about the implementation of | |
1076 | scm_m_delay. | |
1077 | ||
1078 | (scm_m_define): Add comment about guile's currying define | |
1079 | syntax. Renamed 'proc' to 'name'. Eliminate dependency on macro | |
1080 | DEBUG_EXTENSIONS. Simplified code a bit. Eliminate SICP code. | |
1081 | ||
1082 | (scm_m_letrec1): Removed. Part of the functionality is taken | |
1083 | over by the new function 'transform_bindings'. | |
1084 | ||
1085 | (transform_bindings): New function. Takes over some of the | |
1086 | functionality of removed function 'scm_m_letrec1', namely to split | |
1087 | a list of bindings into a reversed list of variables and a list of | |
1088 | initializers. | |
1089 | ||
1090 | (scm_m_letrec): Call 'transform_bindings'. | |
1091 | ||
1092 | (scm_m_let): Minimized scope of local variables. Renamed 'proc' | |
1093 | to 'temp' and 'arg1' to 'binding'. Eliminated redundant SCM_NIMP | |
1094 | test. Use 'transform_bindings'. Fixed scoping error with named | |
1095 | let (Thanks to Aubrey Jaffer for reporting the bug and to Neil | |
1096 | Jerram for suggesting the fix). Cleaned up the control structure | |
1097 | a bit. | |
1098 | ||
1099 | (scm_m_expand_body): Use 'transform_bindings'. Eliminated | |
1100 | unnecessary consing. Eliminated unnecessary | |
1101 | SCM_DEFER/ALLOW_INTS. | |
1102 | ||
1103 | (SCM_CEVAL): Un-obfuscated some loops. | |
1104 | ||
cecb4a5e NJ |
1105 | 2001-11-16 Neil Jerram <neil@ossau.uklinux.net> |
1106 | ||
8f85c0c6 NJ |
1107 | * gc.h (scm_unhash_name): Old declaration removed. |
1108 | ||
1109 | * eval.c (s_scm_eval): Change @var{primitive-eval} to | |
1110 | @code{primitive-eval}. | |
1111 | ||
1112 | * feature.c, vectors.c, net_db.c, unif.c, weaks.c, struct.c, | |
1113 | version.c, alist.c, ports.c, ramap.c, unif.c, strings.c, list.c: | |
1114 | Change @deffnx lines in docstrings to say {Scheme Procedure} | |
1115 | rather than primitive or procedure. | |
1116 | ||
1117 | * posix.c (scm_execl), filesys.c (scm_close), unif.c | |
1118 | (scm_array_set_x, scm_array_contents, scm_uniform_array_read_x, | |
1119 | scm_bit_set_star_x, scm_bit_invert_x), ramap.c (scm_array_fill_x, | |
1120 | scm_array_for_each, scm_array_index_map_x), vectors.c (scm_vector, | |
1121 | scm_make_vector, scm_vector_to_list, scm_vector_fill_x), strop.c | |
1122 | (scm_string_split, scm_string_ci_to_symbol), strings.c | |
1123 | (scm_string_p), sort.c (scm_merge), print.c (scm_newline), | |
1124 | macros.c (scm_macro_type), alist.c (scm_acons, scm_assq): | |
1125 | Docstring fixes and improvements reflecting edits that have been | |
1126 | made in the reference manual source. | |
1127 | ||
1128 | * objprop.c (scm_object_properties, scm_set_object_properties_x, | |
1129 | scm_object_property, scm_set_object_property_x): Remove invalid | |
1130 | @deffnx lines for corresponding procedure property primitives. | |
1131 | ||
cecb4a5e NJ |
1132 | These changes add a @deffnx C function declaration and function |
1133 | index entries for each Guile primitive to the copy of the doc | |
1134 | snarf output that is used for reference manual synchronization. | |
1135 | Online help is unchanged. | |
849038b5 | 1136 | |
cecb4a5e NJ |
1137 | * snarf.h (SCM_SNARF_DOCS): Output primitive's C function name. |
1138 | (SCM_DEFINE, SCM_DEFINE1, SCM_REGISTER_PROC): Supply to C function | |
1139 | name to SCM_SNARF_DOCS. | |
849038b5 | 1140 | |
cecb4a5e NJ |
1141 | * guile-snarf-docs-texi.in: Pass the shell script's arguments into |
1142 | snarf-check-and-output-texi. | |
1143 | ||
1144 | * Makefile.am (guile-procedures.texi): New rule. | |
1145 | (BUILT_SOURCES, guile.texi, guile-procedures.txt, CLEANFILES): | |
1146 | Changed so that the last stage of doc snarfing is now performed | |
1147 | twice, once to produce guile-procedures.txt for online help, and | |
1148 | once to produce guile.texi for reference manual synchronization. | |
1149 | ||
ddea3325 DH |
1150 | 2001-11-15 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1151 | ||
1152 | * eval.c (RETURN): Wrap in do{}while(0) in order to make it | |
1153 | safely usable as a single statement followed by a ';', for example | |
1154 | in an if statement. | |
1155 | ||
1156 | (SCM_CEVAL, SCM_APPLY): Clean up code using 'RETURN'. | |
1157 | ||
72dd0a03 NJ |
1158 | 2001-11-13 Neil Jerram <neil@ossau.uklinux.net> |
1159 | ||
1160 | * random.c (scm_random_solid_sphere_x, | |
1161 | scm_random_hollow_sphere_x): Correct "shere" typos. | |
1162 | ||
1163 | * hashtab.c (scm_hash_fold): Add missing apostrophe to docstring. | |
1164 | ||
1165 | * version.c (scm_version): Update docstring to include | |
1166 | `micro-version'. | |
1167 | ||
6558eda6 MV |
1168 | 2001-11-13 Marius Vollmer <mvo@zagadka.ping.de> |
1169 | ||
409b8588 MV |
1170 | * modules.c (scm_c_export): Call va_end after collecting the |
1171 | symbols. | |
1172 | ||
adb8c0f2 MV |
1173 | * strop.h, strop.c (scm_substring_move_left_x, |
1174 | scm_substring_move_right_x): Removed. | |
1175 | ||
6558eda6 MV |
1176 | * __scm.h (HAVE_UINTPTR_T, HAVE_PTRDIFF_T, HAVE_LONG_LONG, |
1177 | HAVE_LONG_LONGS): Define to "1" when defining them, to mirror what | |
1178 | configure does. | |
1179 | ||
5d8fc640 MV |
1180 | 2001-11-12 Marius Vollmer <mvo@zagadka.ping.de> |
1181 | ||
1182 | * numbers.c: Document macros to define when including | |
1183 | num2integral.i.c. MAX_VALUE and MIN_VALU are no longer used, we | |
1184 | now rely on SIZEOF_ macros that have been figured out at | |
1185 | configure time. | |
1186 | ||
1187 | * num2integral.i.c: Adapt to new interface. | |
1188 | (NUM2INTEGRAL): Test whether a fixnum can be represented in the | |
1189 | target type by casting it and checking whether it is still the | |
1190 | same. Do not try to handle bignums for integral types that are | |
1191 | smaller than fixnums. When handling bignums, collect the | |
1192 | magnituse first into a unsigned type, and correctly check for | |
1193 | overflow. | |
1194 | (INTEGRAL2BIG): Do not use MIN_VALUE explicitely by observing that | |
1195 | only -MIN_VALUE can still be negative of all negative numbers (in | |
1196 | twos-complement). | |
1197 | ||
849038b5 | 1198 | * tags.h (SIZEOF_SCM_T_BITS): Define it appropriately. |
5d8fc640 MV |
1199 | |
1200 | * __scm.h: Define HAVE_UINTPTR_T, HAVE_PTRDIFF_T and | |
1201 | HAVE_LONG_LONG depending on whether their size is non-zero. | |
1202 | ||
d6b8cf11 TTN |
1203 | 2001-11-11 Thien-Thi Nguyen <ttn@glug.org> |
1204 | ||
1205 | * strop.c (scm_string_null_p): Docfix; nfc. | |
1206 | Thanks to Scott Lenser. | |
1207 | ||
9401323e NJ |
1208 | 2001-11-07 Neil Jerram <neil@ossau.uklinux.net> |
1209 | ||
1210 | * extensions.c (scm_load_extension): Canonicalize docstring | |
1211 | whitespace. | |
1212 | ||
1213 | * unif.c (scm_uniform_array_write), ports.c | |
1214 | (scm_current_output_port, scm_force_output), dynwind.c | |
1215 | (scm_dynamic_wind), scmsigs.c (scm_setitimer, scm_getitimer), | |
1216 | filesys.c (scm_open, scm_lstat), struct.c | |
1217 | (scm_make_struct_layout), random.c (scm_random, | |
1218 | scm_random_solid_sphere_x, scm_random_hollow_sphere_x, strop.c | |
1219 | (scm_i_index): Remove superfluous whitespace from end of docstring | |
1220 | lines. | |
1221 | ||
1222 | * filesys.c (scm_select), guardians.c (scm_guardian_greedy_p), | |
1223 | strings.c (scm_make_string), variable.c (scm_make_variable, | |
1224 | scm_make_undefined_variable, scm_variable_p, scm_variable_set_x, | |
1225 | scm_variable_bound_p), scmsigs.c (scm_setitimer, scm_getitimer), | |
1226 | posix.c (scm_crypt), struct.c (scm_make_vtable_vtable), hashtab.c | |
1227 | (scm_hash_fold), ports.c (scm_port_for_each): Remove superfluous | |
1228 | newline at end of docstrings. | |
1229 | ||
1230 | * modules.c (scm_set_current_module): Add missing newline to | |
1231 | docstring. | |
1232 | ||
b4e15479 SJ |
1233 | 2001-11-07 Stefan Jahn <stefan@lkcc.org> |
1234 | ||
1235 | * win32-socket.[ch]: New files. Defines Winsock-API error codes | |
1236 | and makes them available through Guile. That is because the | |
1237 | Winsock-API does not store its errors in `errno' and thus cannot | |
1238 | return error messages via `strerror (errno)'. | |
1239 | ||
1240 | * socket.c (scm_init_socket): Initialize `win32-socket' part | |
1241 | here under M$-Windows. | |
1242 | ||
d6b8cf11 | 1243 | * numbers.h: Added missing declaration of |
b4e15479 SJ |
1244 | `scm_sys_check_number_conversions()'. |
1245 | ||
1246 | * error.c: Local definition of SCM_I_STRERROR and SCM_I_ERRNO | |
1247 | and use in `(strerror)' and `(system-error)'. | |
1248 | ||
d6b8cf11 | 1249 | * Makefile.am (EXTRA_libguile_la_SOURCES): Added |
b4e15479 SJ |
1250 | `win32-socket.[ch]' to extra source and header files. |
1251 | ||
7ab89df1 MV |
1252 | 2001-11-06 Marius Vollmer <mvo@zagadka.ping.de> |
1253 | ||
1254 | * script.c (scm_shell_usage, scm_compile_shell_switches): Prepend | |
1255 | a call to turn-on-debugging when --debug has been given instead of | |
1256 | turning it on directly. Also, handle new `--no-debug' option, | |
1257 | which might suppress the call to turn-on-debugging. | |
1258 | ||
0233bfc1 SJ |
1259 | 2001-11-05 Stefan Jahn <stefan@lkcc.org> |
1260 | ||
1261 | * struct.c (s_scm_struct_vtable_p): Corrected docstring. | |
1262 | ||
8f99e3f3 SJ |
1263 | 2001-11-04 Stefan Jahn <stefan@lkcc.org> |
1264 | ||
1265 | * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL) | |
d6b8cf11 | 1266 | here (was at guile_LDADD) which describes the dependency |
8f99e3f3 SJ |
1267 | correctly and allows a clean build on Win32. |
1268 | ||
d6b8cf11 | 1269 | * __scm.h (SCM_API): Follow-up patch. Renamed __FOO__ macros |
8f99e3f3 SJ |
1270 | into FOO. |
1271 | ||
1272 | * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL | |
1273 | import macros for external libraries (libcrypt, libqthreads, | |
1274 | libreadline and libregex). | |
1275 | ||
1276 | * coop-defs.h: Include <winsock2.h> for `struct timeval'. | |
1277 | ||
1278 | * posix.c (flock): Added support for flock() in M$-Windows. | |
1279 | ||
1280 | * guile.c (SCM_IMPORT): Follow-up patch. Use SCM_IMPORT instead | |
1281 | of __SCM_IMPORT__. | |
1282 | ||
1283 | * fports.c (getflags): Differentiate reading and writing pipes | |
1284 | descriptors. | |
1285 | ||
1286 | * filesys.c (S_IS*): Redefine all of the S_IS*() macros for | |
1287 | M$-Windows. | |
1288 | ||
1289 | * coop.c (coop_condition_variable_timed_wait_mutex): Use | |
1290 | conditionalized error code if `ETIMEDOUT' is not available. | |
1291 | (scm_thread_usleep): Remove bogus declaration of `struct timeval | |
1292 | timeout'. | |
1293 | ||
1294 | * numbers.c (PTRDIFF_MIN): Moved this definition where it actually | |
1295 | belongs. That is because NO_PREPRO_MAGIC gets undefined after | |
1296 | each inclusion of `num2integral.i.c'. | |
1297 | (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined. | |
1298 | ||
4e21fa60 MV |
1299 | 2001-11-03 Marius Vollmer <mvo@zagadka.ping.de> |
1300 | ||
1301 | * eval.c (scm_m_begin): Allow `(begin)`, with no subforms. | |
1302 | (SCM_CEVAL): Evaluate an empty `begin' to SCM_UNSPECIFIED. | |
1303 | ||
08112c95 MD |
1304 | 2001-11-02 Mikael Djurfeldt <mdj@linnaeus> |
1305 | ||
7663c008 MD |
1306 | * print.c (scm_iprin1): Mark print state as revealed when |
1307 | dispatching to generic write or display. | |
1308 | ||
08112c95 MD |
1309 | * unif.c (scm_ra2contig): Fixed memory overwrite bug. |
1310 | ||
f712d833 MV |
1311 | 2001-11-02 Marius Vollmer <mvo@zagadka.ping.de> |
1312 | ||
1313 | Support for native Win32. Thanks to Stefan Jahn! | |
d6b8cf11 | 1314 | |
f712d833 MV |
1315 | * Makefile.am: Add win32-uname.c, win32-uname.h, win32-dirent.c |
1316 | and win32-dirent.h to extra source and header files. These | |
1317 | include the uname() and the POSIX dirent interface implementation | |
1318 | for M$-Windows. Put `-no-undefined' into LDFLAGS to support | |
1319 | linkers which do not allow unresolved symbols inside shared | |
1320 | libraries. Corrected `guile_filter_doc_snarfage$(EXEEXT)' | |
1321 | dependency. | |
1322 | ||
d6b8cf11 TTN |
1323 | * __scm.h: Defined SCM_API. This macro gets prepended to all |
1324 | function and data definitions which should be exported or imported | |
f712d833 MV |
1325 | in the resulting dynamic link library in the Win32 port. |
1326 | ||
1327 | * __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h, | |
d6b8cf11 | 1328 | chars.h, continuations.h, coop-defs.h, coop-threads.h, |
f712d833 MV |
1329 | debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h, |
1330 | environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h, | |
1331 | feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h, | |
1332 | gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h, | |
1333 | hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h, | |
d6b8cf11 | 1334 | load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h, |
f712d833 MV |
1335 | objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h, |
1336 | procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h, | |
1337 | read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h, | |
1338 | smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h, | |
1339 | strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h, | |
1340 | tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h, | |
1341 | vports.h, weaks.h: | |
1342 | Prefixed each each exported symbol with SCM_API. | |
1343 | ||
d6b8cf11 | 1344 | * continuations.c: Added comment about the use of the extern |
f712d833 MV |
1345 | declarations of {get,set}context() functions used in the ia64 port. |
1346 | ||
1347 | * continuations.h, gc.c: `__libc_ia64_register_backing_store_base' | |
1348 | is meant to be a `unsigned long *'. | |
1349 | ||
1350 | * filesys.c: Include `direct.h' if possible. Use local | |
1351 | `win32-dirent.h' for the native M$-Windows port. Define S_IS*() | |
1352 | macros for M$-Windows. Implementation of `fstat_Win32()' which is | |
1353 | able to differentiate between sockets and other file descriptors. | |
1354 | Use this function as wrapper in `scm_fstat()'. Fixed typo in | |
1355 | `scm_dirname()'. | |
1356 | ||
1357 | * fports.c: Include `io.h' is possible. Put `*fp' into referring | |
1358 | statement block in `scm_fport_buffer_add()'. | |
1359 | Some corrections in `getflags()'. | |
d6b8cf11 | 1360 | |
f712d833 MV |
1361 | * gdb_interface.h (GDB_INTERFACE): Also support __CYGWIN__. |
1362 | ||
1363 | * guile.c: Make sure to define __SCM_IMPORT__ for shared library | |
1364 | build on Win32. Disable preloaded symbols on Win2 platforms. | |
1365 | ||
1366 | * ioext.c, ports.c: Include `io.h' is possible. | |
1367 | ||
1368 | * mkstemp.c: Include `process.h' is possible. | |
1369 | ||
1370 | * net_db.c: Disable extern declaration of `h_errno' for __CYGWIN__, | |
1371 | too. | |
1372 | Put `scm_return_entry()' into HAVE_GETSERVENT conditional. | |
1373 | ||
1374 | * posix.c: Remove unnecessary dirent includes and defines. Include | |
1375 | local `win32-uname.h' for MinGW. Extern declaration of | |
1376 | `mkstemp()' for systems where it does not exists. Make | |
1377 | `getlogin()' available on M$-Windows. | |
1378 | ||
1379 | * scmsigs.c: Made `usleep()' avalable on MinGW. | |
1380 | ||
1381 | * stime.c: On M$-Windows `tzname[]' is known to be `_tzname[]'. | |
1382 | ||
1383 | * win32-dirent.c: Include "win32-dirent.h", not "dirent.h". | |
1384 | ||
1385 | * win32-uname.c: Include "win32-uname.h", not "uname.h". | |
1386 | ||
d245ce23 MD |
1387 | 2001-10-28 Mikael Djurfeldt <mdj@linnaeus> |
1388 | ||
1389 | * unif.c (scm_uniform_array_read_x, scm_uniform_array_write): | |
1390 | Don't apply scm_uniform_vector_length on arrays. | |
1391 | ||
8ea46249 DH |
1392 | 2001-10-14 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1393 | ||
1394 | * eval.c (scm_lookupcar, scm_m_letstar, scm_m_do, iqq, | |
1395 | scm_m_define, scm_m_letrec1, scm_m_let, scm_m_expand_body, | |
1396 | scm_macroexp, unmemocopy, scm_eval_args, scm_deval_args, | |
1397 | SCM_CEVAL, scm_map, scm_init_eval): When building lists, prefer | |
1398 | scm_list_<n> over scm_cons[2]?. | |
1399 | ||
1400 | (scm_unmemocar, scm_m_cond, scm_m_letstar, scm_m_letrec1, | |
1401 | scm_m_let, scm_m_atbind, unmemocopy, SCM_CEVAL, SCM_APPLY): Use | |
1402 | SCM_C[AD][AD]R instead of explicit form. | |
1403 | ||
1404 | (scm_m_set_x, scm_m_cond, scm_m_letstar, scm_m_do): Reordered | |
1405 | comparison parameters. | |
1406 | ||
1407 | (scm_m_case, scm_m_cond, scm_m_letstar, scm_m_do, SCM_CEVAL): Use | |
1408 | !SCM_NULLP instead of SCM_NIMP. | |
1409 | ||
1410 | (scm_m_case): Don't copy the form. Renamed proc to clause and | |
1411 | minimized its scope. Renamed x to clauses. Removed side | |
1412 | effecting operation from macro call. | |
1413 | ||
1414 | (scm_m_cond): Don't copy the form. Renamed arg1 to clause and | |
1415 | minimized its scope. Renamed x to clauses. Minimized the scope | |
1416 | of variable 'len'. Make sure the else clause is treated specially | |
1417 | even in case of '=>' occurences. Don't change the else to #t in | |
1418 | order to be able to distinguish this case in the evaluator. Leave | |
1419 | type checking of the recipient to the evaluator. | |
1420 | ||
1421 | (scm_c_improper_memq): Made the comment somewhat clearer. | |
1422 | ||
1423 | (scm_m_lambda): Renamed proc to formals. Removed unnecessary | |
1424 | test for SCM_IM_LET at the place of the formal parameters. | |
1425 | Simplified the formal parameter checking. | |
1426 | ||
1427 | (scm_m_letstar): Added Comment. Renamed proc to bindings. | |
1428 | Renamed arg1 to binding and minimized its scope. Eliminated | |
1429 | unnecessary consing. | |
1430 | ||
1431 | (scm_m_do): Renamed proc to bindings. Minimized the scope of | |
1432 | variable 'len'. | |
1433 | ||
1434 | (build_binding_list): New static function. | |
1435 | ||
1436 | (unmemocopy): Don't use SCM_TYP7 on pairs (it's unclean). | |
1437 | Further, split up the 'letrec' unmemoizing code to the | |
1438 | corresponding parts for 'do', 'let' and 'letrec', adding comments | |
1439 | to each form. Cleanup the handling of the do form (This removes | |
1440 | some *real* code :-). | |
1441 | ||
1442 | (SCM_CEVAL): Removed side effecting operation from macro call. | |
1443 | Handle the 'else clause of the 'cond form specially - the symbol | |
1444 | 'else is not replaced with #t any more. | |
1445 | ||
8186c4f5 GH |
1446 | 2001-10-14 Gary Houston <ghouston@arglist.com> |
1447 | ||
1448 | * version.c (scm_version): use sprintf instead of snprintf, | |
1449 | for portability. thanks to Bill Schottstaedt. | |
1450 | ||
89759084 MD |
1451 | 2001-10-14 Mikael Djurfeldt <mdj@linnaeus> |
1452 | ||
1453 | * read.c (scm_lreadr): When user-defined hash procedure returns | |
1454 | SCM_UNSPECIFIED: Fall back to standard handling instead of raising | |
1455 | an exception. (This prevents parsing of uniform vectors from | |
1456 | interfering with parsing of numbers.) | |
1457 | ||
9c7ce563 MV |
1458 | 2001-10-13 Marius Vollmer <mvo@zagadka.ping.de> |
1459 | ||
1460 | * numbers.c: Set NO_PREPRO_MAGIC when defining our version of | |
1461 | PTRDIFF_MIN. Thanks to Ken Raeburn. | |
1462 | ||
1463 | 2001-10-07 Marius Vollmer <mvo@zagadka.ping.de> | |
1464 | ||
1465 | * Makefile.am (EXTRA_libguile_la_SOURCES): Added "mkstemp.c". | |
1466 | ||
1467 | * eval.c (scm_m_atbind): First try to find the variable without | |
1468 | defining it locally; when it has not been found, define it | |
1469 | locally. | |
1470 | ||
1471 | * modules.c (module_variable): Pass over variables that exist but | |
1472 | are unbound. | |
1473 | ||
1474 | 2001-10-06 Marius Vollmer <mvo@zagadka.ping.de> | |
1475 | ||
1476 | * backtrace.c (display_backtrace_file_and_line): Only use | |
1477 | scm_basename when POSIX support is compiled in. Thanks to Chris | |
1478 | Cramer. | |
1479 | ||
1fe5e088 DH |
1480 | 2001-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1481 | ||
1482 | * numbers.c (mem2uinteger): Return number read so far when coming | |
1483 | across a hexdigit after having read a # or if not reading a hex | |
1484 | value. This will enable the calling code to correctly handle | |
1485 | forms like 1e2. (The background is, that the exponent markers d, | |
1486 | e and f are also hexdigits.) Thanks to Mikael Djurfeldt for | |
1487 | providing this patch. | |
1488 | ||
1489 | (mem2complex): Fix erroneous double-negation. Now, numbers like | |
1490 | 1-i will be read correctly. | |
1491 | ||
68665a97 MD |
1492 | 2001-10-12 Mikael Djurfeldt <mdj@linnaeus> |
1493 | ||
1494 | * debug.c (scm_mem_to_proc): Fixed typo in previous change. | |
1495 | ||
1496 | * validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro. | |
1497 | ||
d5cf5324 DH |
1498 | 2001-10-12 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1499 | ||
1500 | * print.c (scm_print_state_vtable, print_state_pool): | |
1501 | Initialize. These variables are now registered as gc roots. | |
1502 | ||
1503 | (scm_current_pstate): Update documentation. | |
1504 | ||
1505 | (scm_current_pstate, scm_make_print_state, scm_free_print_state, | |
1506 | scm_prin1, scm_init_print): print_state_pool is registered as a | |
1507 | gc root and thus does not need to be protected by a surrounding | |
1508 | pair any more. | |
1509 | ||
1510 | (make_print_state): The car of print_state_pool no longer holds | |
1511 | the scm_print_state_vtable. | |
1512 | ||
1513 | (scm_current_pstate, scm_make_print_state, print_circref, | |
1514 | scm_iprin1, scm_prin1, scm_iprlist): Prefer !SCM_<foo> over | |
1515 | SCM_N<foo>. | |
1516 | ||
1517 | (scm_prin1): When building lists, prefer scm_list_<n> over | |
1518 | scm_cons[2]?. | |
1519 | ||
1520 | (scm_iprlist): Removed a redundant SCM_IMP test. | |
1521 | ||
1522 | (scm_simple_format): Use SCM_EQ_P to compare SCM values. | |
1523 | ||
37c56aec DH |
1524 | 2001-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1525 | ||
1526 | * debug.c (scm_make_iloc): Prefer !SCM_<foo> over SCM_N<foo>. | |
1527 | ||
1528 | (scm_memcons, scm_mem_to_proc): When building lists, prefer | |
1529 | scm_list_<n> over scm_cons[2]?. | |
1530 | ||
1531 | (scm_mem_to_proc): Prefer SCM_CONSP over SCM_NIMP. | |
1532 | ||
1533 | (scm_procedure_name): Use SCM_CADR instead of explicit form. | |
1534 | ||
1535 | (debugobj_print): Coerce scm_intprint arg 1 to long, not int. | |
1536 | Thanks to Rob Browning for the patch (see log entry 2001-09-21) - | |
1537 | for some reason his patch didn't make it into the cvs. | |
1538 | ||
79d34f68 DH |
1539 | 2001-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1540 | ||
1541 | * numbers.c (mem2decimal_from_point): Cleaned up the parsing a | |
1542 | little bit - should even be somewhat more accurate now. | |
1543 | ||
5e137c65 RB |
1544 | 2001-10-08 Rob Browning <rlb@defaultvalue.org> |
1545 | ||
1546 | * gc.c: support ia64 register backing store. | |
1547 | (SCM_MARK_BACKING_STORE): new macro. | |
1548 | ||
1549 | * continuations.h: support ia64 register backing store. | |
1550 | (struct scm_t_contregs): add ia64 register backing store. | |
1551 | ||
1552 | * continuations.c: support ia64 register backing store. | |
1553 | (continuation_mark): mark ia64 register backing store. | |
1554 | (continuation_free): free ia64 register backing store. | |
1555 | (scm_make_continuation): capture ia64 register backing store. | |
1556 | (copy_stack_and_call): copy ia64 register backing store. | |
1557 | ||
ee083ac2 DH |
1558 | 2001-10-08 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1559 | ||
1560 | * hashtab.c (scm_hash_fn_create_handle_x): The result of assoc_fn | |
1561 | is known to be #f if no entry is found. Thus, use !SCM_FALSEP | |
1562 | instead of SCM_NIMP to test for that case. | |
1563 | ||
1564 | * strings.h (SCM_SET_STRING_LENGTH): Cast the length to | |
1565 | scm_t_bits instead of long. | |
1566 | ||
71dcdbf9 MV |
1567 | 2001-10-06 Marius Vollmer <mvo@zagadka.ping.de> |
1568 | ||
1569 | * tags.h (SCM_T_BITS_MAX, SCM_T_SIGNED_BITS_MAX, | |
1570 | SCM_T_SIGNED_BITS_MIN): New. | |
1571 | * numbers.h (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM): | |
1572 | Use them to make these macros computable by the preprocessor. | |
1573 | ||
1574 | * num2integral.i.c (INTEGRAL2NUM): Let the preprocessor test | |
1575 | whether the integral type fits in a fixnum, not the compiler. | |
1576 | This removes a spurious compiler warning. Also, honor the | |
1577 | NO_PREPRO_MAGIC flag to suppress any preprocessor tests. This is | |
1578 | needed for `long long's. | |
1579 | ||
1580 | * numbers.c: Define NO_PREPRO_MAGOC when including | |
1581 | num2integral.c.i for `long long' and `signed long long'. | |
1582 | ||
152812c0 MD |
1583 | 2001-10-06 Mikael Djurfeldt <mdj@linnaeus> |
1584 | ||
1585 | These changes fixes a race condition in the Guile coop - pthread | |
1586 | compatibility code. | |
d6b8cf11 | 1587 | |
152812c0 MD |
1588 | * coop.c (mother_awake_p): New variable. |
1589 | (coop_create): Set mother_awake_p before creating or signalling | |
1590 | mother; wait until mother is going to sleep before returning. | |
1591 | (mother): Reset mother_awake_p before going to sleep. | |
1592 | ||
11d49f54 DH |
1593 | 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1594 | ||
1595 | * options.c (protected_objects, scm_init_options): The content of | |
1596 | protected_objects is now protected from garbage collection using | |
1597 | scm_gc_register_root instead of scm_permanent_object. | |
1598 | ||
1599 | (get_option_setting): New static function that computes an option | |
1600 | setting as it was formerly done in the function scm_options. | |
1601 | ||
1602 | (get_documented_option_setting): New static function that | |
1603 | returns option documentation as it was formerly done in the | |
1604 | function scm_options. Note that documentation C strings are no | |
1605 | longer precomputed into SCM objects. Instead, they are converted | |
1606 | into SCM strings every time get_documented_option_setting is | |
1607 | called. | |
1608 | ||
1609 | (change_option_setting): New static functions that modifies the | |
1610 | option setting as it was formerly done in the function | |
1611 | scm_options. The function is now exception safe, i. e. won't | |
1612 | cause a memory leak when interrupted. Further, only non-immediate | |
1613 | option values are added to the protection list. | |
1614 | ||
1615 | (scm_options): This function now has only the purpose to dispatch | |
1616 | to to get_option_setting, get_documented_option_setting or | |
1617 | change_option_setting, depending on the arguments given to | |
1618 | scm_options. | |
1619 | ||
1620 | (scm_init_opts): Don't convert documentation C strings into SCM | |
1621 | strings. Further, don't protect any object values: They _must_ | |
1622 | be immediate values, otherwise there is no guarantee that they | |
1623 | have not been collected before anyway. | |
1624 | ||
1625 | * options.[ch] (scm_t_option): Made type unsigned, name into a | |
1626 | constant char* and val into a scm_t_bits type. | |
1627 | ||
1628 | (scm_options, scm_init_opts): The number of options is guaranteed | |
1629 | to be larger or equal to zero. Thus, the type is changed to | |
1630 | unsigned. | |
1631 | ||
3dbacabc DH |
1632 | 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1633 | ||
1634 | * num2integral.i.c (NUM2INTEGRAL): Eliminated some warnings about | |
1635 | testing an unsigned value for being >= 0. | |
1636 | ||
14282d0f DH |
1637 | 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1638 | ||
1639 | * numbers.h: Removed old comment about using SCM_CAR to access | |
1640 | non-pair cells. | |
1641 | ||
1642 | (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM): Make sure | |
1643 | the return value is signed. Thanks to Brian Crowder for the bug | |
1644 | report. | |
1645 | ||
1646 | (SCM_SRS): Avoid unnecessary casting and don't unpack input | |
1647 | values. With this patch, SCM_SRS can be safely used for other | |
1648 | types than scm_t_signed_bits. However, it should still better be | |
1649 | an internal macro and thus be renamed to SCM_I_SRS. | |
1650 | ||
1651 | (SCM_MAKINUM, SCM_INUM): Use proper casting. | |
1652 | ||
2dbec7b5 GH |
1653 | 2001-10-03 Gary Houston <ghouston@arglist.com> |
1654 | ||
1655 | * continuations.h, unif.h: in the descriptions of the bit patterns | |
1656 | of the heap cells, make bit 0 the least significant. | |
1657 | ||
cf4ee841 TTN |
1658 | 2001-09-25 Thien-Thi Nguyen <ttn@glug.org> |
1659 | ||
1660 | * chars.h (SCM_MAKE_CHAR): Use `scm_t_bits' instead of `intptr_t'. | |
1661 | Thanks to Golubev I. N. | |
1662 | ||
4a151b3d GH |
1663 | 2001-09-25 Gary Houston <ghouston@arglist.com> |
1664 | ||
1665 | * ports.c (scm_drain_input): extended the docstring. thanks to | |
1666 | Alex Schroeder and Thien-Thi Nguyen. | |
1667 | ||
581ded70 MD |
1668 | 2001-09-23 Mikael Djurfeldt <mdj@linnaeus> |
1669 | ||
1670 | * validate.h (SCM_NUM2FLOAT, SCM_NUM2DOUBLE, | |
1671 | SCM_VALIDATE_FLOAT_COPY, SCM_VALIDATE_DOUBLE_COPY): New | |
1672 | macros. (The NUM names might soon change.) | |
1673 | ||
1674 | * numbers.h: Added missing declarations. | |
1675 | ||
5437598b MD |
1676 | 2001-09-22 Mikael Djurfeldt <mdj@linnaeus> |
1677 | ||
1678 | * Makefile.am: Distribute num2float.i.c. | |
1679 | ||
1680 | * num2float.i.c: New file, multiply included by numbers.c, used | |
1681 | to "templatize" the float <-> num conversion routines. | |
1682 | ||
1683 | * numbers.c: New functions: scm_num2float, scm_float2num, | |
1684 | scm_num2double, scm_double2num. | |
1685 | ||
0b073f0f RB |
1686 | 2001-09-21 Rob Browning <rlb@defaultvalue.org> |
1687 | ||
1688 | * .cvsignore: really add version.h | |
1689 | ||
1690 | * strings.h (SCM_SET_STRING_LENGTH): coerce "l" to a long. | |
1691 | Otherwise it fails on the alpha. However, we might rather choose | |
1692 | this size conditionally. | |
1693 | ||
1694 | * numbers.c (scm_gcd): change "k" to a long from an int. | |
1695 | Otherwise it fails on the alpha. However, we might rather choose | |
1696 | this size conditionally. | |
1697 | ||
1698 | * error.c (scm_wta): coerce char* to intptr_t before int | |
1699 | assignment. | |
1700 | ||
1701 | * debug.c (debugobj_print): coerce scm_intprint arg 1 to long, not | |
1702 | int. | |
1703 | ||
1704 | * chars.h (SCM_MAKE_CHAR): coerce value to intptr_t. | |
1705 | ||
2830fd91 MD |
1706 | 2001-09-20 Mikael Djurfeldt <mdj@linnaeus> |
1707 | ||
1708 | * numbers.c (scm_integer_expt): Accept inexact integer in second | |
1709 | argument. (Thanks to Bill Schottstaedt.) | |
1710 | ||
c13f0a90 RB |
1711 | 2001-09-20 Rob Browning <rlb@defaultvalue.org> |
1712 | ||
1713 | * .cvsignore: add version.h | |
1714 | ||
1715 | * versiondat.h.in: removed (obsolete). | |
1716 | ||
1717 | * version.h.in: renamed from version.h. | |
1718 | (SCM_GUILE_MAJOR_VERSION): new public macro. | |
1719 | (SCM_GUILE_MINOR_VERSION): new public macro. | |
1720 | (SCM_GUILE_MICRO_VERSION): new public macro. | |
1721 | ||
1722 | * version.h: renamed to version.h.in. | |
1723 | ||
1724 | * version.c | |
1725 | (scm_major_version): support integer *_VERSION macros. | |
1726 | (scm_minor_version): support integer *_VERSION macros. | |
1727 | (scm_micro_version): support integer *_VERSION macros. | |
1728 | (scm_version): support integer *_VERSION macros. | |
1729 | ||
147c18a0 MD |
1730 | 2001-09-20 Mikael Djurfeldt <mdj@linnaeus> |
1731 | ||
1732 | * error.c, error.h: Made error keys globally accessible. | |
1733 | Applications might want to test for these or use them in a direct | |
1734 | call to scm_error. | |
1735 | ||
1736 | * num2integral.i.c (NUM2INTEGRAL): Report an error when these | |
1737 | routines are passed an inexact. This change in behavior is | |
1738 | motivated by concordance with R5RS: It is more common that a | |
1739 | primitive doesn't want to accept an inexact for an exact. | |
1740 | ||
662c5539 DH |
1741 | 2001-09-17 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1742 | ||
1743 | The following patch partially undoes my patch from 2001-06-30, | |
1744 | where I added the function scm_gc_mark_cell_conservatively. The | |
1745 | function is buggy, since it breaks guile during conservative | |
1746 | marking if a pointer on the stack points directly into the list of | |
1747 | free cells on the heap: With conservative cell marking this will | |
1748 | cause the whole free list to be scanned and marked - boom! | |
1749 | ||
1750 | * gc.c (allocated_mark, MARK, heap_segment, | |
1751 | scm_gc_mark_cell_conservatively, scm_init_storage), gc.h | |
cf4ee841 | 1752 | (scm_gc_mark_cell_conservatively): Remove function |
662c5539 DH |
1753 | scm_gc_mark_cell_conservatively and update the corresponding |
1754 | comments and uses accordingly. Thanks to Christopher Cramer for | |
1755 | the patch. (Minor corrections by me.) | |
1756 | ||
6c1b7628 GH |
1757 | 2001-09-15 Gary Houston <ghouston@arglist.com> |
1758 | ||
1759 | * root.h (scm_root_state): removed the continuation_stack and | |
1760 | continuation_stack_ptr members, which have no apparent purpose. | |
1761 | (scm_continuation_stack, scm_continuation_stack_ptr): #defines | |
1762 | removed. | |
662c5539 | 1763 | |
6c1b7628 GH |
1764 | * root.c (root_mark), init.c (restart_stack, start_stack), gc |
1765 | (scm_igc): remove all references to contination_stack and | |
1766 | continuation_stack_ptr, avoiding allocation of a vector and | |
1767 | useless processing during gc. | |
1768 | ||
455c0ac8 DH |
1769 | 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1770 | ||
1771 | * guardians.c (tconc_t, t_tconc): Renamed tconc_t to t_tconc. | |
1772 | ||
1773 | (TCONC_IN): Make sure that the cell word 0 is initialized last. | |
1774 | ||
1775 | (guardians_t, t_guardians): Renamed guardians_t to t_guardians. | |
1776 | ||
1777 | (GUARDIAN, GUARDIAN_DATA): Renamed GUARDIAN to GUARDIAN_DATA. | |
1778 | ||
1779 | (guardian_apply, scm_get_one_zombie, scm_make_guardian, | |
1780 | mark_and_zombify): Prefer !SCM_<foo> over SCM_N<foo>. | |
1781 | ||
22ba637b DH |
1782 | 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1783 | ||
1784 | * guardians.c (mark_dependencies_in_tconc, | |
1785 | whine_about_self_centered_zombies, scm_init_guardians): Register | |
1786 | the static global variable `self_centered_zombies' via | |
1787 | scm_gc_register_root, to make some cdr-ing unnecessary. | |
1788 | ||
c3c4d801 DH |
1789 | 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1790 | ||
1791 | * backtrace.c (display_backtrace_file, | |
1792 | display_backtrace_file_and_line): Use SCM_EQ_P when comparing SCM | |
1793 | values, use SCM_FALSEP when comparing SCM values against #f. | |
1794 | Thanks to Rob Browning for the bug report. | |
1795 | ||
b00418df DH |
1796 | 2001-09-12 Martin Baulig <martin@home-of-linux.org> |
1797 | ||
1798 | * strings.[ch] (scm_str2string): New function. | |
1799 | ||
a0d34a0b MV |
1800 | 2001-09-06 Marius Vollmer <mvo@zagadka.ping.de> |
1801 | ||
1802 | * gc.c (scm_done_free): Always subtract size from scm_mallocated | |
1803 | when computing nm, even if it's negative. | |
1804 | (scm_must_malloc): Abort on overflow of scm_mtrigger. | |
1805 | (scm_must_realloc): Likewise. | |
1806 | ||
b10586f0 ML |
1807 | 2001-09-01 Michael Livshin <mlivshin@bigfoot.com> |
1808 | ||
1809 | * numbers.c (scm_sys_check_number_conversions): new function, | |
1810 | defined if Guile is compiled in debugging mode. currently checks | |
1811 | `scm_num2ulong', should check much much more. | |
1812 | ||
1813 | * num2integral.i.c (NUM2INTEGRAL): when converting a bignum to | |
1814 | unsigned, ensure that it's positive. thanks to Martin Baulig! | |
cf4ee841 | 1815 | |
8c494e99 DH |
1816 | 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1817 | ||
1818 | * __scm.h: Added new section about compile time selectable | |
1819 | features. | |
1820 | ||
1821 | (long_long, ulong_long, scm_sizet, SCM_WNA, SCM_OUTOFRANGE, | |
1822 | SCM_NALLOC, SCM_HUP_SIGNAL, SCM_INT_SIGNAL, SCM_FPE_SIGNAL, | |
1823 | SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL, SCM_ALRM_SIGNAL, SCM_GC_SIGNAL, | |
1824 | SCM_TICK_SIGNAL, SCM_SIG_ORD, SCM_ORD_SIG, SCM_NUM_SIGS): | |
1825 | Removed. | |
1826 | ||
1827 | * deprecation.c (scm_include_deprecated_features): Simplified. | |
1828 | ||
1829 | * eval.c (EVALCAR, unmemocopy), eval.h (SCM_XEVALCAR): Use | |
1830 |