* posix.c (scm_mknod): Escape " occuring inside docstring.
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
56cfe22b
MD
12000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2
3 * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
4 evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
5 keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
6 objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
7 ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
8 stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
9 symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
10 weaks.c: Converted docstrings to ANSI C format.
11
12 * filesys.c (scm_chmod), simpos.c (scm_system), version
13 (scm_version), vports (scm_make_soft_port): Escape " occuring
14 inside docstring.
15
fcb1720f
GB
16Mon Jan 17 11:41:22 2000 Greg J. Badros <gjb@cs.washington.edu>
17
18 * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
19 SCM_VALIDATE_LONG_COPY
20
21 * numbers.c: Use SCM_VALIDATE_ULONG_COPY, instead of
22 SCM_VALIDATE_INUM_COPY to let bigger numbers be used. Rename a
23 couple of formal arguments (and fix their uses) to make arguments
24 match the documentation.
25
b9af3d0e
MS
262000-01-14 <mstachow@alum.mit.edu>
27
28 * Makefile.am: Augment path when running guile-doc-snarf so
29 guile-func-name-check is found.
30
153511a7
GB
31Fri Jan 14 09:34:55 2000 Greg J. Badros <gjb@cs.washington.edu>
32
33 * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
34 def, not SCM_MAKINUM(def); thanks Janis Bzerins!
35
59d5245f
GB
36Wed Jan 12 00:06:53 2000 Greg J. Badros <gjb@cs.washington.edu>
37
38 * net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's
39 the way guile-1.3.4 worked, but #if 0 out the version using
40 SCM_VALIDATE_INUM_COPY for stricter testing.
41
95aec69f
GB
42Tue Jan 11 18:24:18 2000 Greg J. Badros <gjb@cs.washington.edu>
43
44 * guile-doc-snarf.in: Use new $fullfilename for running
45 guile-func-name-check, and put "$fullfilename" and "$filename" in
46 quotes at uses to make sure re-splitting on whitespace does not
47 occur (so filenames w/ embedded whitespace would work okay, though
48 I sure hope we never have to deal with that! :-) ). Thanks to
49 Mikael for pointing out the source_dir != build_dir was broken.
50
b7ac2837
GB
51Tue Jan 11 17:42:40 2000 Greg J. Badros <gjb@cs.washington.edu>
52
53 * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
54 SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num. Added
55 SCM_COERCE_ROSTRING macro. Added SCM_VALIDATE_NONEMPTYLIST
56 macro. Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
57 variants.
58
59 * ports.c (scm_port_closed_p): Validate that the arg is a PORT,
60 then return whether it's an open port (was validating that it was
61 an open port -- this was a bug I introduced back in December, but
62 my careful reading of diffs caught it).
63
64 * numbers.c: Recombine the two conditional-compilation paths for
65 all the log* primitives -- they were split based on #ifndef
66 scm_long2num; factored out a SCM_LOGOP_RETURN macro, and fixed
67 some bugs and inconsistencies in the two sets of implementations.
68 (scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!
69
70 * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
71 SCM_VALIDATE_INUM_COPY once where it should've been used.
72
73 * fluids.c (scm_internal_with_fluids): Use
74 SCM_VALIDATE_LIST_COPYLEN.
75
76 * filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
77 this is questionable as it relaxes type safety, but other changes
78 were useful and all SCM_NUM2LONG's should probably be
79 revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.
80
81 * evalext.c: line-break change on 1 line.
82
83 * eval.c (nconc2last): Takes a non-empty list as its first
84 argument, not just a list.
85
86 * dynl.c: Use new SCM_COERCE_ROSTRING macro.
87
88Tue Jan 11 15:44:23 2000 Greg J. Badros <gjb@cs.washington.edu>
89
90 * dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
91 net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
92 where possible.
93
94 * symbols.c (scm_sysintern0): Fixed the function name in a
95 scm_misc_error invocation.
96
97 * print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
98 use scm_return_first to ward off latent GC bug that Mikael caught.
99
100 * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
101 used before but should've been.
102
d61f6b02
MD
1032000-01-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
104
105 * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
106 SCM_FUNC_CAST_ARBITRARY_ARGS.
107
88423ab1
GB
108Tue Jan 11 13:44:07 2000 Greg J. Badros <gjb@cs.washington.edu>
109
110 * guile-func-name-check.in: Added this script to statically check
111 #define FUNC_NAME, #undef FUNC_NAME in the source.
112
113 * sort.c, posix.c: Fix #undef FUNC_NAME lines to not have trailing
114 redundant comment, semicolon; caught by new guile-func-name-check
115 script.
116
117 * debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
118 Caught by new guile-func-name-check-script.
119
120 * Makefile.am: Added guile-func-name-check to bin_SCRIPTS
121
122 * ramap.c: Fix #if 0'd out code to be syntactically acceptable to
123 guile-func-name-check.
124
125 * guile-doc-snarf.in: Run guile-func-name-check on the file before
126 doing the snarf.
127
7f15e635
GB
128Tue Jan 11 11:31:10 2000 Greg J. Badros <gjb@cs.washington.edu>
129
130 * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
131 port function take const void*, not void*.
132
bf121b59
GB
133Tue Jan 11 11:18:07 2000 Greg J. Badros <gjb@cs.washington.edu>
134
135 * scm_validate.h, chars.c, ports.c, print.c, read.c, strings.c,
136 strop.c: Use SCM_VALIDATE_ICHR, SCM_VALIDATE_ICHR_COPY instead of
137 SCM_VALIDATE_CHAR, SCM_VALIDATE_CHAR_COPY. Change made for
138 consistency with the other macros dealing with immediate
139 characters. (Similar to INT -> INUM change a week or so ago).
140
7965d98f
GB
141Tue Jan 11 10:41:46 2000 Greg J. Badros <gjb@cs.washington.edu>
142
143 * dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,
144 net_db.c, read.c, socket.c: Update error messages to use ~A for
145 %s, ~S for %S to work with new `simple-format' format and be
146 standardized better.
147
148 * print.h, print.c (scm_simple_format): Added `simple-format'
149 primitive. It's the old scm_display_error, with ARGS now a rest
150 parameter, and the destination first instead of last (and a couple
151 new capabilities inspired by `format' -- #t as destination means
152 current-output-port, #f means return the formatted text as a
153 string.
154
155 * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.
156
157 * backtrace.c (scm_display_error_message): Rewrote to use
158 scm_simple_format() procedure.
159
160 * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
161
f73d2411
MV
1622000-01-09 Marius Vollmer <mvo@zagadka.ping.de>
163
164 Finally applied the libltdl patch from Thomas Tanner, with slight
165 modifications.
166
167 * DYNAMIC-LINKING: Removed because it is obsolete.
168 * dynl.c: Use ANSI prototypes.
169 (sysdep_dynl_link): Use lt_dlopenext instead of lt_dlopen.
170 * scmconfig.h.in: Do not change, as it is automatically generated.
171
172 1999-07-25 Thomas Tanner <tanner@ffii.org>
173
174 * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
175 (obsolete)
176 * Makefile.am: likewise, add INCLTDL (libltdl headers) to
177 INCLUDES, set dlpreopened files in LDFLAGS, link libguile
178 against libltdl
179 * dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
180 * guile.c: register preloaded modules
181 * scmconfig.h.in: remove obsolete symbols
182
38c1d3c4
GH
1832000-01-09 Gary Houston <ghouston@arglist.com>
184
185 * These changes should make it unnecessary to call tzset from
186 Scheme after modifying the TZ environment variable, even if the
187 system date facilities cache the value.
188 * stime.c (setzone, scm_localtime): added comments.
189 (tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
190 (setzone): don't call tzset.
191 (restorezone): call tzset only if HAVE_TZSET is defined.
192 (scm_tzset): don't define if HAVE_TZSET not defined. Change the
193 doc string to indicate that this procedure isn't likely to do
194 anything useful.
195 (scm_localtime, scm_strftime, scm_mktime): call tzset if
196 LOCALTIME_CACHE is defined.
197
9359d657
MD
1982000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
199
200 * posix.c (scm_sync): Return SCM_UNSPECIFIED.
201
f25f761d
GH
2022000-01-09 Gary Houston <ghouston@arglist.com>
203
204 * eval.c: define scm_unbound_variable_key ('unbound-variable).
205 scm_lookupcar1: throw an error with key 'unbound-variable instead
206 of 'misc-error when an unbound variable is encountered.
207
208 * filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
209 scm_symlink, scm_readlink, scm_lstat),
210 posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
211 scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
212 scm_sync),
213 simpos.c (scm_system),
214 stime.c (scm_times, scm_strptime):
215 move the HAVE_XXX feature tests out of the procedure bodies.
216 don't use SCM_SYSMISSING.
217 scm_validate.h (SCM_SYSMISSING): removed.
218 error.h, error.c (scm_sysmissing): comment that this is deprecated.
219 see ChangeLog entry for 1999-12-28.
220
a4dd2611
GB
221Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
222
223 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
224
225Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
226
227 * backtrace.c: Fix spelling typo in a comment.
228
229 * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
230 text. Reformatted some of the expansions.
231
5ac36451
GB
232Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
233
234 * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
235 report the position of the argument.
236
237 * error.h, error.c (scm_out_of_range_pos): Added this function to
238 take extra "pos" argument, the position number of the errant
239 argument.
240
241 * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
242
243 * snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
244 and SCM_SNARFING. Also put the %%% in the SCM_INIT since Mikael
245 prefers that and I'm reasonably indifferent.
246
247Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
248
249 * snarf.h: Factor out differences between C++ and non-C++ into
250 SCM_FUNC_CAST_ARBITRARY_ARGS macro. Modify all the snarf macro
251 definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
252 Mikael's macros, below, but changed names and SCM_SNARFING no
253 longer expands to include %%% -- that must appear in the argument
254 so that the token appears at the call-site as a reminder).
255
088bb1d4
MD
2562000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
257
258 * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
259 snarf macro definitions.
260
636480e6
MD
2612000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
262
263 * chars.c (scm_integer_to_char): Use Greg's nice
264 SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
265 adherence to R5RS.
266
7c5628e2
GB
267Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
268
269 * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
270
2cc0f8cb
GB
271Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
272
273 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
274 instead of GUILE_PROC.
275
276Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
277
278 * alist.c: Do not report mismatch errors on some uses of `tmp' (do
279 this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
280 macro call.
281
9179dcdd
GB
282Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
283
284 * scm_validate.h: Remove some redundant NIMP tests.
285
286 * alist.c: minimize scope of the tmp variables, and initialize
287 them when declared. The strange SCM_NIMP tests are replaced by
288 SCM_CONSP tests that more closely reflect the intended semantics.
289 However, we don't get a performance penalty here, because the
290 SCM_CONSP test was performed by the ALISTCELL test anyway. * The
291 extremely ugly use of ASRTGO macros was removed: The calls to
292 ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
293 label parameter that only exists when SCM_RECKLESS is not defined.
294 This works, because ASRTGO itself is defined in a way that it only
295 makes use of the label parameter if SCM_RECKLESS is not defined
296 (shudder!). Does guile make at all use of the possibility to
297 define SCM_RECKLESS? * Codesize is likely to be reduced, since
298 instead of two calls to SCM_ASSERT performed by the ALISTCELL test
299 we now only get one test.
300
301 * list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate. Also use
302 SCM_NULLP instead of SCM_IMP. Drop use of "register" keyword on
303 some variables in `list?'. Fix `reverse' and `reverse!'
304 primitives to handle improper lists better.
305
15b33280
GB
306Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
307
308 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
309 macros and SCM_DEFINE macros to match GNU coding standards.
310
ca8cd130
GB
311Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
312
313 * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
314
fb764465
GB
315Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
316
317 * *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM for
318 better consistency with the names of other SCM_VALIDATE_ macros
319 and better conformance to guile naming policy.
320
321Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
322
323 * ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
324 SCM_VALIDATE instead of 1 to avoid a check on the argument (since
325 it's not the actual name of the formal).
1e484823
GB
326
327 * guile-snarf.awk.in: Do argument/number mismatch checking and
328 print warnings in an Emacs compile-mode parseable format.
329
330 * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
331 SCM_OUTOFRANGE as 3rd argument.
332
333 * random.c: Fix argument/number mismatch (that I introduced :-( ).
334
335 * __scm.h: Do not #define SCM_ARG* when snarfing;
336 lets us distinguish between 1 and SCM_ARG1 when snarfing as only
337 the former (using the number) requires the argument to match the
338 formal in the current argument snarfing check.
339
340 * snarf.h: Give new definition of SCM_ASSERT when in
341 snarfing mode to output a lexically-identifiable sequence that the
342 guile-snarf.awk script uses to verify argument/position matching.
343
344 * ramap.c: Remove extraneous #undef FUNC_NAME.
345
53fc4636
GB
346Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
347
348 * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
349 current version of the same functionality; it writes the .x output
350 to stdout instead of directly into the file.
351
352Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
353
354 * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
355 posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now
356 redundant with the safer macros. Patch from Dirk Hermann applied
357 by hand. Thanks Dirk!
358
359 * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
360 uses in random.c.
361
362 * ramap.c: whitespace change.
363
3b5345d9
GB
364Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
365
366 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
367 removals from Dirk Hermann.
368
369 * alist.c: Rename formals to match the parameter names in the
370 documentation, updates to documentation. Thanks Dirk Hermann!
371
169aec65
MD
3722000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
373
db62436e
MD
374 * eval.c (SCM_CEVAL): Reverse order of
375 scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
376 (Thanks to Brad Knotwell.)
169aec65 377
da43d822
GB
378Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
379
380 * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
381 allocated cell.
382
383 * pairs.h: Added a comment about the need for the SCM_SETCAR in
384 SCM_NEWCELL macro.
385
386Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
387
388 * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
389 SCM_NIMP tests that were redundant are now eliminated. Patches
390 from Dirk Hermann applied by hand.
391
339999c7 392The ChangeLog continues in the file: "ChangeLog-1996-1999"