* Added missing includes of string.h.
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
13070bd3
DH
12001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
2
3 * continuations.c, dynl.c, keywords.c, load.c: Include
4 strings.h. Thanks to Bill Schottstaedt for the bug report.
5
2f2b390c
DH
62001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
7
8 * backtrace.c (display_header): Make sure that line and column
9 information is shown independent of whether the port the code was
10 read from had an associated filename. Thanks to Martin
11 Grabmueller for providing this patch.
12
efa40607
DH
132001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
14
15 * fports.[ch] (scm_file_port_p): New primitive.
16
a98bddfd
DH
172001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
18
19 * tags.h (scm_tc16_fport, scm_tc16_strport, scm_tc16_sfport):
20 These are now defined in fports.c, strports.c and vports.c.
21
22 * fports.[ch] (scm_tc16_fport), strports.c (scm_tc16_strport),
23 vports.c (scm_tc16_sfport): Made variables (were macros defined in
24 tags.h).
25
26 fports.c (scm_make_fptob), strports.c (scm_make_stptob), vports.c
27 (scm_make_sfptob): Made static. These return a type code now.
28
29 fports.c (scm_init_fports), strports.c (scm_init_strports),
30 vports.c (scm_init_vports): Create the corresponding port types.
31
32 * fports.h (SCM_FPORTP, SCM_OPFPORTP, SCM_OPINFPORTP,
33 SCM_OPOUTFPORTP): Redefined in terms of scm_tc16_fport.
34
35 * init.c (scm_init_guile_1): Make sure strports are initialized
36 before gdbint.
37
38 * ports.[ch] (scm_make_port_type): Changed the return type to
39 scm_bits_t.
40
41 * ports.c (scm_ports_prehistory): Don't create any port types
42 here.
43
44 * posix.c (scm_ttyname): Use SCM_FPORTP instead of comparing
45 against scm_tc16_fport directly.
46
0419a528
DH
472001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
48
49 * srcprop.c (scm_set_source_property_x): Fix to handle
50 (set-source-property! <obj> 'copy <datum>) correctly.
51
6d36532c
GH
522001-01-24 Gary Houston <ghouston@arglist.com>
53
54 * filesys.c (scm_link): docstring fix.
55 * fports.h (scm_setfileno): obsolete declaration removed.
56 * posix.c: bogus popen declaration removed.
57
58 * rdelim.c: new file, split from ioext.c.
59 * rdelim.h: new file, split from ioext.h
60 * Makefile.am: add rdelim.c and related files.
61 * init.c: call scm_init_rdelim. include rdelim.h.
62
3ba5a6c2
DH
632001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
64
65 This patch was sent by Martin Grabmueller and makes sure that
66 parameter errors are reported correctly by the lexicographic
67 ordering predicates.
68
69 * strorder.c (string_less_p, string_ci_less_p): New functions.
70
71 (scm_string_less_p, scm_string_ci_less_p): Extracted the core
72 functionality into string_less_p, string_ci_less_p respectively.
73 The remaining code is just a wrapper to do the parameter
74 checking.
75
76 (scm_string_leq_p, scm_string_gr_p, scm_string_geq_p): Check the
77 parameters and call string_less_p instead of scm_string_less_p.
78
79 (scm_string_ci_leq_p, scm_string_ci_gr_p, scm_string_ci_geq_p):
80 Check the parameters and call string_less_ci_p instead of
81 scm_string_ci_less_p.
82
e40a4095
DH
832001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
84
ed6a2db9
DH
85 This patch modifies scm_display_error to perform parameter
86 checking. Thanks to Neil Jerram for the bug report.
87
e40a4095
DH
88 * backtrace.[ch] (scm_i_display_error): New function.
89
90 * backtrace.c (scm_display_error): Added parameter check and
91 extracted the core functionality into function
92 scm_i_display_error.
93
94 * throw.c (handler_message): Call scm_i_display_error to display
95 the error message.
96
f1e06a96
MD
972001-01-23 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
98
99 * eval.c (SCM_APPLY): Added # args check for application of
100 procedures with arity 3. (Thanks to Anders Holst.)
101
30ea841d
DH
1022001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
103
104 * filesys.h (SCM_DIR_FLAG_OPEN, SCM_DIR_OPEN_P): Added.
105
106 (SCM_OPDIRP): Deprecated.
107
108 * filesys.c (scm_opendir): Use SCM_DIR_FLAG_OPEN instead of
109 SCM_OPN.
110
111 (scm_readdir, scm_rewinddir): Don't use SCM_VALIDATE_OPDIR.
112 Instead, give an explicit error message in case the directory is
113 closed.
114
115 (scm_closedir, scm_dir_print): Rewritten to use SCM_DIR_OPEN_P
116 instead of SCM_OPENP and SCM_CLOSEDP.
117
118 * validate.h (SCM_VALIDATE_OPDIR): Deprecated.
119
312ae976
DH
1202001-01-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
121
122 * eval.c (inner_eval, scm_eval): Move all real functionality into
123 inner_eval. Avoid to copy the expression twice by inlining some
124 code from scm_i_eval.
125
4567ed78
DH
1262001-01-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
127
128 * eval.c (scm_m_case): The 'else' clause of a 'case' statement
129 now has to be the last clause, as required by R5RS. Thanks to
130 Martin Grabmueller for the patch.
131
10288a09
GH
1322001-01-18 Gary Houston <ghouston@arglist.com>
133
134 * ioext.c: further simplify scm_read_string_x_partial by defining
135 a macro SCM_EBLOCK.
136
8f379a8f
DH
1372001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
138
139 * gh_data.c (gh_ints2scm): Simplified using SCM_FIXABLE.
140
5c75b29f
DH
1412001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
142
143 * __scm.h: Added comment about architecture and compiler
144 properties that are required by guile.
145
146 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
147 SCM_MOST_NEGATIVE_FIXNUM): Moved to numbers.h.
148
149 (SCM_CHAR_BIT, SCM_LONG_BIT): Moved here from numbers.h.
150
151 * numbers.h (SCM_CHAR_BIT, SCM_LONG_BIT): Moved to __scm.h.
152
153 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
154 SCM_MOST_NEGATIVE_FIXNUM): Moved here from __scm.h.
155
ac0c002c
DH
1562001-01-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
157
158 * __scm.h (SCM_FIXNUM_BIT): Added. The name is chosen in analogy
159 to the names in limits.h.
160
161 * numbers.c (abs_most_negative_fixnum): Added.
162
163 (scm_quotient, scm_remainder): Fixed the fixnum-min / (abs
164 fixnum-min) special case.
165
166 (scm_big_and): Fix for negative first parameter.
167
168 (scm_bit_extract): Fix for fixnum paramters.
169 Thanks to Rob Browning for the bug report.
170
171 (scm_init_numbers): Initialize abs_most_negative_fixnum.
172
debe0dc2
DH
1732001-01-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
174
175 * symbols.c (scm_symbol_bound_p): Fixed comment.
176 Thanks to Chris Cramer.
177
8a39e3fc
DH
1782001-01-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
179
180 * smob.[ch] (scm_make_smob_type): Return type is scm_bits_t now.
181 Thanks to Bill Schottstaedt.
182
322ec19d
ML
1832001-01-11 Michael Livshin <mlivshin@bigfoot.com>
184
185