Commit | Line | Data |
---|---|---|
38ace99e DH |
1 | 2002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de> |
2 | ||
3 | * eval.c (SCM_CEVAL): Cleaned up the handling of 'if', 'let', | |
4 | 'letrec' and 'set*': Removed some uses of t.arg1, t.lloc and proc | |
5 | as temporary variables. Removed side-effecting operations from | |
6 | conditions and macro calls. Introduced temporary variables with | |
7 | hopefully descriptive names for clarification. Replaced SCM_N?IMP | |
8 | by a more explicit predicate in some places. Removed code that | |
9 | was conditionally compiled if SICP was defined - which it never | |
10 | is. | |
11 | ||
e5cb71a0 DH |
12 | 2002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de> |
13 | ||
14 | * eval.c (SCM_CEVAL): Cleaned up the handling of 'cons' and 'do': | |
15 | Removed some uses of t.arg1 and proc as temporary variables. | |
16 | Removed side-effecting operations from conditions and macro calls. | |
17 | Introduced temporary variables with hopefully descriptive names | |
18 | for clarification. Replaced SCM_N?IMP by a more explicit | |
19 | predicate in some places. | |
20 | ||
6a0f6ff3 DH |
21 | 2002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de> |
22 | ||
23 | * eval.c (scm_badargsp, SCM_CEVAL): Replaced SCM_N?IMP by a more | |
24 | explicit predicate in some places. | |
25 | ||
26 | (CHECK_EQVISH): Removed. | |
27 | ||
28 | (SCM_CEVAL): Removed some uses of t.arg1 and proc as temporary | |
29 | variables. Removed side-effecting operations from conditions and | |
30 | macro calls. Introduced temporary variables for clarification. | |
31 | Sorted if-else-if check for the type of the last form in a list by | |
32 | frequency. Avoided some unnecessary tail-recursion calls. | |
33 | ||
228a24ef DH |
34 | 2002-03-01 Dirk Herrmann <D.Herrmann@tu-bs.de> |
35 | ||
36 | * gc.c (SCM_HEAP_SEG_SIZE, CELL_UP, CELL_DN, NEXT_DATA_CELL, | |
37 | init_heap_seg, alloc_some_heap), gc.h (struct scm_cell, struct | |
38 | scm_t_cell, SCM_CELLPTR, SCM_GC_CARD_SIZE, | |
39 | SCM_GC_IN_CARD_HEADERP), tags.h (SCM_CELLP): Renamed the struct | |
40 | scm_cell and all its uses to scm_t_cell in accordance to Guile's | |
41 | naming scheme for types. | |
42 | ||
43 | * alist.c (scm_acons), convert.i.c (CTYPES2UVECT, | |
44 | CTYPES2UVECT_OPTIONAL), coop-threads.c (scm_call_with_new_thread, | |
45 | scm_spawn_thread), debug.c (scm_make_debugobj), environments.c | |
46 | (scm_make_environment), eval.c (scm_closure), fports.c | |
47 | (scm_fdes_to_port), gc.c (scm_deprecated_newcell, | |
48 | scm_deprecated_newcell2), inline.h (scm_alloc_cell, scm_cell), | |
49 | list.c (SCM_I_CONS), numbers.c (scm_i_mkbig), pairs.c (scm_cons), | |
50 | ports.c (scm_void_port), procs.c (scm_c_make_subr, scm_makcclo), | |
51 | smob.c (scm_make_smob), smob.h (SCM_NEWSMOB), strings.c | |
52 | (scm_take_str, scm_allocate_string), strports.c (scm_mkstrport), | |
53 | unif.c (scm_make_uve), variable.c (make_variable), vectors.c | |
54 | (scm_c_make_vector), vports.c (scm_make_soft_port): Renamed | |
55 | scm_alloc_cell to scm_cell. | |
56 | ||
57 | * environments.c (core_environments_observe), gc.c | |
58 | (scm_deprecated_newcell2), goops.c (wrap_init, scm_wrap_object), | |
59 | inline.h (scm_alloc_double_cell, scm_double_cell), num2float.i.c | |
60 | (FLOAT2NUM), numbers.c (scm_make_real), procs.c | |
61 | (scm_make_procedure_with_setter), smob.h (SCM_NEWSMOB2, | |
62 | SCM_NEWSMOB3), struct.c (scm_make_struct, scm_make_vtable_vtable), | |
63 | symbols.c (scm_mem2symbol, scm_mem2uninterned_symbol), weaks.c | |
64 | (allocate_weak_vector): Renamed scm_alloc_double_cell to | |
65 | scm_double_cell. | |
66 | ||
edb810bb SJ |
67 | 2002-02-27 Stefan Jahn <stefan@lkcc.org> |
68 | ||
69 | * convert.i.c, convert.c: Better range checking. | |
70 | ||
71 | * inet_aton.c, fports.c: Commented the inclusion of <winsock2.h>. | |
72 | ||
73 | * deprecation.c (vsnprintf): Define to `_vsnprintf' for | |
74 | Windows (MinGW). | |
75 | ||
327d4dd3 TTN |
76 | 2002-02-26 Thien-Thi Nguyen <ttn@giblet.glug.org> |
77 | ||
78 | * Makefile.am: Update path to pre-inst-guile automake frag. | |
79 | ||
89d7a92c | 80 | 2002-02-25 Dirk Herrmann <D.Herrmann@tu-bs.de> |
646052c0 DH |
81 | |
82 | * gc.c (scm_gc_sweep): Make it compile even when deprecated | |
83 | features are excluded. | |
84 | ||
89d7a92c | 85 | 2002-02-25 Dirk Herrmann <D.Herrmann@tu-bs.de> |
bac0e232 DH |
86 | |
87 | * num2integral.i.c (NUM2INTEGRAL): Fixed signedness problem. | |
88 | ||
4f2716b6 GH |
89 | 2002-02-25 Gary Houston <ghouston@arglist.com> |
90 | ||
91 | * convert.c: include <string.h> for convert_i.c. | |
92 | ||
46151112 RB |
93 | 2002-02-24 Rob Browning <rlb@defaultvalue.org> |
94 | ||
95 | * .cvsignore: add stamp-h1. | |
96 | ||
cd328b4f NJ |
97 | 2002-02-21 Neil Jerram <neil@ossau.uklinux.net> |
98 | ||
99 | * unif.c (scm_array_to_list): Correct name, which had been | |
100 | accidentally changed to scm_t_arrayo_list! | |
101 | ||
c709de7f MD |
102 | 2002-02-20 Mikael Djurfeldt <mdj@linnaeus> |
103 | ||
104 | * gc.c (scm_gc_sweep): Print an error message when aborting due to | |
105 | underflowing scm_mallocated. | |
106 | ||
c1965d31 MV |
107 | 2002-02-14 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
108 | ||
109 | * gc.h, gc.c (scm_must_malloc, scm_must_realloc, scm_must_strdup, | |
110 | scm_must_strndup, scm_done_malloc, scm_done_free, scm_must_free): | |
111 | Reimplemented using the new scm_gc_malloc, etc., functions and | |
112 | deprecated. | |
113 | ||
b606945b TTN |
114 | 2002-02-11 Thien-Thi Nguyen <ttn@giblet.glug.org> |
115 | ||
116 | * Makefile.am (bin_PROGRAMS): Move `guile_filter_doc_snarfage' | |
117 | to `noinst_PROGRAMS'. | |
118 | (bin_SCRIPTS): Move all values to `noinst_SCRIPTS'; delete. | |
119 | (noinst_PROGRAMS, noinst_SCRIPTS): New. | |
120 | ||
7c686ba8 MV |
121 | 2002-02-11 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
122 | ||
123 | * gc.h, gc.c (scm_gc_sweep): Issue deprecation warning when | |
124 | non-zero is returned from a port or smob free function. | |
125 | (scm_malloc, scm_realloc, scm_strndup, scm_strdup, | |
126 | scm_gc_register_collectable_memory, | |
127 | scm_gc_unregister_collectable_memory, scm_gc_malloc, | |
128 | scm_gc_realloc, scm_gc_free, scm_gc_strndup, scm_gc_strdup): New. | |
129 | ||
130 | * backtrace.c, continuations.c, convert.i.c, coop-threads.c, | |
131 | debug-malloc.c, dynl.c, environments.c, environments.h, | |
132 | extensions.c, filesys.c, fports.c, gc.c, gc.h, gh_data.c, goops.c, | |
133 | guardians.c, hooks.c, init.c, keywords.c, load.c, numbers.c, | |
134 | ports.c, posix.c, procs.c, rdelim.c, regex-posix.c, root.c, | |
135 | smob.c, stime.c, strings.c, struct.c, struct.h, symbols.c, unif.c, | |
136 | vectors.c, weaks.c: Use scm_gc_malloc/scm_malloc and | |
137 | scm_gc_free/free instead of scm_must_malloc and scm_must_free, as | |
138 | appropriate. Return zero from smob and port free functions. | |
139 | ||
140 | * debug-malloc.c (scm_malloc_reregister): Handle "old == NULL". | |
141 | ||
142 | * deprecation.h, deprecation.c: Reimplemented to allow deprecation | |
143 | messages while the GC is running. | |
144 | (scm_c_issue_deprecation_warning_fmt): New. | |
145 | ||
146 | * fports.c (scm_setvbuf): Reset read buffer to saved values when | |
147 | it is pointing to the putback buffer. | |
148 | ||
66adc0a6 TTN |
149 | 2002-02-08 Thien-Thi Nguyen <ttn@giblet.glug.org> |
150 | ||
151 | * gsubr.c (create_gsubr): On "too many args" error, | |
152 | also display arg count and name. Thanks to Bill Schottstaedt. | |
153 | ||
0187b4f4 TTN |
154 | 2002-02-05 Thien-Thi Nguyen <ttn@giblet.glug.org> |
155 | ||
156 | * Makefile.am: Include $(top_srcdir)/pre-inst-guile.am. | |
157 | ||
158 | (bin_SCRIPTS): Remove guile-snarf-docs-texi. | |
159 | (alldotdocfiles, snarf2checkedtexi, dotdoc2texi): New vars. | |
160 | (guile.texi, guile-procedures.texi): Use $(dotdoc2texi). | |
161 | ||
162 | * guile-snarf-docs-texi.in: Bye bye. | |
163 | ||
402e687c MV |
164 | 2002-02-04 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
165 | ||
166 | * symbols.c (scm_make_symbol): Fix typo in docstring. | |
167 | ||
168 | * symbols.h (scm_mem2uninterned_symbol, scm_symbol_interned_p, | |
169 | scm_make_symbol): New prototypes. | |
170 | ||
319b98ed MV |
171 | 2002-02-03 Marius Vollmer <mvo@zagadka.ping.de> |
172 | ||
173 | * symbols.h (SCM_SET_SYMBOL_HASH): Removed. | |
174 | (SCM_SYMBOL_INTERNED_P): New. | |
175 | * symbols.c (scm_symbol_hash): Use scm_ulong2num instead of | |
176 | SCM_MAKINUM since hash values can well be bignums. | |
177 | (scm_mem2symbol): Only use hash values below SCM_T_BITS_MAX/2. | |
178 | This signals a interned symbol. | |
179 | (scm_mem2uninterned_symbol, scm_symbol_interned_p, | |
180 | scm_make_symbol): New. | |
0187b4f4 | 181 | |
319b98ed MV |
182 | * print.c (scm_iprin1): Print uninterned symbols unreadably. |
183 | ||
34472dfe TTN |
184 | 2002-02-02 Thien-Thi Nguyen <ttn@giblet.glug.org> |
185 | ||
186 | * __scm.h (HAVE_UINTPTR_T): Only define if UINTPTR_T attributes | |
187 | are defined: UINTPTR_MAX, INTPTR_MAX, INTPTR_MIN. | |
0187b4f4 | 188 | Thanks to Dave Love. |
34472dfe | 189 | |
1b39c2e3 MV |
190 | 2002-01-31 Marius Vollmer <mvo@zagadka.ping.de> |
191 | ||
192 | * symbols.c (scm_gensym): Use " g" as default prefix, not "g". | |
319b98ed | 193 | This might help to make unintended clashes less likely. |
1b39c2e3 MV |
194 | (scm_string_to_symbol): Protect the string until the symbols is |
195 | created. | |
196 | ||
1fa86ca5 SJ |
197 | 2002-01-31 Stefan Jahn <stefan@lkcc.org> |
198 | ||
199 | * convert.c, convert.h, convert.i.c: New files containing C | |
34472dfe | 200 | array to Scheme conversion helpers meant to be replacement |
1fa86ca5 SJ |
201 | functions for the deprecated gh interface. |
202 | ||
203 | * Makefile.am: Setup rules for new `convert.*' files. | |
204 | ||
af68e5e5 SJ |
205 | 2002-01-28 Stefan Jahn <stefan@lkcc.org> |
206 | ||
207 | * symbols.c (scm_c_symbol2str): New function, replacement for | |
208 | `gh_scm2newsymbol()'. | |
209 | ||
34472dfe | 210 | * strings.c (scm_c_substring2str): New function. Proper |
af68e5e5 SJ |
211 | replacement for `gh_get_substr()'. |
212 | ||
213 | * socket.c: Include `stdint.h' if available for the `uint32_t' | |
214 | declaration. | |
215 | ||
34472dfe | 216 | * scmsigs.c (s_scm_sigaction): Initialize `chandler' (inhibits |
af68e5e5 SJ |
217 | compiler warning). |
218 | ||
219 | * backtrace.c: Include `lang.h' for GUILE_DEBUG conditional. | |
220 | ||
c96d76b8 | 221 | 2002-01-22 Neil Jerram <neil@ossau.uklinux.net> |
34472dfe | 222 | |
c96d76b8 | 223 | Other changes unrelated to Elisp... |
34472dfe | 224 | |
c96d76b8 NJ |
225 | * eval.c (scm_m_if): Use s_if rather than repeating string literal |
226 | "if". | |
227 | (comments): Fix a few typos. | |
228 | (scm_for_each): Add parentheses around oddly unparenthesized | |
229 | if/while conditions. | |
230 | ||
231 | * read.c (scm_read_opts): Add full stop at end of doc for | |
232 | `keywords' option. | |
233 | ||
234 | * script.c (scm_compile_shell_switches): Use scm_str2symbol | |
235 | instead of gh_symbol2scm. | |
236 | ||
237 | * srcprop.h (SRCPROPBRK): Return C type rather than SCM. | |
238 | (SRCBRKP): Use SRCPROPBRK rather than duplicating its logic. | |
239 | ||
240 | * srcprop.c (scm_srcprops_to_plist, scm_source_property): Change | |
241 | SRCPROPBRK (x) to SCM_BOOL (SRCPROPBRK (x)). | |
242 | ||
243 | First batch of changes for Elisp support... | |
244 | ||
245 | * alist.c, async.c, boolean.c, dynl.c, eval.c, filesys.c, | |
246 | fluids.c, list.c, load.c, options.c, posix.c, print.c, sort.c, | |
247 | throw.c, vectors.c, weaks.c: Add #include for lang.h. | |
248 | ||
249 | * eval.c, eval.h, init.c, lang.c, lang.h: Use SCM_ENABLE_ELISP to | |
250 | conditionalize compilation and initialization of Elisp support | |
251 | function. | |
34472dfe | 252 | |
c96d76b8 NJ |
253 | * alist.c (scm_assq, scm_assv, scm_assoc), async.c |
254 | (scm_asyncs_pending, scm_run_asyncs, noop), backtrace.c | |
255 | (scm_set_print_params_x), dynl.c (scm_make_argv_from_stringlist), | |
256 | filesys.c (fill_select_type, retrieve_select_type), fluids.c | |
257 | (scm_swap_fluids, scm_swap_fluids_reverse), list.c (scm_null_p, | |
258 | scm_ilength, scm_append_x, scm_last_pair, scm_reverse, | |
259 | scm_reverse_x, scm_list_ref, scm_list_set_x, scm_list_cdr_set_x, | |
bbd26b5a NJ |
260 | scm_c_memq, scm_memv, scm_member), load.c (scm_search_path), |
261 | options.c (change_option_setting, scm_options), posix.c | |
262 | (environ_list_to_c), print.c (scm_iprlist), throw.c | |
263 | (scm_exit_status), vectors.c (scm_vector), weaks.c | |
264 | (scm_weak_vector): Use SCM_NULL_OR_NIL_P instead of SCM_NULLP. | |
c96d76b8 NJ |
265 | |
266 | * boolean.c (scm_not): Use `SCM_FALSEP || SCM_NILP' instead of | |
267 | just SCM_FALSEP. | |
34472dfe | 268 | |
c96d76b8 NJ |
269 | * boolean.c (scm_boolean_p): Use `SCM_BOOLP || SCM_NILP' instead |
270 | of just SCM_BOOLP. | |
271 | ||
272 | * eval.c (scm_lisp_nil, scm_lisp_t, s_nil_ify, scm_m_nil_ify, | |
273 | s_t_ify, scm_m_t_ify, s_0_cond, scm_m_0_cond, s_0_ify, | |
274 | scm_m_0_ify, s_1_ify, scm_m_1_ify): Removed. | |
275 | (scm_m_atfop): Support function aliasing. Support both function | |
276 | args, which need transformation, and macro args, which do not. | |
277 | Add explanatory comments. | |
278 | (SCM_CEVAL): In switch cases for SCM_IM_AND, SCM_IM_COND, | |
279 | SCM_IM_DO, SCM_IM_IF and SCM_IM_OR, add `|| SCM_NILP' to existing | |
280 | checks for SCM_FALSEP. In switch case for SCM_IM_NIL_COND, use | |
281 | SCM_NULLP || SCM_NILP instead of checks against (removed) | |
282 | scm_lisp_nil. Removed switch cases for SCM_IM_NIL_IFY, | |
283 | SCM_IM_T_IFY, SCM_IM_0_COND, SCM_IM_0_IFY, SCM_IM_1_IFY. | |
284 | ||
285 | * lang.c (scm_nil_cons, scm_nil_car, scm_nil_cdr, scm_null, | |
286 | scm_m_while, scm_nil_eq): Commented out; I don't think we need | |
287 | these, but I don't want to remove them yet, just in case. | |
288 | (scm_init_lang): Define `%nil' variable on Scheme level to hold | |
289 | Elisp nil value. | |
290 | ||
291 | * lang.h (SCM_NILP): Test against Elisp nil value instead of | |
292 | against (removed) scm_lisp_nil. | |
293 | (SCM_NILNULLP, SCM_NIL2EOL, SCM_EOL2NIL): Commented out. | |
294 | (SCM_NULL_OR_NIL_P): New. | |
295 | ||
296 | * list.c (scm_append): Use SCM_VALIDATE_NULL_OR_NIL instead of | |
297 | SCM_VALIDATE_NULL. | |
298 | ||
299 | * print.c (scm_isymnames): Fix comment. Remove #@nil-ify, | |
300 | #@t-ify, #@0-cond, #@0-ify, #@1-ify. Add #nil (for SCM_ELISP_NIL | |
301 | value). | |
302 | ||
303 | * sort.c (scm_sorted_p, scm_merge, scm_merge_list_x, scm_merge_x, | |
304 | scm_sort_x, scm_sort, scm_stable_sort_x, scm_stable_sort): Use | |
305 | SCM_NULL_OR_NIL_P instead of SCM_NULLP. In constructions like `if | |
306 | (SCM_NULLP (x)) return SCM_EOL;', return x rather than SCM_EOL. | |
307 | ||
308 | * tags.h (SCM_IM_NIL_IFY, SCM_IM_T_IFY, SCM_IM_0_COND, | |
309 | SCM_IM_0_IFY, SCM_IM_1_IFY): Removed. | |
310 | (SCM_IM_BIND, SCM_IM_DELAY, SCM_IM_CALL_WITH_VALUES, SCM_UNBOUND): | |
311 | Numbering shifted down accordingly. | |
312 | (SCM_ELISP_NIL): New IFLAG. | |
313 | ||
314 | * validate.h (SCM_VALIDATE_NULL_OR_NIL): New. | |
34472dfe | 315 | |
a392ee15 DH |
316 | 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de> |
317 | ||
318 | * eval.c: Removed outdated references to "everr". Improved some | |
319 | comments. | |
320 | ||
321 | (scm_deval_args, deval_args): Renamed scm_deval_args to | |
322 | deval_args, since it is not part of the interface. | |
323 | ||
324 | (SCM_CEVAL): Added (maybe somewhat verbose) comment. Avoid to | |
325 | use references to debug.vect[0] before it exists. Add parentheses | |
326 | to switch statement. | |
327 | ||
328 | * goops.h: Added local emacs variables. | |
329 | ||
24933780 DH |
330 | 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de> |
331 | ||
332 | * eval.[ch] (scm_deval_args): Made static. | |
333 | ||
334 | * srcprop.c (scm_source_property): Remove redundant SCM_IMP | |
335 | test. | |
336 | ||
337 | * strings.c (scm_c_string2str): Clarified comment. Replaced | |
338 | THINKME by FIXME for uniformness. Removed question about whether | |
339 | arguments need to be protected from garbage collection: Arguments | |
340 | must be protected as any other variable. | |
341 | ||
f9450cdb DH |
342 | 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de> |
343 | ||
344 | * procs.h (SCM_CLOSURE_BODY): New Macro. | |
345 | ||
346 | * debug.c (scm_procedure_name, scm_procedure_source), eval.c | |
347 | (SCM_CEVAL, SCM_APPLY), goops.c (scm_sys_initialize_object, | |
348 | get_slot_value, set_slot_value), procs.c | |
349 | (scm_procedure_documentation), sort.c (closureless), stacks.c | |
350 | (get_applybody): Replace SCM_CDR (SCM_CODE (...)) by | |
351 | SCM_CLOSURE_BODY. | |
352 | ||
353 | * sort.c (closureless): Prefer !SCM_FOOP over SCM_NFOOP. | |
354 | ||
5dc64f64 MV |
355 | 2001-12-26 Marius Vollmer <mvo@zagadka.ping.de> |
356 | ||
357 | * Makefile.am (guile-procedures.txt): When we don't have makeinfo, | |
358 | use "cp" instead. | |
359 | ||
197ee3d3 MV |
360 | 2001-12-16 Marius Vollmer <mvo@zagadka.ping.de> |
361 | ||
362 | * stacks.c, stacks.h (scm_t_stackype): Renamed to scm_stack_type | |
363 | everywhere. | |
364 | ||
365 | * continuations.c (scm_make_continuation): Do not retain the | |
366 | throw_value when the continuation is invoked. | |
367 | ||
4d4528e7 SJ |
368 | 2001-12-08 Stefan Jahn <stefan@lkcc.org> |
369 | ||
370 | * strings.c (scm_c_string2str): New function. Converts a | |
34472dfe | 371 | given Scheme string into a C string. Also put in two |
4d4528e7 SJ |
372 | THINKME's regarding the malloc policy for the missing converter |
373 | routines. | |
374 | ||
98347362 NJ |
375 | 2001-12-01 Neil Jerram <neil@ossau.uklinux.net> |
376 | ||
377 | * gh_data.c (gh_module_lookup): Use scm_str2symbol rather than | |
378 | gh_symbol2scm. | |
379 | ||
1fc8902f DH |
380 | 2001-11-28 Dirk Herrmann <D.Herrmann@tu-bs.de> |
381 | ||
382 | * gc.h (SCM_GC_CELL_WORD, SCM_GC_CELL_OBJECT, | |
383 | SCM_GC_SET_CELL_WORD, SCM_GC_SET_CELL_OBJECT): New macros. | |
384 | ||
385 | (SCM_GC_CELL_TYPE, SCM_CELL_WORD, SCM_CELL_OBJECT, | |
386 | SCM_SET_CELL_WORD, SCM_SET_CELL_OBJECT, SCM_FREE_CELL_CDR, | |
387 | SCM_GC_SET_CELL_OBJECT): Express in terms of SCM_GC_CELL_* | |
388 | macros. | |
389 | ||
390 | (SCM_FREE_CELL_P): Express in terms of SCM_GC_CELL_TYPE. | |
391 | ||
392 | * inline.h (scm_alloc_cell, scm_alloc_double_cell): Use | |
393 | SCM_GC_CELL_* macros when accessing free cells. | |
394 | ||
4878beec MV |
395 | 2001-11-25 Marius Vollmer <mvo@zagadka.ping.de> |
396 | ||
397 | * vectors.h (SCM_MAKE_VECTOR_TAG): New. | |
34472dfe | 398 | * unif.h (SCM_MAKE_BITVECTOR_TAG, SCM_MAKE_UVECTOR_TAG): New. |
4878beec MV |
399 | * symbols.h (SCM_MAKE_SYMBOL_TAG): New. |
400 | * strings.h (SCM_MAKE_STRING_TAG): New. | |
401 | * procs.h (SCM_MAKE_CCLO_TAG): New. | |
402 | * numbers.h (SCM_MAKE_BIGNUM_TAG): New. | |
403 | ||
404 | * goops.h: Replaced SCM_DEBUG_DEPRECATED with | |
405 | !SCM_ENABLE_DEPRECATED. | |
406 | ||
407 | * async.c, async.h (scm_system_async_mark_from_signal_handler): | |
408 | New. | |
409 | ||
410 | * scmsigs.c (scm_take_signal): Removed all code that assumes that | |
411 | signal handlers are allowed to divert the flow of control. Call | |
412 | scm_system_async_mark_from_signal_handler instead of | |
413 | scm_system_async_mark. | |
414 | ||
415 | ||
416 | Deprecated SCM_NEWCELL and SCM_NEWCELL2. Added scm_alloc_cell and | |
417 | scm_alloc_double_cell in their place. | |
34472dfe | 418 | |
4878beec MV |
419 | * gc.h (SCM_GC_SET_ALLOCATED, scm_debug_newcell, |
420 | scm_debug_newcell2, scm_tc16_allocated): Removed from header. | |
421 | (scm_deprecated_newcell, scm_deprecated_newcell2): New. | |
422 | (SCM_NEWCELL, SCM_NEWCELL2): Implement in terms of | |
423 | scm_deprecated_newcell and scm_deprecated_newcell2. | |
424 | ||
425 | gc.c (scm_tc16_allocated): Only define when including deprecated | |
426 | features. | |
427 | (scm_debug_newcell, scm_debug_newcell2): Removed. | |
428 | (scm_init_storage): Do not initialize scm_tc16_allocated. | |
429 | (scm_init_gc): Do it here. | |
430 | (allocated_mark): New, from old code. | |
431 | (scm_deprecated_newcell, scm_deprecated_newcell2): New. | |
34472dfe | 432 | |
4878beec | 433 | * inline.c, inline.h: New files. |
34472dfe | 434 | * Makefile.am: Added them in all the right places. |
4878beec | 435 | |
34472dfe | 436 | * _scm.h: Include "libguile/inline.h". |
4878beec MV |
437 | |
438 | * alist.c, coop-threads.c, debug.c, environments.c, eval.c, | |
439 | fports.c, gh_data.c, goops.c, guardians.c, lang.c, list.c, | |
440 | num2float.i.c, numbers.c, pairs.c, ports.c, print.c, procs.c, | |
441 | smob.c, smob.h, strings.c, strports.c, struct.c, symbols.c, | |
442 | unif.c, variable.c, vectors.c, vports.c, weaks.c: Replaced | |
443 | SCM_NEWCELL and SCM_NEWCELL2 with scm_alloc_cell and | |
444 | scm_alloc_double_cell, respectively. | |
445 | ||
d2bc7fae MV |
446 | 2001-11-23 Marius Vollmer <mvo@zagadka.ping.de> |
447 | ||
448 | * modules.c (scm_c_use_module): Adapt to changes to | |
449 | `process-use-modules'. | |
450 | ||
5eec27e9 DH |
451 | 2001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de> |
452 | ||
453 | * numbers.c (scm_divide): Fix more division by zero errors. | |
454 | ||
8978878f GH |
455 | 2001-11-21 Gary Houston <ghouston@arglist.com> |
456 | ||
457 | * Makefile.am (OMIT_DEPENDENCIES): removed, since it seems to be | |
458 | obsolete. autogen.sh says: | |
459 | invalid unused variable name: `OMIT_DEPENDENCIES' | |
460 | ||
164826d3 DH |
461 | 2001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de> |
462 | ||
463 | * numbers.c (scm_divide): Fix (/ 0). Thanks to Keith Wright for | |
464 | reporting the bug. | |
465 | ||
84aff7a7 MV |
466 | 2001-11-21 Marius Vollmer <mvo@zagadka.ping.de> |
467 | ||
468 | * Makefile.am (install-exec-hook): Prepend $(DESTDIR) to filename. | |
469 | Thanks to Eric Gillespie, Jr! | |
34472dfe | 470 | |
6063dc1d SJ |
471 | 2001-11-21 Stefan Jahn <stefan@lkcc.org> |
472 | ||
34472dfe TTN |
473 | * win32-socket.c (getservent, setservent, endservent, |
474 | getprotoent, setprotoent, endprotoent): New functions. | |
6063dc1d SJ |
475 | Appropriate replacements for M$-Windows. |
476 | ||
477 | * numbers.c (SIZE_MAX, PTRDIFF_MAX, PTRDIFF_MIN): Reintroduced | |
478 | these definitions for GUILE_DEBUG. | |
479 | ||
480 | * net_db.c: Include "win32-socket.h" if compiling with a native | |
34472dfe TTN |
481 | M$-Windows compiler. Include some pieces of code (protoent and |
482 | servent interface) protected by HAVE_* macros when using a | |
6063dc1d SJ |
483 | native M$-Windows compiler. |
484 | ||
351982f6 MV |
485 | 2001-11-20 Marius Vollmer <mvo@zagadka.ping.de> |
486 | ||
487 | * modules.c (scm_c_export): Do nothing when the first argument is | |
488 | already the terminating NULL. Thanks to Han-Wen Nienhuys! | |
489 | ||
849038b5 TTN |
490 | 2001-11-20 Thien-Thi Nguyen <ttn@glug.org> |
491 | ||
492 | * Makefile.am (libpath.h): In SCM_BUILD_INFO, | |
493 | also include `buildstamp'. | |
494 | ||
5c790b44 RB |
495 | 2001-11-18 Rob Browning <rlb@defaultvalue.org> |
496 | ||
497 | * version.c | |
498 | (s_scm_major_version): use SCM_MAJOR_VERSION. | |
499 | (s_scm_minor_version): use SCM_MINOR_VERSION. | |
500 | (s_scm_micro_version): use SCM_MICRO_VERSION. | |
501 | (s_scm_version): use SCM_MAJOR_VERSION, SCM_MINOR_VERSION, and | |
502 | SCM_MICRO_VERSION. | |
503 | ||
504 | * version.h.in | |
505 | (SCM_MAJOR_VERSION): renamed from SCM_GUILE_MAJOR_VERSION. | |
506 | (SCM_MINOR_VERSION): renamed from SCM_GUILE_MINOR_VERSION. | |
507 | (SCM_MICRO_VERSION): renamed from SCM_GUILE_MICRO_VERSION. | |
508 | ||
694a9bb3 NJ |
509 | 2001-11-18 Neil Jerram <neil@ossau.uklinux.net> |
510 | ||
511 | * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x): | |
512 | Rewrite docstrings without reference to substring-move-left/right, | |
513 | since the latter no longer exist. | |
514 | ||
302c12b4 DH |
515 | 2001-11-17 Dirk Herrmann <D.Herrmann@tu-bs.de> |
516 | ||
517 | * eval.c: Removed bogus comment about acros. | |
518 | ||
519 | (scm_unmemocar): Use !SCM_CONSP instead of SCM_IMP. | |
520 | Minimize scope of local variable. Eliminate dependency on | |
521 | macro DEBUG_EXTENSIONS. | |
522 | ||
523 | (s_splicing): New error message string. | |
524 | ||
525 | (scm_m_body): Issue 'bad body' message rather than 'missing | |
526 | expression' message. | |
527 | ||
528 | (scm_m_quote): Eliminate unnecessary copying. | |
529 | ||
530 | (scm_m_lambda, scm_m_letstar, scm_m_letrec, scm_m_let): Leave the | |
531 | checking of the body to scm_m_body. | |
532 | ||
533 | (scm_m_do): Move comment to function header. Rename arg1 to | |
534 | binding. Made the code a bit easier to read. | |
535 | ||
536 | (evalcar): Removed. | |
537 | ||
538 | (iqq): Added a comment. Changed the depth parameter to | |
539 | unsigned. Use size_t for vector lengths. Make sure vector object | |
540 | is gc protected as long as its contents are read. Add some syntax | |
541 | checks. Get rid of unnecessary SCM_IMP test. Clean up the | |
542 | control structure a bit. | |
543 | ||
544 | (scm_m_delay): Added comment about the implementation of | |
545 | scm_m_delay. | |
546 | ||
547 | (scm_m_define): Add comment about guile's currying define | |
548 | syntax. Renamed 'proc' to 'name'. Eliminate dependency on macro | |
549 | DEBUG_EXTENSIONS. Simplified code a bit. Eliminate SICP code. | |
550 | ||
551 | (scm_m_letrec1): Removed. Part of the functionality is taken | |
552 | over by the new function 'transform_bindings'. | |
553 | ||
554 | (transform_bindings): New function. Takes over some of the | |
555 | functionality of removed function 'scm_m_letrec1', namely to split | |
556 | a list of bindings into a reversed list of variables and a list of | |
557 | initializers. | |
558 | ||
559 | (scm_m_letrec): Call 'transform_bindings'. | |
560 | ||
561 | (scm_m_let): Minimized scope of local variables. Renamed 'proc' | |
562 | to 'temp' and 'arg1' to 'binding'. Eliminated redundant SCM_NIMP | |
563 | test. Use 'transform_bindings'. Fixed scoping error with named | |
564 | let (Thanks to Aubrey Jaffer for reporting the bug and to Neil | |
565 | Jerram for suggesting the fix). Cleaned up the control structure | |
566 | a bit. | |
567 | ||
568 | (scm_m_expand_body): Use 'transform_bindings'. Eliminated | |
569 | unnecessary consing. Eliminated unnecessary | |
570 | SCM_DEFER/ALLOW_INTS. | |
571 | ||
572 | (SCM_CEVAL): Un-obfuscated some loops. | |
573 | ||
cecb4a5e NJ |
574 | 2001-11-16 Neil Jerram <neil@ossau.uklinux.net> |
575 | ||
8f85c0c6 NJ |
576 | * gc.h (scm_unhash_name): Old declaration removed. |
577 | ||
578 | * eval.c (s_scm_eval): Change @var{primitive-eval} to | |
579 | @code{primitive-eval}. | |
580 | ||
581 | * feature.c, vectors.c, net_db.c, unif.c, weaks.c, struct.c, | |
582 | version.c, alist.c, ports.c, ramap.c, unif.c, strings.c, list.c: | |
583 | Change @deffnx lines in docstrings to say {Scheme Procedure} | |
584 | rather than primitive or procedure. | |
585 | ||
586 | * posix.c (scm_execl), filesys.c (scm_close), unif.c | |
587 | (scm_array_set_x, scm_array_contents, scm_uniform_array_read_x, | |
588 | scm_bit_set_star_x, scm_bit_invert_x), ramap.c (scm_array_fill_x, | |
589 | scm_array_for_each, scm_array_index_map_x), vectors.c (scm_vector, | |
590 | scm_make_vector, scm_vector_to_list, scm_vector_fill_x), strop.c | |
591 | (scm_string_split, scm_string_ci_to_symbol), strings.c | |
592 | (scm_string_p), sort.c (scm_merge), print.c (scm_newline), | |
593 | macros.c (scm_macro_type), alist.c (scm_acons, scm_assq): | |
594 | Docstring fixes and improvements reflecting edits that have been | |
595 | made in the reference manual source. | |
596 | ||
597 | * objprop.c (scm_object_properties, scm_set_object_properties_x, | |
598 | scm_object_property, scm_set_object_property_x): Remove invalid | |
599 | @deffnx lines for corresponding procedure property primitives. | |
600 | ||
cecb4a5e NJ |
601 | These changes add a @deffnx C function declaration and function |
602 | index entries for each Guile primitive to the copy of the doc | |
603 | snarf output that is used for reference manual synchronization. | |
604 | Online help is unchanged. | |
849038b5 | 605 | |
cecb4a5e NJ |
606 | * snarf.h (SCM_SNARF_DOCS): Output primitive's C function name. |
607 | (SCM_DEFINE, SCM_DEFINE1, SCM_REGISTER_PROC): Supply to C function | |
608 | name to SCM_SNARF_DOCS. | |
849038b5 | 609 | |
cecb4a5e NJ |
610 | * guile-snarf-docs-texi.in: Pass the shell script's arguments into |
611 | snarf-check-and-output-texi. | |
612 | ||
613 | * Makefile.am (guile-procedures.texi): New rule. | |
614 | (BUILT_SOURCES, guile.texi, guile-procedures.txt, CLEANFILES): | |
615 | Changed so that the last stage of doc snarfing is now performed | |
616 | twice, once to produce guile-procedures.txt for online help, and | |
617 | once to produce guile.texi for reference manual synchronization. | |
618 | ||
ddea3325 DH |
619 | 2001-11-15 Dirk Herrmann <D.Herrmann@tu-bs.de> |
620 | ||
621 | * eval.c (RETURN): Wrap in do{}while(0) in order to make it | |
622 | safely usable as a single statement followed by a ';', for example | |
623 | in an if statement. | |
624 | ||
625 | (SCM_CEVAL, SCM_APPLY): Clean up code using 'RETURN'. | |
626 | ||
72dd0a03 NJ |
627 | 2001-11-13 Neil Jerram <neil@ossau.uklinux.net> |
628 | ||
629 | * random.c (scm_random_solid_sphere_x, | |
630 | scm_random_hollow_sphere_x): Correct "shere" typos. | |
631 | ||
632 | * hashtab.c (scm_hash_fold): Add missing apostrophe to docstring. | |
633 | ||
634 | * version.c (scm_version): Update docstring to include | |
635 | `micro-version'. | |
636 | ||
6558eda6 MV |
637 | 2001-11-13 Marius Vollmer <mvo@zagadka.ping.de> |
638 | ||
409b8588 MV |
639 | * modules.c (scm_c_export): Call va_end after collecting the |
640 | symbols. | |
641 | ||
adb8c0f2 MV |
642 | * strop.h, strop.c (scm_substring_move_left_x, |
643 | scm_substring_move_right_x): Removed. | |
644 | ||
6558eda6 MV |
645 | * __scm.h (HAVE_UINTPTR_T, HAVE_PTRDIFF_T, HAVE_LONG_LONG, |
646 | HAVE_LONG_LONGS): Define to "1" when defining them, to mirror what | |
647 | configure does. | |
648 | ||
5d8fc640 MV |
649 | 2001-11-12 Marius Vollmer <mvo@zagadka.ping.de> |
650 | ||
651 | * numbers.c: Document macros to define when including | |
652 | num2integral.i.c. MAX_VALUE and MIN_VALU are no longer used, we | |
653 | now rely on SIZEOF_ macros that have been figured out at | |
654 | configure time. | |
655 | ||
656 | * num2integral.i.c: Adapt to new interface. | |
657 | (NUM2INTEGRAL): Test whether a fixnum can be represented in the | |
658 | target type by casting it and checking whether it is still the | |
659 | same. Do not try to handle bignums for integral types that are | |
660 | smaller than fixnums. When handling bignums, collect the | |
661 | magnituse first into a unsigned type, and correctly check for | |
662 | overflow. | |
663 | (INTEGRAL2BIG): Do not use MIN_VALUE explicitely by observing that | |
664 | only -MIN_VALUE can still be negative of all negative numbers (in | |
665 | twos-complement). | |
666 | ||
849038b5 | 667 | * tags.h (SIZEOF_SCM_T_BITS): Define it appropriately. |
5d8fc640 MV |
668 | |
669 | * __scm.h: Define HAVE_UINTPTR_T, HAVE_PTRDIFF_T and | |
670 | HAVE_LONG_LONG depending on whether their size is non-zero. | |
671 | ||
d6b8cf11 TTN |
672 | 2001-11-11 Thien-Thi Nguyen <ttn@glug.org> |
673 | ||
674 | * strop.c (scm_string_null_p): Docfix; nfc. | |
675 | Thanks to Scott Lenser. | |
676 | ||
9401323e NJ |
677 | 2001-11-07 Neil Jerram <neil@ossau.uklinux.net> |
678 | ||
679 | * extensions.c (scm_load_extension): Canonicalize docstring | |
680 | whitespace. | |
681 | ||
682 | * unif.c (scm_uniform_array_write), ports.c | |
683 | (scm_current_output_port, scm_force_output), dynwind.c | |
684 | (scm_dynamic_wind), scmsigs.c (scm_setitimer, scm_getitimer), | |
685 | filesys.c (scm_open, scm_lstat), struct.c | |
686 | (scm_make_struct_layout), random.c (scm_random, | |
687 | scm_random_solid_sphere_x, scm_random_hollow_sphere_x, strop.c | |
688 | (scm_i_index): Remove superfluous whitespace from end of docstring | |
689 | lines. | |
690 | ||
691 | * filesys.c (scm_select), guardians.c (scm_guardian_greedy_p), | |
692 | strings.c (scm_make_string), variable.c (scm_make_variable, | |
693 | scm_make_undefined_variable, scm_variable_p, scm_variable_set_x, | |
694 | scm_variable_bound_p), scmsigs.c (scm_setitimer, scm_getitimer), | |
695 | posix.c (scm_crypt), struct.c (scm_make_vtable_vtable), hashtab.c | |
696 | (scm_hash_fold), ports.c (scm_port_for_each): Remove superfluous | |
697 | newline at end of docstrings. | |
698 | ||
699 | * modules.c (scm_set_current_module): Add missing newline to | |
700 | docstring. | |
701 | ||
b4e15479 SJ |
702 | 2001-11-07 Stefan Jahn <stefan@lkcc.org> |
703 | ||
704 | * win32-socket.[ch]: New files. Defines Winsock-API error codes | |
705 | and makes them available through Guile. That is because the | |
706 | Winsock-API does not store its errors in `errno' and thus cannot | |
707 | return error messages via `strerror (errno)'. | |
708 | ||
709 | * socket.c (scm_init_socket): Initialize `win32-socket' part | |
710 | here under M$-Windows. | |
711 | ||
d6b8cf11 | 712 | * numbers.h: Added missing declaration of |
b4e15479 SJ |
713 | `scm_sys_check_number_conversions()'. |
714 | ||
715 | * error.c: Local definition of SCM_I_STRERROR and SCM_I_ERRNO | |
716 | and use in `(strerror)' and `(system-error)'. | |
717 | ||
d6b8cf11 | 718 | * Makefile.am (EXTRA_libguile_la_SOURCES): Added |
b4e15479 SJ |
719 | `win32-socket.[ch]' to extra source and header files. |
720 | ||
7ab89df1 MV |
721 | 2001-11-06 Marius Vollmer <mvo@zagadka.ping.de> |
722 | ||
723 | * script.c (scm_shell_usage, scm_compile_shell_switches): Prepend | |
724 | a call to turn-on-debugging when --debug has been given instead of | |
725 | turning it on directly. Also, handle new `--no-debug' option, | |
726 | which might suppress the call to turn-on-debugging. | |
727 | ||
0233bfc1 SJ |
728 | 2001-11-05 Stefan Jahn <stefan@lkcc.org> |
729 | ||
730 | * struct.c (s_scm_struct_vtable_p): Corrected docstring. | |
731 | ||
8f99e3f3 SJ |
732 | 2001-11-04 Stefan Jahn <stefan@lkcc.org> |
733 | ||
734 | * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL) | |
d6b8cf11 | 735 | here (was at guile_LDADD) which describes the dependency |
8f99e3f3 SJ |
736 | correctly and allows a clean build on Win32. |
737 | ||
d6b8cf11 | 738 | * __scm.h (SCM_API): Follow-up patch. Renamed __FOO__ macros |
8f99e3f3 SJ |
739 | into FOO. |
740 | ||
741 | * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL | |
742 | import macros for external libraries (libcrypt, libqthreads, | |
743 | libreadline and libregex). | |
744 | ||
745 | * coop-defs.h: Include <winsock2.h> for `struct timeval'. | |
746 | ||
747 | * posix.c (flock): Added support for flock() in M$-Windows. | |
748 | ||
749 | * guile.c (SCM_IMPORT): Follow-up patch. Use SCM_IMPORT instead | |
750 | of __SCM_IMPORT__. | |
751 | ||
752 | * fports.c (getflags): Differentiate reading and writing pipes | |
753 | descriptors. | |
754 | ||
755 | * filesys.c (S_IS*): Redefine all of the S_IS*() macros for | |
756 | M$-Windows. | |
757 | ||
758 | * coop.c (coop_condition_variable_timed_wait_mutex): Use | |
759 | conditionalized error code if `ETIMEDOUT' is not available. | |
760 | (scm_thread_usleep): Remove bogus declaration of `struct timeval | |
761 | timeout'. | |
762 | ||
763 | * numbers.c (PTRDIFF_MIN): Moved this definition where it actually | |
764 | belongs. That is because NO_PREPRO_MAGIC gets undefined after | |
765 | each inclusion of `num2integral.i.c'. | |
766 | (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined. | |
767 | ||
4e21fa60 MV |
768 | 2001-11-03 Marius Vollmer <mvo@zagadka.ping.de> |
769 | ||
770 | * eval.c (scm_m_begin): Allow `(begin)`, with no subforms. | |
771 | (SCM_CEVAL): Evaluate an empty `begin' to SCM_UNSPECIFIED. | |
772 | ||
08112c95 MD |
773 | 2001-11-02 Mikael Djurfeldt <mdj@linnaeus> |
774 | ||
7663c008 MD |
775 | * print.c (scm_iprin1): Mark print state as revealed when |
776 | dispatching to generic write or display. | |
777 | ||
08112c95 MD |
778 | * unif.c (scm_ra2contig): Fixed memory overwrite bug. |
779 | ||
f712d833 MV |
780 | 2001-11-02 Marius Vollmer <mvo@zagadka.ping.de> |
781 | ||
782 | Support for native Win32. Thanks to Stefan Jahn! | |
d6b8cf11 | 783 | |
f712d833 MV |
784 | * Makefile.am: Add win32-uname.c, win32-uname.h, win32-dirent.c |
785 | and win32-dirent.h to extra source and header files. These | |
786 | include the uname() and the POSIX dirent interface implementation | |
787 | for M$-Windows. Put `-no-undefined' into LDFLAGS to support | |
788 | linkers which do not allow unresolved symbols inside shared | |
789 | libraries. Corrected `guile_filter_doc_snarfage$(EXEEXT)' | |
790 | dependency. | |
791 | ||
d6b8cf11 TTN |
792 | * __scm.h: Defined SCM_API. This macro gets prepended to all |
793 | function and data definitions which should be exported or imported | |
f712d833 MV |
794 | in the resulting dynamic link library in the Win32 port. |
795 | ||
796 | * __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h, | |
d6b8cf11 | 797 | chars.h, continuations.h, coop-defs.h, coop-threads.h, |
f712d833 MV |
798 | debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h, |
799 | environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h, | |
800 | feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h, | |
801 | gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h, | |
802 | hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h, | |
d6b8cf11 | 803 | load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h, |
f712d833 MV |
804 | objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h, |
805 | procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h, | |
806 | read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h, | |
807 | smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h, | |
808 | strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h, | |
809 | tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h, | |
810 | vports.h, weaks.h: | |
811 | Prefixed each each exported symbol with SCM_API. | |
812 | ||
d6b8cf11 | 813 | * continuations.c: Added comment about the use of the extern |
f712d833 MV |
814 | declarations of {get,set}context() functions used in the ia64 port. |
815 | ||
816 | * continuations.h, gc.c: `__libc_ia64_register_backing_store_base' | |
817 | is meant to be a `unsigned long *'. | |
818 | ||
819 | * filesys.c: Include `direct.h' if possible. Use local | |
820 | `win32-dirent.h' for the native M$-Windows port. Define S_IS*() | |
821 | macros for M$-Windows. Implementation of `fstat_Win32()' which is | |
822 | able to differentiate between sockets and other file descriptors. | |
823 | Use this function as wrapper in `scm_fstat()'. Fixed typo in | |
824 | `scm_dirname()'. | |
825 | ||
826 | * fports.c: Include `io.h' is possible. Put `*fp' into referring | |
827 | statement block in `scm_fport_buffer_add()'. | |
828 | Some corrections in `getflags()'. | |
d6b8cf11 | 829 | |
f712d833 MV |
830 | * gdb_interface.h (GDB_INTERFACE): Also support __CYGWIN__. |
831 | ||
832 | * guile.c: Make sure to define __SCM_IMPORT__ for shared library | |
833 | build on Win32. Disable preloaded symbols on Win2 platforms. | |
834 | ||
835 | * ioext.c, ports.c: Include `io.h' is possible. | |
836 | ||
837 | * mkstemp.c: Include `process.h' is possible. | |
838 | ||
839 | * net_db.c: Disable extern declaration of `h_errno' for __CYGWIN__, | |
840 | too. | |
841 | Put `scm_return_entry()' into HAVE_GETSERVENT conditional. | |
842 | ||
843 | * posix.c: Remove unnecessary dirent includes and defines. Include | |
844 | local `win32-uname.h' for MinGW. Extern declaration of | |
845 | `mkstemp()' for systems where it does not exists. Make | |
846 | `getlogin()' available on M$-Windows. | |
847 | ||
848 | * scmsigs.c: Made `usleep()' avalable on MinGW. | |
849 | ||
850 | * stime.c: On M$-Windows `tzname[]' is known to be `_tzname[]'. | |
851 | ||
852 | * win32-dirent.c: Include "win32-dirent.h", not "dirent.h". | |
853 | ||
854 | * win32-uname.c: Include "win32-uname.h", not "uname.h". | |
855 | ||
d245ce23 MD |
856 | 2001-10-28 Mikael Djurfeldt <mdj@linnaeus> |
857 | ||
858 | * unif.c (scm_uniform_array_read_x, scm_uniform_array_write): | |
859 | Don't apply scm_uniform_vector_length on arrays. | |
860 | ||
8ea46249 DH |
861 | 2001-10-14 Dirk Herrmann <D.Herrmann@tu-bs.de> |
862 | ||
863 | * eval.c (scm_lookupcar, scm_m_letstar, scm_m_do, iqq, | |
864 | scm_m_define, scm_m_letrec1, scm_m_let, scm_m_expand_body, | |
865 | scm_macroexp, unmemocopy, scm_eval_args, scm_deval_args, | |
866 | SCM_CEVAL, scm_map, scm_init_eval): When building lists, prefer | |
867 | scm_list_<n> over scm_cons[2]?. | |
868 | ||
869 | (scm_unmemocar, scm_m_cond, scm_m_letstar, scm_m_letrec1, | |
870 | scm_m_let, scm_m_atbind, unmemocopy, SCM_CEVAL, SCM_APPLY): Use | |
871 | SCM_C[AD][AD]R instead of explicit form. | |
872 | ||
873 | (scm_m_set_x, scm_m_cond, scm_m_letstar, scm_m_do): Reordered | |
874 | comparison parameters. | |
875 | ||
876 | (scm_m_case, scm_m_cond, scm_m_letstar, scm_m_do, SCM_CEVAL): Use | |
877 | !SCM_NULLP instead of SCM_NIMP. | |
878 | ||
879 | (scm_m_case): Don't copy the form. Renamed proc to clause and | |
880 | minimized its scope. Renamed x to clauses. Removed side | |
881 | effecting operation from macro call. | |
882 | ||
883 | (scm_m_cond): Don't copy the form. Renamed arg1 to clause and | |
884 | minimized its scope. Renamed x to clauses. Minimized the scope | |
885 | of variable 'len'. Make sure the else clause is treated specially | |
886 | even in case of '=>' occurences. Don't change the else to #t in | |
887 | order to be able to distinguish this case in the evaluator. Leave | |
888 | type checking of the recipient to the evaluator. | |
889 | ||
890 | (scm_c_improper_memq): Made the comment somewhat clearer. | |
891 | ||
892 | (scm_m_lambda): Renamed proc to formals. Removed unnecessary | |
893 | test for SCM_IM_LET at the place of the formal parameters. | |
894 | Simplified the formal parameter checking. | |
895 | ||
896 | (scm_m_letstar): Added Comment. Renamed proc to bindings. | |
897 | Renamed arg1 to binding and minimized its scope. Eliminated | |
898 | unnecessary consing. | |
899 | ||
900 | (scm_m_do): Renamed proc to bindings. Minimized the scope of | |
901 | variable 'len'. | |
902 | ||
903 | (build_binding_list): New static function. | |
904 | ||
905 | (unmemocopy): Don't use SCM_TYP7 on pairs (it's unclean). | |
906 | Further, split up the 'letrec' unmemoizing code to the | |
907 | corresponding parts for 'do', 'let' and 'letrec', adding comments | |
908 | to each form. Cleanup the handling of the do form (This removes | |
909 | some *real* code :-). | |
910 | ||
911 | (SCM_CEVAL): Removed side effecting operation from macro call. | |
912 | Handle the 'else clause of the 'cond form specially - the symbol | |
913 | 'else is not replaced with #t any more. | |
914 | ||
8186c4f5 GH |
915 | 2001-10-14 Gary Houston <ghouston@arglist.com> |
916 | ||
917 | * version.c (scm_version): use sprintf instead of snprintf, | |
918 | for portability. thanks to Bill Schottstaedt. | |
919 | ||
89759084 MD |
920 | 2001-10-14 Mikael Djurfeldt <mdj@linnaeus> |
921 | ||
922 | * read.c (scm_lreadr): When user-defined hash procedure returns | |
923 | SCM_UNSPECIFIED: Fall back to standard handling instead of raising | |
924 | an exception. (This prevents parsing of uniform vectors from | |
925 | interfering with parsing of numbers.) | |
926 | ||
9c7ce563 MV |
927 | 2001-10-13 Marius Vollmer <mvo@zagadka.ping.de> |
928 | ||
929 | * numbers.c: Set NO_PREPRO_MAGIC when defining our version of | |
930 | PTRDIFF_MIN. Thanks to Ken Raeburn. | |
931 | ||
932 | 2001-10-07 Marius Vollmer <mvo@zagadka.ping.de> | |
933 | ||
934 | * Makefile.am (EXTRA_libguile_la_SOURCES): Added "mkstemp.c". | |
935 | ||
936 | * eval.c (scm_m_atbind): First try to find the variable without | |
937 | defining it locally; when it has not been found, define it | |
938 | locally. | |
939 | ||
940 | * modules.c (module_variable): Pass over variables that exist but | |
941 | are unbound. | |
942 | ||
943 | 2001-10-06 Marius Vollmer <mvo@zagadka.ping.de> | |
944 | ||
945 | * backtrace.c (display_backtrace_file_and_line): Only use | |
946 | scm_basename when POSIX support is compiled in. Thanks to Chris | |
947 | Cramer. | |
948 | ||
1fe5e088 DH |
949 | 2001-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
950 | ||
951 | * numbers.c (mem2uinteger): Return number read so far when coming | |
952 | across a hexdigit after having read a # or if not reading a hex | |
953 | value. This will enable the calling code to correctly handle | |
954 | forms like 1e2. (The background is, that the exponent markers d, | |
955 | e and f are also hexdigits.) Thanks to Mikael Djurfeldt for | |
956 | providing this patch. | |
957 | ||
958 | (mem2complex): Fix erroneous double-negation. Now, numbers like | |
959 | 1-i will be read correctly. | |
960 | ||
68665a97 MD |
961 | 2001-10-12 Mikael Djurfeldt <mdj@linnaeus> |
962 | ||
963 | * debug.c (scm_mem_to_proc): Fixed typo in previous change. | |
964 | ||
965 | * validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro. | |
966 | ||
d5cf5324 DH |
967 | 2001-10-12 Dirk Herrmann <D.Herrmann@tu-bs.de> |
968 | ||
969 | * print.c (scm_print_state_vtable, print_state_pool): | |
970 | Initialize. These variables are now registered as gc roots. | |
971 | ||
972 | (scm_current_pstate): Update documentation. | |
973 | ||
974 | (scm_current_pstate, scm_make_print_state, scm_free_print_state, | |
975 | scm_prin1, scm_init_print): print_state_pool is registered as a | |
976 | gc root and thus does not need to be protected by a surrounding | |
977 | pair any more. | |
978 | ||
979 | (make_print_state): The car of print_state_pool no longer holds | |
980 | the scm_print_state_vtable. | |
981 | ||
982 | (scm_current_pstate, scm_make_print_state, print_circref, | |
983 | scm_iprin1, scm_prin1, scm_iprlist): Prefer !SCM_<foo> over | |
984 | SCM_N<foo>. | |
985 | ||
986 | (scm_prin1): When building lists, prefer scm_list_<n> over | |
987 | scm_cons[2]?. | |
988 | ||
989 | (scm_iprlist): Removed a redundant SCM_IMP test. | |
990 | ||
991 | (scm_simple_format): Use SCM_EQ_P to compare SCM values. | |
992 | ||
37c56aec DH |
993 | 2001-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de> |
994 | ||
995 | * debug.c (scm_make_iloc): Prefer !SCM_<foo> over SCM_N<foo>. | |
996 | ||
997 | (scm_memcons, scm_mem_to_proc): When building lists, prefer | |
998 | scm_list_<n> over scm_cons[2]?. | |
999 | ||
1000 | (scm_mem_to_proc): Prefer SCM_CONSP over SCM_NIMP. | |
1001 | ||
1002 | (scm_procedure_name): Use SCM_CADR instead of explicit form. | |
1003 | ||
1004 | (debugobj_print): Coerce scm_intprint arg 1 to long, not int. | |
1005 | Thanks to Rob Browning for the patch (see log entry 2001-09-21) - | |
1006 | for some reason his patch didn't make it into the cvs. | |
1007 | ||
79d34f68 DH |
1008 | 2001-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1009 | ||
1010 | * numbers.c (mem2decimal_from_point): Cleaned up the parsing a | |
1011 | little bit - should even be somewhat more accurate now. | |
1012 | ||
5e137c65 RB |
1013 | 2001-10-08 Rob Browning <rlb@defaultvalue.org> |
1014 | ||
1015 | * gc.c: support ia64 register backing store. | |
1016 | (SCM_MARK_BACKING_STORE): new macro. | |
1017 | ||
1018 | * continuations.h: support ia64 register backing store. | |
1019 | (struct scm_t_contregs): add ia64 register backing store. | |
1020 | ||
1021 | * continuations.c: support ia64 register backing store. | |
1022 | (continuation_mark): mark ia64 register backing store. | |
1023 | (continuation_free): free ia64 register backing store. | |
1024 | (scm_make_continuation): capture ia64 register backing store. | |
1025 | (copy_stack_and_call): copy ia64 register backing store. | |
1026 | ||
ee083ac2 DH |
1027 | 2001-10-08 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1028 | ||
1029 | * hashtab.c (scm_hash_fn_create_handle_x): The result of assoc_fn | |
1030 | is known to be #f if no entry is found. Thus, use !SCM_FALSEP | |
1031 | instead of SCM_NIMP to test for that case. | |
1032 | ||
1033 | * strings.h (SCM_SET_STRING_LENGTH): Cast the length to | |
1034 | scm_t_bits instead of long. | |
1035 | ||
71dcdbf9 MV |
1036 | 2001-10-06 Marius Vollmer <mvo@zagadka.ping.de> |
1037 | ||
1038 | * tags.h (SCM_T_BITS_MAX, SCM_T_SIGNED_BITS_MAX, | |
1039 | SCM_T_SIGNED_BITS_MIN): New. | |
1040 | * numbers.h (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM): | |
1041 | Use them to make these macros computable by the preprocessor. | |
1042 | ||
1043 | * num2integral.i.c (INTEGRAL2NUM): Let the preprocessor test | |
1044 | whether the integral type fits in a fixnum, not the compiler. | |
1045 | This removes a spurious compiler warning. Also, honor the | |
1046 | NO_PREPRO_MAGIC flag to suppress any preprocessor tests. This is | |
1047 | needed for `long long's. | |
1048 | ||
1049 | * numbers.c: Define NO_PREPRO_MAGOC when including | |
1050 | num2integral.c.i for `long long' and `signed long long'. | |
1051 | ||
152812c0 MD |
1052 | 2001-10-06 Mikael Djurfeldt <mdj@linnaeus> |
1053 | ||
1054 | These changes fixes a race condition in the Guile coop - pthread | |
1055 | compatibility code. | |
d6b8cf11 | 1056 | |
152812c0 MD |
1057 | * coop.c (mother_awake_p): New variable. |
1058 | (coop_create): Set mother_awake_p before creating or signalling | |
1059 | mother; wait until mother is going to sleep before returning. | |
1060 | (mother): Reset mother_awake_p before going to sleep. | |
1061 | ||
11d49f54 DH |
1062 | 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1063 | ||
1064 | * options.c (protected_objects, scm_init_options): The content of | |
1065 | protected_objects is now protected from garbage collection using | |
1066 | scm_gc_register_root instead of scm_permanent_object. | |
1067 | ||
1068 | (get_option_setting): New static function that computes an option | |
1069 | setting as it was formerly done in the function scm_options. | |
1070 | ||
1071 | (get_documented_option_setting): New static function that | |
1072 | returns option documentation as it was formerly done in the | |
1073 | function scm_options. Note that documentation C strings are no | |
1074 | longer precomputed into SCM objects. Instead, they are converted | |
1075 | into SCM strings every time get_documented_option_setting is | |
1076 | called. | |
1077 | ||
1078 | (change_option_setting): New static functions that modifies the | |
1079 | option setting as it was formerly done in the function | |
1080 | scm_options. The function is now exception safe, i. e. won't | |
1081 | cause a memory leak when interrupted. Further, only non-immediate | |
1082 | option values are added to the protection list. | |
1083 | ||
1084 | (scm_options): This function now has only the purpose to dispatch | |
1085 | to to get_option_setting, get_documented_option_setting or | |
1086 | change_option_setting, depending on the arguments given to | |
1087 | scm_options. | |
1088 | ||
1089 | (scm_init_opts): Don't convert documentation C strings into SCM | |
1090 | strings. Further, don't protect any object values: They _must_ | |
1091 | be immediate values, otherwise there is no guarantee that they | |
1092 | have not been collected before anyway. | |
1093 | ||
1094 | * options.[ch] (scm_t_option): Made type unsigned, name into a | |
1095 | constant char* and val into a scm_t_bits type. | |
1096 | ||
1097 | (scm_options, scm_init_opts): The number of options is guaranteed | |
1098 | to be larger or equal to zero. Thus, the type is changed to | |
1099 | unsigned. | |
1100 | ||
3dbacabc DH |
1101 | 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1102 | ||
1103 | * num2integral.i.c (NUM2INTEGRAL): Eliminated some warnings about | |
1104 | testing an unsigned value for being >= 0. | |
1105 | ||
14282d0f DH |
1106 | 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1107 | ||
1108 | * numbers.h: Removed old comment about using SCM_CAR to access | |
1109 | non-pair cells. | |
1110 | ||
1111 | (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM): Make sure | |
1112 | the return value is signed. Thanks to Brian Crowder for the bug | |
1113 | report. | |
1114 | ||
1115 | (SCM_SRS): Avoid unnecessary casting and don't unpack input | |
1116 | values. With this patch, SCM_SRS can be safely used for other | |
1117 | types than scm_t_signed_bits. However, it should still better be | |
1118 | an internal macro and thus be renamed to SCM_I_SRS. | |
1119 | ||
1120 | (SCM_MAKINUM, SCM_INUM): Use proper casting. | |
1121 | ||
2dbec7b5 GH |
1122 | 2001-10-03 Gary Houston <ghouston@arglist.com> |
1123 | ||
1124 | * continuations.h, unif.h: in the descriptions of the bit patterns | |
1125 | of the heap cells, make bit 0 the least significant. | |
1126 | ||
cf4ee841 TTN |
1127 | 2001-09-25 Thien-Thi Nguyen <ttn@glug.org> |
1128 | ||
1129 | * chars.h (SCM_MAKE_CHAR): Use `scm_t_bits' instead of `intptr_t'. | |
1130 | Thanks to Golubev I. N. | |
1131 | ||
4a151b3d GH |
1132 | 2001-09-25 Gary Houston <ghouston@arglist.com> |
1133 | ||
1134 | * ports.c (scm_drain_input): extended the docstring. thanks to | |
1135 | Alex Schroeder and Thien-Thi Nguyen. | |
1136 | ||
581ded70 MD |
1137 | 2001-09-23 Mikael Djurfeldt <mdj@linnaeus> |
1138 | ||
1139 | * validate.h (SCM_NUM2FLOAT, SCM_NUM2DOUBLE, | |
1140 | SCM_VALIDATE_FLOAT_COPY, SCM_VALIDATE_DOUBLE_COPY): New | |
1141 | macros. (The NUM names might soon change.) | |
1142 | ||
1143 | * numbers.h: Added missing declarations. | |
1144 | ||
5437598b MD |
1145 | 2001-09-22 Mikael Djurfeldt <mdj@linnaeus> |
1146 | ||
1147 | * Makefile.am: Distribute num2float.i.c. | |
1148 | ||
1149 | * num2float.i.c: New file, multiply included by numbers.c, used | |
1150 | to "templatize" the float <-> num conversion routines. | |
1151 | ||
1152 | * numbers.c: New functions: scm_num2float, scm_float2num, | |
1153 | scm_num2double, scm_double2num. | |
1154 | ||
0b073f0f RB |
1155 | 2001-09-21 Rob Browning <rlb@defaultvalue.org> |
1156 | ||
1157 | * .cvsignore: really add version.h | |
1158 | ||
1159 | * strings.h (SCM_SET_STRING_LENGTH): coerce "l" to a long. | |
1160 | Otherwise it fails on the alpha. However, we might rather choose | |
1161 | this size conditionally. | |
1162 | ||
1163 | * numbers.c (scm_gcd): change "k" to a long from an int. | |
1164 | Otherwise it fails on the alpha. However, we might rather choose | |
1165 | this size conditionally. | |
1166 | ||
1167 | * error.c (scm_wta): coerce char* to intptr_t before int | |
1168 | assignment. | |
1169 | ||
1170 | * debug.c (debugobj_print): coerce scm_intprint arg 1 to long, not | |
1171 | int. | |
1172 | ||
1173 | * chars.h (SCM_MAKE_CHAR): coerce value to intptr_t. | |
1174 | ||
2830fd91 MD |
1175 | 2001-09-20 Mikael Djurfeldt <mdj@linnaeus> |
1176 | ||
1177 | * numbers.c (scm_integer_expt): Accept inexact integer in second | |
1178 | argument. (Thanks to Bill Schottstaedt.) | |
1179 | ||
c13f0a90 RB |
1180 | 2001-09-20 Rob Browning <rlb@defaultvalue.org> |
1181 | ||
1182 | * .cvsignore: add version.h | |
1183 | ||
1184 | * versiondat.h.in: removed (obsolete). | |
1185 | ||
1186 | * version.h.in: renamed from version.h. | |
1187 | (SCM_GUILE_MAJOR_VERSION): new public macro. | |
1188 | (SCM_GUILE_MINOR_VERSION): new public macro. | |
1189 | (SCM_GUILE_MICRO_VERSION): new public macro. | |
1190 | ||
1191 | * version.h: renamed to version.h.in. | |
1192 | ||
1193 | * version.c | |
1194 | (scm_major_version): support integer *_VERSION macros. | |
1195 | (scm_minor_version): support integer *_VERSION macros. | |
1196 | (scm_micro_version): support integer *_VERSION macros. | |
1197 | (scm_version): support integer *_VERSION macros. | |
1198 | ||
147c18a0 MD |
1199 | 2001-09-20 Mikael Djurfeldt <mdj@linnaeus> |
1200 | ||
1201 | * error.c, error.h: Made error keys globally accessible. | |
1202 | Applications might want to test for these or use them in a direct | |
1203 | call to scm_error. | |
1204 | ||
1205 | * num2integral.i.c (NUM2INTEGRAL): Report an error when these | |
1206 | routines are passed an inexact. This change in behavior is | |
1207 | motivated by concordance with R5RS: It is more common that a | |
1208 | primitive doesn't want to accept an inexact for an exact. | |
1209 | ||
662c5539 DH |
1210 | 2001-09-17 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1211 | ||
1212 | The following patch partially undoes my patch from 2001-06-30, | |
1213 | where I added the function scm_gc_mark_cell_conservatively. The | |
1214 | function is buggy, since it breaks guile during conservative | |
1215 | marking if a pointer on the stack points directly into the list of | |
1216 | free cells on the heap: With conservative cell marking this will | |
1217 | cause the whole free list to be scanned and marked - boom! | |
1218 | ||
1219 | * gc.c (allocated_mark, MARK, heap_segment, | |
1220 | scm_gc_mark_cell_conservatively, scm_init_storage), gc.h | |
cf4ee841 | 1221 | (scm_gc_mark_cell_conservatively): Remove function |
662c5539 DH |
1222 | scm_gc_mark_cell_conservatively and update the corresponding |
1223 | comments and uses accordingly. Thanks to Christopher Cramer for | |
1224 | the patch. (Minor corrections by me.) | |
1225 | ||
6c1b7628 GH |
1226 | 2001-09-15 Gary Houston <ghouston@arglist.com> |
1227 | ||
1228 | * root.h (scm_root_state): removed the continuation_stack and | |
1229 | continuation_stack_ptr members, which have no apparent purpose. | |
1230 | (scm_continuation_stack, scm_continuation_stack_ptr): #defines | |
1231 | removed. | |
662c5539 | 1232 | |
6c1b7628 GH |
1233 | * root.c (root_mark), init.c (restart_stack, start_stack), gc |
1234 | (scm_igc): remove all references to contination_stack and | |
1235 | continuation_stack_ptr, avoiding allocation of a vector and | |
1236 | useless processing during gc. | |
1237 | ||
455c0ac8 DH |
1238 | 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1239 | ||
1240 | * guardians.c (tconc_t, t_tconc): Renamed tconc_t to t_tconc. | |
1241 | ||
1242 | (TCONC_IN): Make sure that the cell word 0 is initialized last. | |
1243 | ||
1244 | (guardians_t, t_guardians): Renamed guardians_t to t_guardians. | |
1245 | ||
1246 | (GUARDIAN, GUARDIAN_DATA): Renamed GUARDIAN to GUARDIAN_DATA. | |
1247 | ||
1248 | (guardian_apply, scm_get_one_zombie, scm_make_guardian, | |
1249 | mark_and_zombify): Prefer !SCM_<foo> over SCM_N<foo>. | |
1250 | ||
22ba637b DH |
1251 | 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1252 | ||
1253 | * guardians.c (mark_dependencies_in_tconc, | |
1254 | whine_about_self_centered_zombies, scm_init_guardians): Register | |
1255 | the static global variable `self_centered_zombies' via | |
1256 | scm_gc_register_root, to make some cdr-ing unnecessary. | |
1257 | ||
c3c4d801 DH |
1258 | 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1259 | ||
1260 | * backtrace.c (display_backtrace_file, | |
1261 | display_backtrace_file_and_line): Use SCM_EQ_P when comparing SCM | |
1262 | values, use SCM_FALSEP when comparing SCM values against #f. | |
1263 | Thanks to Rob Browning for the bug report. | |
1264 | ||
b00418df DH |
1265 | 2001-09-12 Martin Baulig <martin@home-of-linux.org> |
1266 | ||
1267 | * strings.[ch] (scm_str2string): New function. | |
1268 | ||
a0d34a0b MV |
1269 | 2001-09-06 Marius Vollmer <mvo@zagadka.ping.de> |
1270 | ||
1271 | * gc.c (scm_done_free): Always subtract size from scm_mallocated | |
1272 | when computing nm, even if it's negative. | |
1273 | (scm_must_malloc): Abort on overflow of scm_mtrigger. | |
1274 | (scm_must_realloc): Likewise. | |
1275 | ||
b10586f0 ML |
1276 | 2001-09-01 Michael Livshin <mlivshin@bigfoot.com> |
1277 | ||
1278 | * numbers.c (scm_sys_check_number_conversions): new function, | |
1279 | defined if Guile is compiled in debugging mode. currently checks | |
1280 | `scm_num2ulong', should check much much more. | |
1281 | ||
1282 | * num2integral.i.c (NUM2INTEGRAL): when converting a bignum to | |
1283 | unsigned, ensure that it's positive. thanks to Martin Baulig! | |
cf4ee841 | 1284 | |
8c494e99 DH |
1285 | 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de> |
1286 | ||
1287 | * __scm.h: Added new section about compile time selectable | |
1288 | features. | |
1289 | ||
1290 | (long_long, ulong_long, scm_sizet, SCM_WNA, SCM_OUTOFRANGE, | |
1291 | SCM_NALLOC, SCM_HUP_SIGNAL, SCM_INT_SIGNAL, SCM_FPE_SIGNAL, | |
1292 | SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL, SCM_ALRM_SIGNAL, SCM_GC_SIGNAL, | |
1293 | SCM_TICK_SIGNAL, SCM_SIG_ORD, SCM_ORD_SIG, SCM_NUM_SIGS): | |
1294 | Removed. | |
1295 | ||
1296 | * deprecation.c (scm_include_deprecated_features): Simplified. | |
1297 | ||
1298 | * eval.c (EVALCAR, unmemocopy), eval.h (SCM_XEVALCAR): Use | |
1299 |