* configure.in: check whether localtime caches TZ. copied from
[bpt/guile.git] / libguile / ChangeLog
1 2000-01-09 Gary Houston <ghouston@arglist.com>
2
3 * These changes should make it unnecessary to call tzset from
4 Scheme after modifying the TZ environment variable, even if the
5 system date facilities cache the value.
6 * stime.c (setzone, scm_localtime): added comments.
7 (tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
8 (setzone): don't call tzset.
9 (restorezone): call tzset only if HAVE_TZSET is defined.
10 (scm_tzset): don't define if HAVE_TZSET not defined. Change the
11 doc string to indicate that this procedure isn't likely to do
12 anything useful.
13 (scm_localtime, scm_strftime, scm_mktime): call tzset if
14 LOCALTIME_CACHE is defined.
15
16 2000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
17
18 * posix.c (scm_sync): Return SCM_UNSPECIFIED.
19
20 2000-01-09 Gary Houston <ghouston@arglist.com>
21
22 * eval.c: define scm_unbound_variable_key ('unbound-variable).
23 scm_lookupcar1: throw an error with key 'unbound-variable instead
24 of 'misc-error when an unbound variable is encountered.
25
26 * filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
27 scm_symlink, scm_readlink, scm_lstat),
28 posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
29 scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
30 scm_sync),
31 simpos.c (scm_system),
32 stime.c (scm_times, scm_strptime):
33 move the HAVE_XXX feature tests out of the procedure bodies.
34 don't use SCM_SYSMISSING.
35 scm_validate.h (SCM_SYSMISSING): removed.
36 error.h, error.c (scm_sysmissing): comment that this is deprecated.
37 see ChangeLog entry for 1999-12-28.
38
39 Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
40
41 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
42
43 Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
44
45 * backtrace.c: Fix spelling typo in a comment.
46
47 * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
48 text. Reformatted some of the expansions.
49
50 Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
51
52 * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
53 report the position of the argument.
54
55 * error.h, error.c (scm_out_of_range_pos): Added this function to
56 take extra "pos" argument, the position number of the errant
57 argument.
58
59 * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
60
61 * snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
62 and SCM_SNARFING. Also put the %%% in the SCM_INIT since Mikael
63 prefers that and I'm reasonably indifferent.
64
65 Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
66
67 * snarf.h: Factor out differences between C++ and non-C++ into
68 SCM_FUNC_CAST_ARBITRARY_ARGS macro. Modify all the snarf macro
69 definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
70 Mikael's macros, below, but changed names and SCM_SNARFING no
71 longer expands to include %%% -- that must appear in the argument
72 so that the token appears at the call-site as a reminder).
73
74 2000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
75
76 * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
77 snarf macro definitions.
78
79 2000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
80
81 * chars.c (scm_integer_to_char): Use Greg's nice
82 SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
83 adherence to R5RS.
84
85 Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
86
87 * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
88
89 Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
90
91 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
92 instead of GUILE_PROC.
93
94 Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
95
96 * alist.c: Do not report mismatch errors on some uses of `tmp' (do
97 this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
98 macro call.
99
100 Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
101
102 * scm_validate.h: Remove some redundant NIMP tests.
103
104 * alist.c: minimize scope of the tmp variables, and initialize
105 them when declared. The strange SCM_NIMP tests are replaced by
106 SCM_CONSP tests that more closely reflect the intended semantics.
107 However, we don't get a performance penalty here, because the
108 SCM_CONSP test was performed by the ALISTCELL test anyway. * The
109 extremely ugly use of ASRTGO macros was removed: The calls to
110 ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
111 label parameter that only exists when SCM_RECKLESS is not defined.
112 This works, because ASRTGO itself is defined in a way that it only
113 makes use of the label parameter if SCM_RECKLESS is not defined
114 (shudder!). Does guile make at all use of the possibility to
115 define SCM_RECKLESS? * Codesize is likely to be reduced, since
116 instead of two calls to SCM_ASSERT performed by the ALISTCELL test
117 we now only get one test.
118
119 * list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate. Also use
120 SCM_NULLP instead of SCM_IMP. Drop use of "register" keyword on
121 some variables in `list?'. Fix `reverse' and `reverse!'
122 primitives to handle improper lists better.
123
124 Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
125
126 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
127 macros and SCM_DEFINE macros to match GNU coding standards.
128
129 Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
130
131 * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
132
133 Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
134
135 * *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM for
136 better consistency with the names of other SCM_VALIDATE_ macros
137 and better conformance to guile naming policy.
138
139 Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
140
141 * ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
142 SCM_VALIDATE instead of 1 to avoid a check on the argument (since
143 it's not the actual name of the formal).
144
145 * guile-snarf.awk.in: Do argument/number mismatch checking and
146 print warnings in an Emacs compile-mode parseable format.
147
148 * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
149 SCM_OUTOFRANGE as 3rd argument.
150
151 * random.c: Fix argument/number mismatch (that I introduced :-( ).
152
153 * __scm.h: Do not #define SCM_ARG* when snarfing;
154 lets us distinguish between 1 and SCM_ARG1 when snarfing as only
155 the former (using the number) requires the argument to match the
156 formal in the current argument snarfing check.
157
158 * snarf.h: Give new definition of SCM_ASSERT when in
159 snarfing mode to output a lexically-identifiable sequence that the
160 guile-snarf.awk script uses to verify argument/position matching.
161
162 * ramap.c: Remove extraneous #undef FUNC_NAME.
163
164 Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
165
166 * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
167 current version of the same functionality; it writes the .x output
168 to stdout instead of directly into the file.
169
170 Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
171
172 * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
173 posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now
174 redundant with the safer macros. Patch from Dirk Hermann applied
175 by hand. Thanks Dirk!
176
177 * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
178 uses in random.c.
179
180 * ramap.c: whitespace change.
181
182 Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
183
184 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
185 removals from Dirk Hermann.
186
187 * alist.c: Rename formals to match the parameter names in the
188 documentation, updates to documentation. Thanks Dirk Hermann!
189
190 2000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
191
192 * eval.c (SCM_CEVAL): Reverse order of
193 scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
194 (Thanks to Brad Knotwell.)
195
196 Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
197
198 * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
199 allocated cell.
200
201 * pairs.h: Added a comment about the need for the SCM_SETCAR in
202 SCM_NEWCELL macro.
203
204 Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
205
206 * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
207 SCM_NIMP tests that were redundant are now eliminated. Patches
208 from Dirk Hermann applied by hand.
209
210 The ChangeLog continues in the file: "ChangeLog-1996-1999"