*** empty log message ***
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
03416a99
KN
12001-02-02 Keisuke Nishida <kxn30@po.cwru.edu>
2
3 * dump.c, dump.h: New files.
4 * Makefile.am: Added dump.c, dump.h, dump.x, dump.doc.
5 * init.c: #include "libguile/dump.h".
6 (scm_init_guile_1): Call scm_init_dump.
7 * smob.h (scm_smob_descriptor): New slots: dump_mark,
8 dump_dealloc, dump_store, undump_alloc, undump_restore,
9 undump_init.
10 * smob.c (scm_make_smob_type): Init the new slots.
11 (scm_set_smob_dump, scm_set_smob_undump): New functions.
12 * smob.h (scm_set_smob_dump, scm_set_smob_undump): Declared.
13
14 * keywords.c: #include "libguile/dump.h".
15 (keyword_dealloc, keyword_alloc): New functions.
16 (scm_init_keywords): Set smob_dump and smob_undump.
17
00ffa0e7
KN
182001-02-01 Keisuke Nishida <kxn30@po.cwru.edu>
19
20 * vectors.c (scm_c_make_vector): New function.
21 * vectors.h (scm_c_make_vector): Declared.
22 * eval.c (scm_copy_tree), filesys.c (scm_stat2scm), fluids.c
23 (scm_make_initial_fluids, grow_fluids), gc.c (scm_init_storage),
24 gh_data.c (gh_ints2scm, gh_doubles2scm): goops.c
25 (scm_make_method_cache, scm_i_vector2list,
26 scm_compute_applicable_methods, scm_sys_method_more_specific_p),
27 init.c (start_stack), net_db.c (scm_gethost, scm_getnet,
28 scm_getproto, scm_return_entry), posix.c (scm_getgroups,
29 scm_getpwuid, scm_getgrgid, scm_uname), print.c (make_print_state,
30 grow_ref_stack), regex-posix.c (scm_regexp_exec), scmsigs.c
31 (scm_init_scmsigs), socket.c (scm_addr_vector, scm_addr_vector),
32 stime.c (scm_times, filltime), unif.c (scm_make_uve), vectors.c
33 (scm_vector, scm_make_vector): Use scm_c_make_vector.
34
35 * hashtab.c (scm_c_make_hash_table): New function.
36 * hashtab.h (scm_c_make_hash_table): Declared.
37 * environments.c (scm_make_leaf_environment,
38 scm_make_eval_environment), gc.c (scm_init_storage),
39 keywords.c (scm_init_keywords), symbols.c (scm_builtin_bindings):
40 Use scm_c_make_hash_table.
41
b8446ce8
MD
422001-01-31 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
43
44 * unif.c (rapr1): Don't apply scm_uniform_vector_length on arrays.
45
e3239868
DH
462001-01-29 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
47
48 * struct.c (scm_make_vtable_vtable): Removed unnecessary "" from
49 end of docstring.
50
51 * struct.c (scm_struct_set_x, scm_struct_vtable_tag,
52 scm_struct_vtable_name, scm_set_struct_vtable_name_x), weaks.c
53 (scm_make_weak_value_hash_table, scm_make_doubly_weak_hash_table,
54 scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
55 srcprop.c (scm_source_properties, scm_set_source_properties_x,
56 scm_source_property, scm_set_source_property_x), sort.c
57 (scm_sort_list_x, scm_restricted_vector_sort_x, scm_sorted_p,
58 scm_merge, scm_merge_x, scm_sort_x, scm_sort, scm_stable_sort_x,
59 scm_stable_sort, scm_sort_list_x, scm_sort_list): Added
60 docstrings.
61
41ee56dd
MD
622001-01-29 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
63
64 * eval.c (SCM_APPLY): Check that primitives which take 1 arg
65 really get that arg.
66
b6311c08
KN
672001-01-26 Keisuke Nishida <kxn30@po.cwru.edu>
68
69 * goops.c (s_scm_get_keyword): Bug fix.
70
a49af0c0
DH
712001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
72
73 The following patch was sent by Martin Grabmueller. It makes sure
74 that in case of parameter errors the correct function name is
75 shown, and that parameter types are only checked once.
76
77 * strop.c (string_copy, string_upcase_x, string_downcase_x,
78 string_capitalize_x): New functions. Each one performs the core
79 functionality of the corresponding scm_* function.
80
81 (scm_string_copy, scm_string_upcase_x, scm_string_upcase,
82 scm_string_downcase_x, scm_string_downcase,
83 scm_string_capitalize_x, scm_string_capitalize): Reduced to
84 parameter checking wrappers of the above functions.
85
13070bd3
DH
862001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
87
88 * continuations.c, dynl.c, keywords.c, load.c: Include
89 strings.h. Thanks to Bill Schottstaedt for the bug report.
90
2f2b390c
DH
912001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
92
93 * backtrace.c (display_header): Make sure that line and column
94 information is shown independent of whether the port the code was
95 read from had an associated filename. Thanks to Martin
96 Grabmueller for providing this patch.
97
efa40607
DH
982001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
99
100 * fports.[ch] (scm_file_port_p): New primitive.
101
a98bddfd
DH
1022001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
103
104 * tags.h (scm_tc16_fport, scm_tc16_strport, scm_tc16_sfport):
105 These are now defined in fports.c, strports.c and vports.c.
106
107 * fports.[ch] (scm_tc16_fport), strports.c (scm_tc16_strport),
108 vports.c (scm_tc16_sfport): Made variables (were macros defined in
109 tags.h).
110
111 fports.c (scm_make_fptob), strports.c (scm_make_stptob), vports.c
112 (scm_make_sfptob): Made static. These return a type code now.
113
114 fports.c (scm_init_fports), strports.c (scm_init_strports),
115 vports.c (scm_init_vports): Create the corresponding port types.
116
117 * fports.h (SCM_FPORTP, SCM_OPFPORTP, SCM_OPINFPORTP,
118 SCM_OPOUTFPORTP): Redefined in terms of scm_tc16_fport.
119
120 * init.c (scm_init_guile_1): Make sure strports are initialized
121 before gdbint.
122
123 * ports.[ch] (scm_make_port_type): Changed the return type to
124 scm_bits_t.
125
126 * ports.c (scm_ports_prehistory): Don't create any port types
127 here.
128
129 * posix.c (scm_ttyname): Use SCM_FPORTP instead of comparing
130 against scm_tc16_fport directly.
131
0419a528
DH
1322001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
133
134 * srcprop.c (scm_set_source_property_x): Fix to handle
135 (set-source-property! <obj> 'copy <datum>) correctly.
136
6d36532c
GH
1372001-01-24 Gary Houston <ghouston@arglist.com>
138
139 * filesys.c (scm_link): docstring fix.
140 * fports.h (scm_setfileno): obsolete declaration removed.
141 * posix.c: bogus popen declaration removed.
142
143 * rdelim.c: new file, split from ioext.c.
144 * rdelim.h: new file, split from ioext.h
145 * Makefile.am: add rdelim.c and related files.
146 * init.c: call scm_init_rdelim. include rdelim.h.
147
3ba5a6c2
DH
1482001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
149
150 This patch was sent by Martin Grabmueller and makes sure that
151 parameter errors are reported correctly by the lexicographic
152 ordering predicates.
153
154 * strorder.c (string_less_p, string_ci_less_p): New functions.
155
156 (scm_string_less_p, scm_string_ci_less_p): Extracted the core
157 functionality into string_less_p, string_ci_less_p respectively.
158 The remaining code is just a wrapper to do the parameter
159 checking.
160
161 (scm_string_leq_p, scm_string_gr_p, scm_string_geq_p): Check the
162 parameters and call string_less_p instead of scm_string_less_p.
163
164 (scm_string_ci_leq_p, scm_string_ci_gr_p, scm_string_ci_geq_p):
165 Check the parameters and call string_less_ci_p instead of
166 scm_string_ci_less_p.
167
e40a4095
DH
1682001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
169
ed6a2db9
DH
170 This patch modifies scm_display_error to perform parameter
171 checking. Thanks to Neil Jerram for the bug report.
172
e40a4095
DH
173 * backtrace.[ch] (scm_i_display_error): New function.
174
175 * backtrace.c (scm_display_error): Added parameter check and
176 extracted the core functionality into function
177 scm_i_display_error.
178
179 * throw.c (handler_message): Call scm_i_display_error to display
180 the error message.
181
f1e06a96
MD
1822001-01-23 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
183
184 * eval.c (SCM_APPLY): Added # args check for application of
185 procedures with arity 3. (Thanks to Anders Holst.)
186
30ea841d
DH
1872001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
188
189 * filesys.h (SCM_DIR_FLAG_OPEN, SCM_DIR_OPEN_P): Added.
190
191 (SCM_OPDIRP): Deprecated.
192
193 * filesys.c (scm_opendir): Use SCM_DIR_FLAG_OPEN instead of
194 SCM_OPN.
195
196 (scm_readdir, scm_rewinddir): Don't use SCM_VALIDATE_OPDIR.
197 Instead, give an explicit error message in case the directory is
198 closed.
199
200 (scm_closedir, scm_dir_print): Rewritten to use SCM_DIR_OPEN_P
201 instead of SCM_OPENP and SCM_CLOSEDP.
202
203 * validate.h (SCM_VALIDATE_OPDIR): Deprecated.
204
312ae976
DH
2052001-01-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
206
207 * eval.c (inner_eval, scm_eval): Move all real functionality into
208 inner_eval. Avoid to copy the expression twice by inlining some
209 code from scm_i_eval.
210
4567ed78
DH
2112001-01-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
212
213 * eval.c (scm_m_case): The 'else' clause of a 'case' statement
214 now has to be the last clause, as required by R5RS. Thanks to
215 Martin Grabmueller for the patch.
216
10288a09
GH
2172001-01-18 Gary Houston <ghouston@arglist.com>
218
219 * ioext.c: further simplify scm_read_string_x_partial by defining
220 a macro SCM_EBLOCK.
221
8f379a8f
DH
2222001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
223
224 * gh_data.c (gh_ints2scm): Simplified using SCM_FIXABLE.
225
5c75b29f
DH
2262001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
227
228 * __scm.h: Added comment about architecture and compiler
229 properties that are required by guile.
230
231 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
232 SCM_MOST_NEGATIVE_FIXNUM): Moved to numbers.h.
233
234 (SCM_CHAR_BIT, SCM_LONG_BIT): Moved here from numbers.h.
235
236 * numbers.h (SCM_CHAR_BIT, SCM_LONG_BIT): Moved to __scm.h.
237
238 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
239 SCM_MOST_NEGATIVE_FIXNUM): Moved here from __scm.h.
240
ac0c002c
DH
2412001-01-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
242
243 * __scm.h (SCM_FIXNUM_BIT): Added. The name is chosen in analogy
244 to the names in limits.h.
245
246 * numbers.c (abs_most_negative_fixnum): Added.
247
248 (scm_quotient, scm_remainder): Fixed the fixnum-min / (abs
249 fixnum-min) special case.
250
251 (scm_big_and): Fix for negative first parameter.
252
253 (scm_bit_extract): Fix for fixnum paramters.
254 Thanks to Rob Browning for the bug report.
255
256 (scm_init_numbers): Initialize abs_most_negative_fixnum.
257
debe0dc2
DH
2582001-01-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
259
260 * symbols.c (scm_symbol_bound_p): Fixed comment.
261 Thanks to Chris Cramer.
262
8a39e3fc
DH
2632001-01-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
264
265 * smob.[ch] (scm_make_smob_type): Return type is scm_bits_t now.
266 Thanks to Bill Schottstaedt.
267
322ec19d
ML
2682001-01-11 Michael Livshin <mlivshin@bigfoot.com>
269
270