1 |
2003-07-18 Paul D. Smith <psmith@gnu.org> |
2 |
|
3 |
* dir.c (directory_contents_hash_1, directory_contents_hash_1) |
4 |
[WINDOWS32]: Initialize hash. |
5 |
|
6 |
2003-04-30 Paul D. Smith <psmith@gnu.org> |
7 |
|
8 |
* build.template: Make some changes to maybe allow this script to |
9 |
work on DOS/Windows/OS2 systems. Suggested by Andreas Buening. |
10 |
|
11 |
* README.OS2.template: New file for OS/2 support. Original |
12 |
contributed by Andreas Buening. |
13 |
* configure.in: Invoke new pds_AC_DOS_PATHS macro to test for |
14 |
DOS-style paths. |
15 |
|
16 |
2003-04-19 Paul D. Smith <psmith@gnu.org> |
17 |
|
18 |
Fix bug #1405: allow a target to match multiple pattern-specific |
19 |
variables. |
20 |
|
21 |
* rule.c (create_pattern_var, lookup_pattern_var): Move these to |
22 |
variable.c, where they've always belonged. |
23 |
* rule.h: Move the prototypes and struct pattern_var as well. |
24 |
* variable.c (initialize_file_variables): Invoke |
25 |
lookup_pattern_var() in a loop, until no more matches are found. |
26 |
If a match is found, create a new variable set for the target's |
27 |
pattern variables. Then merge the contents of each matching |
28 |
pattern variable set into the target's pattern variable set. |
29 |
(lookup_pattern_var): Change this function to be usable |
30 |
in a loop. It takes a starting position: if NULL, start at the |
31 |
beginning; if non-NULL, start with the pattern variable after that |
32 |
position, and return the next matching pattern. |
33 |
(create_pattern_var): Create a unique instance of |
34 |
pattern-specific variables for every definition in the makefile. |
35 |
Don't combine the same pattern together. This allows us to |
36 |
process the variable handling properly even when the same pattern |
37 |
is used multiple times. |
38 |
(parse_variable_definition): New function: break out the parsing |
39 |
of a variable definition line from try_variable_definition. |
40 |
(try_variable_definition): Call parse_variable_definition to |
41 |
parse. |
42 |
(print_variable_data_base): Print out pattern-specific variables. |
43 |
* variable.h (struct variable): Remember when a variable is |
44 |
conditional. Also remember its flavor. |
45 |
(struct pattern_var): Instead of keeping a variable set, we just |
46 |
keep a single variable for each pattern. |
47 |
* read.c (record_target_var): Each pattern variable contains only a |
48 |
single variable, not a set, so create it properly. |
49 |
* doc/make.texi (Pattern-specific): Document the new behavior. |
50 |
|
51 |
2003-04-17 Paul D. Smith <psmith@gnu.org> |
52 |
|
53 |
* dir.c (file_exists_p) [VMS]: Patch provided with Bug #3018 by |
54 |
Jean-Pierre Portier <portierjp2@free.fr>. I don't understand the |
55 |
file/directory naming rules for VMS so I can't tell whether this |
56 |
is correct or not. |
57 |
|
58 |
2003-04-09 Paul D. Smith <psmith@gnu.org> |
59 |
|
60 |
* configure.in (HAVE_DOS_PATHS): Define this on systems that need |
61 |
DOS-style pathnames: backslash separators and drive specifiers. |
62 |
|
63 |
2003-03-28 Paul D. Smith <psmith@gnu.org> |
64 |
|
65 |
* file.c (snap_deps): If .SECONDARY with no targets is given, set |
66 |
the intermediate flag on all targets. Fixes bug #2515. |
67 |
|
68 |
2003-03-24 Paul D. Smith <psmith@gnu.org> |
69 |
|
70 |
* configure.in, Makefile.am, glob/Makefile.am, doc/Makefile.am: |
71 |
Upgrade to autoconf 2.57 and automake 1.7.3. |
72 |
|
73 |
* job.c: More OS/2 changes from Andreas Buening. |
74 |
|
75 |
* file.c (print_file): Fix variable initialization. |
76 |
Fixes bug #2892. |
77 |
|
78 |
* remake.c (notice_finished_file): |
79 |
|
80 |
* make.h (ENULLLOOP): Set errno = 0 before invoking the command; |
81 |
some calls (like readdir()) return NULL in valid situations |
82 |
without resetting errno. Fixes bug #2846. |
83 |
|
84 |
2003-02-25 Paul D. Smith <psmith@gnu.org> |
85 |
|
86 |
Port to OS/2 (__EMX__) by Andreas Buening <andreas.buening@nexgo.de>. |
87 |
|
88 |
* job.c (_is_unixy_shell) [OS/2]: New function. |
89 |
Set default shell to /bin/sh. |
90 |
(reap_children): Close the job_rfd pipe here since we don't use a |
91 |
SIGCHLD handler. |
92 |
(set_child_handler_action_flags): define this to empty on OS/2. |
93 |
(start_job_command): Close the jobserver pipe and use |
94 |
child_execute_job() instead of fork/exec. |
95 |
(child_execute_job): Rewrite to handle stdin/stdout FDs and spawn |
96 |
rather than exec'ing, then reconfigure stdin/stdout. |
97 |
(exec_command): Rewrite to use spawn instead of exec. Return the |
98 |
PID of the child. |
99 |
|
100 |
* main.c (main) [OS/2]: Call initialize_main(). Handle argv[0] as |
101 |
in DOS. Handle the TEMP environment variable as in DOS. Don't |
102 |
use a SIGCHLD handler on OS/2. Choose a shell as in DOS. Don't |
103 |
use -j in DOS mode. Use child_execute_job() instead of |
104 |
exec_command(). |
105 |
|
106 |
* function.c (func_shell) [OS/2]: Can't use fork/exec on OS/2: use |
107 |
spawn() instead. |
108 |
|
109 |
* job.h [OS/2]: Move CLOSE_ON_EXEC here from job.c. Add |
110 |
prototypes that return values. |
111 |
|
112 |
* remake.c (f_mtime) [OS/2]: Handle FAT timestamp offsets for OS/2. |
113 |
|
114 |
* read.c (readline) [OS/2]: Don't handle CRLF specially on OS/2. |
115 |
* default.c (default_suffixes) [OS/2]: Set proper default suffixes |
116 |
for OS/2. |
117 |
* vpath.c (construct_vpath_list) [OS/2]: Handle OS/2 paths like |
118 |
DOS paths. |
119 |
|
120 |
2003-02-24 Paul D. Smith <psmith@gnu.org> |
121 |
|
122 |
* default.c [VMS]: New default rules for .cxx -> .obj compiles. |
123 |
* job.c (child_execute_job) [VMS]: New code for handling spawn(). |
124 |
(child_execute_job) [VMS]: Handle error status properly. |
125 |
Patches provided by Hartmut Becker <Hartmut.Becker@compaq.com>. |
126 |
|
127 |
* function.c (func_shell): Use EINTRLOOP() while reading from the |
128 |
subshell pipe (Fixes bug #2502). |
129 |
* job.c (free_child): Use EINTRLOOP() while writing tokens to the |
130 |
jobserver pipe. |
131 |
* main.c (main): Ditto. |
132 |
|
133 |
2003-01-30 Paul D. Smith <psmith@gnu.org> |
134 |
|
135 |
* read.c (eval): eval() was not fully reentrant, because the |
136 |
collapsed buffer was static. Change it to be an automatic |
137 |
variable so that eval() can be invoked recursively. |
138 |
Fixes bug # 2238. |
139 |
(eval): Apply patch # 1022: fix memory reference error on long |
140 |
target-specific variable lines. |
141 |
Patch provided by Steve Brown <Steve.Brown@macquarie.com>. |
142 |
|
143 |
* function.c (check_numeric): Combine the is_numeric() function |
144 |
into this function, since it's only called from one place. |
145 |
Constify this function. Have it print the incorrect string in the |
146 |
error message. Fixes bug #2407. |
147 |
(strip_whitespace): Constify. |
148 |
(func_if): Constify. |
149 |
* expand.c (expand_argument): Constify. |
150 |
|
151 |
2003-01-29 Paul D. Smith <psmith@gnu.org> |
152 |
|
153 |
Fix bug # 2169, also reported by other people on various systems. |
154 |
|
155 |
* make.h: Some systems, such as Solaris and PTX, do not fully |
156 |
implement POSIX-compliant SA_RESTART functionality; important |
157 |
system calls like stat() and readdir() can still fail with EINTR |
158 |
even if SA_RESTART has been set on the signal handler. So, |
159 |
introduce macros EINTRLOOP() and ENULLLOOP() which can loop on |
160 |
EINTR for system calls which return -1 or 0 (NULL), respectively, |
161 |
on error. |
162 |
Also, remove the old atomic_stat()/atomic_readdir() and |
163 |
HAVE_BROKEN_RESTART handling. |
164 |
|
165 |
* configure.in: Remove setting of HAVE_BROKEN_RESTART. |
166 |
|
167 |
* arscan.c (ar_member_touch): Use EINTRLOOP() to wrap fstat(). |
168 |
* remake.c (touch_file): Ditto. |
169 |
|
170 |
* commands.c (delete_target): Use EINTRLOOP() to wrap stat(). |
171 |
* read.c (construct_include_path): Ditto. |
172 |
* remake.c (name_mtime): Ditto. |
173 |
* vpath.c (selective_vpath_search): Ditto. |
174 |
* dir.c (find_directory): Ditto. |
175 |
(local_stat): Ditto. |
176 |
(find_directory): Use ENULLLOOP() to wrap opendir(). |
177 |
(dir_contents_file_exists_p): Use ENULLLOOP() to wrap readdir(). |
178 |
|
179 |
* misc.c: Remove HAVE_BROKEN_RESTART, atomic_stat(), and |
180 |
atomic_readdir() handling. |
181 |
|
182 |
2003-01-22 Paul D. Smith <psmith@gnu.org> |
183 |
|
184 |
* function.c (func_call): Fix Bug #1744. If we're inside a |
185 |
recursive invocation of $(call ...), mask any of the outer |
186 |
invocation's arguments that aren't used by this one, so that this |
187 |
invocation doesn't "inherit" them accidentally. |
188 |
|
189 |
2002-12-05 Paul D. Smith <psmith@gnu.org> |
190 |
|
191 |
* function.c (subst_expand): Valery Khamenia reported a |
192 |
pathological performance hit when doing substitutions on very |
193 |
large values with lots of words: turns out we were invoking |
194 |
strlen() a ridiculous number of times. Instead of having each |
195 |
call to sindex() call strlen() again, keep track of how much of |
196 |
the text we've seen and pass the length to sindex(). |
197 |
|
198 |
2002-11-19 Paul D. Smith <psmith@gnu.org> |
199 |
|
200 |
* README.cvs, configure.in: Upgrade to require autoconf 2.56. |
201 |
|
202 |
|
203 |
2002-11-16 Paul D. Smith <psmith@gnu.org> |
204 |
|
205 |
* NMakefile.template (OBJS): Add hash.c object file. |
206 |
* SMakefile.template (srcs): Ditto. |
207 |
* Makefile.ami (objs): Ditto. |
208 |
* build_w32.bat: Ditto. |
209 |
|
210 |
* Makefile.DOS.template: Remove extra dependencies. |
211 |
|
212 |
2002-10-25 Paul D. Smith <psmith@gnu.org> |
213 |
|
214 |
* expand.c (install_variable_buffer): New function. Install a new |
215 |
variable_buffer context and return the previous one. |
216 |
(restore_variable_buffer): New function. Free the current |
217 |
variable_buffer context and put a previously saved one back. |
218 |
* variable.h: Prototypes for {install,restore}_variable_buffer. |
219 |
* function.c (func_eval): Push a new variable_buffer context |
220 |
before we eval, then restore the old one when we're done. |
221 |
Fixes Bug #1517. |
222 |
|
223 |
* read.c (install_conditionals): New function. Install a new |
224 |
conditional context and return the previous one. |
225 |
(restore_conditionals): New function. Free the current |
226 |
conditional context and put a previously saved one back. |
227 |
(eval): Use the {install,restore}_conditionals for "include" |
228 |
handling. |
229 |
(eval_buffer): Use {install,restore}_conditionals to preserve the |
230 |
present conditional state before we evaluate the buffer. |
231 |
Fixes Bug #1516. |
232 |
|
233 |
* doc/make.texi (Quick Reference): Add references to $(eval ...) |
234 |
and $(value ...). |
235 |
(Recursion): Add a variable index entry for CURDIR. |
236 |
|
237 |
* README.cvs: Update to appropriate versions. |
238 |
* Makefile.am (nodist_loadavg_SOURCES): automake gurus point out I |
239 |
don't need to copy loadavg.c: automake is smart enough to create |
240 |
it for me. Still have a bug in automake related to ansi2knr tho. |
241 |
|
242 |
2002-10-14 Paul D. Smith <psmith@gnu.org> |
243 |
|
244 |
* remake.c (notice_finished_file): Only touch targets if they have |
245 |
at least one command (as per POSIX). Resolve Bug #1418. |
246 |
|
247 |
* *.c: Convert to using ANSI C-style function definitions. |
248 |
* Makefile.am: Enable the ansi2knr feature of automake. |
249 |
* configure.in: ditto. |
250 |
|
251 |
2002-10-13 Paul D. Smith <psmith@gnu.org> |
252 |
|
253 |
* commands.c (set_file_variables): Bug #1379: Don't use alloca() |
254 |
for automatic variable values like $^, etc. In the case of very |
255 |
large lists of prerequisites this causes problems. Instead reuse |
256 |
a static buffer (resizeable) for each variable. |
257 |
|
258 |
* read.c (eval): Fix Bug #1391: allow "export" keyword in |
259 |
target-specific variable definitions. Check for it and set an |
260 |
"exported" flag. |
261 |
(record_target_var): Set the export field to v_export if the |
262 |
"exported" flag is set. |
263 |
* doc/make.texi (Target-specific): Document the ability to use |
264 |
"export". |
265 |
|
266 |
* doc/make.texi: Change the name of the section on automatic |
267 |
variables from "Automatic" to "Automatic Variables". Added text |
268 |
clarifying the scope of automatic variables. |
269 |
|
270 |
2002-10-04 Paul D. Smith <psmith@gnu.org> |
271 |
|
272 |
* read.c (eval): Allow SysV $$@ variables to use {} braces as well |
273 |
as () braces. |
274 |
(record_files): Ditto. |
275 |
|
276 |
* expand.c (variable_expand_string): In $(A:x=y) expansion limit |
277 |
the search for the '=' to only within the enclosing parens. |
278 |
|
279 |
2002-10-03 Paul D. Smith <psmith@gnu.org> |
280 |
|
281 |
Version 3.80 released. |
282 |
|
283 |
* dir.c: Change hash functions to use K&R function definition style. |
284 |
* function.c: Ditto. |
285 |
* read.c: Ditto. |
286 |
* variable.c: Ditto. |
287 |
|
288 |
Update to automake 1.7. |
289 |
|
290 |
* Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7. |
291 |
(pdf): Remove this target as automake now provides one. |
292 |
|
293 |
* configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS. |
294 |
|
295 |
2002-09-30 Martin P.J. Zinser <zinser@decus.de> |
296 |
|
297 |
* makefile.com: Updates for GNU make 3.80. |
298 |
* makefile.vms: Ditto. |
299 |
|
300 |
2002-09-23 Paul D. Smith <psmith@gnu.org> |
301 |
|
302 |
* read.c (enum make_word_type): Remove w_comment. |
303 |
(get_next_mword): Don't treat comment characters as special; where |
304 |
this function is used we will never see a comment (it's stripped |
305 |
before we get here) and treating comments specially means that |
306 |
targets like "foo\#bar" aren't handled properly. |
307 |
|
308 |
2002-09-18 Paul D. Smith <psmith@gnu.org> |
309 |
|
310 |
* doc/make.texi (Bugs): Update with some info on Savannah, etc. |
311 |
|
312 |
* read.c (eval): Expansion of arguments to export/unexport was |
313 |
ignoring all arguments after the first one. Change the algorithm |
314 |
to expand the whole line once, then parse the results. |
315 |
|
316 |
2002-09-17 Paul D. Smith <psmith@gnu.org> |
317 |
|
318 |
Fix Bug #940 (plus another bug I found while looking at this): |
319 |
|
320 |
* read.c (record_target_var): enter_file() will add a new entry if |
321 |
it's a double-colon target: we don't want to do that in this |
322 |
situation. Invoke lookup_file() and only enter_file() if it does |
323 |
not already exist. If the file we get back is a double-colon then |
324 |
add this variable to the "root" double-colon target. |
325 |
|
326 |
* variable.c (initialize_file_variables): If this file is a |
327 |
double-colon target but is not the "root" target, then initialize |
328 |
the root and make the root's variable list the parent of our |
329 |
variable list. |
330 |
|
331 |
2002-09-13 Paul D. Smith <psmith@gnu.org> |
332 |
|
333 |
* doc/make.texi (MAKE Variable): Add some indexing for "+". |
334 |
|
335 |
* hash.c (round_up_2): Get rid of a warning. |
336 |
|
337 |
2002-09-12 Paul D. Smith <psmith@gnu.org> |
338 |
|
339 |
* Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake |
340 |
so it doesn't complain about getloadavg.c. |
341 |
|
342 |
* commands.c (set_file_variables): Make sure we always alloca() at |
343 |
least 1 character for the value of $? (for '\0'). |
344 |
|
345 |
2002-09-11 Paul D. Smith <psmith@gnu.org> |
346 |
|
347 |
* hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix |
348 |
macro to use RESULT instead of the incorrect _RESULT_. |
349 |
|
350 |
* make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat() |
351 |
and atomic_readdir(). We need to #include dirent.h to get this to |
352 |
work. |
353 |
* misc.c (atomic_readdir): Fix typos. |
354 |
|
355 |
2002-09-10 Paul D. Smith <psmith@gnu.org> |
356 |
|
357 |
* read.c (eval): Expand variable lists given to export and |
358 |
unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works. |
359 |
(conditional_line): Ditto for "ifdef". Fixes bug #103. |
360 |
|
361 |
* doc/make.texi (Variables/Recursion): Document this. |
362 |
(Conditional Syntax): And here. |
363 |
|
364 |
2002-09-09 Paul D. Smith <psmith@gnu.org> |
365 |
|
366 |
* configure.in: Check for memmove(). |
367 |
|
368 |
2002-09-07 Paul D. Smith <psmith@gnu.org> |
369 |
|
370 |
* configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems; |
371 |
Michael Sterrett <msterret@coat.com> reports that while it has |
372 |
SA_RESTART, it does not work properly. |
373 |
|
374 |
* misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function |
375 |
that invokes stat() and loops to do it again if it returns EINTR. |
376 |
(atomic_readdir): Ditto, with readdir(). |
377 |
|
378 |
* make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat() |
379 |
and readdir() to atomic_stat() and atomic_readdir(). |
380 |
|
381 |
2002-09-04 Paul D. Smith <psmith@gnu.org> |
382 |
|
383 |
* implicit.c (pattern_search): Daniel <barkalow@reputation.com> |
384 |
reports that GNU make sometimes doesn't recognize that targets can |
385 |
be made, when directories can be created as prerequisites. He |
386 |
reports that changing the order of predicates in the DEP->changed |
387 |
flag test so that lookup_file() is always performed, solves this |
388 |
problem. |
389 |
|
390 |
2002-08-08 Paul D. Smith <psmith@gnu.org> |
391 |
|
392 |
* configure.in: Require a newer version of gettext. |
393 |
|
394 |
* misc.c (perror_with_name): Translate the format string (for |
395 |
right-to-left language support). |
396 |
(pfatal_with_name): Ditto. |
397 |
|
398 |
* main.c: Create a static array of strings to store the usage |
399 |
text. This is done to facilitate translations. |
400 |
(struct command_switch): Remove argdesc and description fields. |
401 |
(switches): Remove values for obsolete fields. |
402 |
(print_usage): Print each element of the usage array. |
403 |
|
404 |
* hash.c: Change function definitions to be K&R style. |
405 |
|
406 |
2002-08-02 Paul D. Smith <psmith@gnu.org> |
407 |
|
408 |
* NEWS: Remove the mention of .TARGETS; we aren't going to publish |
409 |
this one because it's too hard to get right. We'll look at it for |
410 |
a future release. |
411 |
* main.c (main): Don't create the .TARGETS variable. |
412 |
* variable.c (handle_special_var): Don't handle .TARGETS. |
413 |
|
414 |
2002-08-01 Paul D. Smith <psmith@gnu.org> |
415 |
|
416 |
* main.c (switches): Add a new option, -B (--always-make). If |
417 |
specified, make will rebuild all targets that it encounters even |
418 |
if they don't appear to be out of date. |
419 |
(always_make_flag): New flag. |
420 |
* make.h: Extern always_make_flag. |
421 |
* remake.c (update_file_1): Check always_make_flag; if it's set we |
422 |
will always rebuild any target we can, even if none of its |
423 |
prerequisites are newer. |
424 |
* NEWS: Mention it. |
425 |
|
426 |
* doc/make.texi (Shell Function): Make it clear that make |
427 |
variables marked as "export" are not passed to instances of the |
428 |
shell function. |
429 |
|
430 |
Add new introspection variable .VARIABLES and .TARGETS. |
431 |
|
432 |
* variable.c (handle_special_var): New function. If the variable |
433 |
reference passed in is "special" (.VARIABLES or .TARGETS), |
434 |
calculate the new value if necessary. .VARIABLES is handled here: |
435 |
walk through the hash of defined variables and construct a value |
436 |
which is a list of the names. .TARGETS is handled by |
437 |
build_target_list(). |
438 |
(lookup_variable): Invoke handle_special_var(). |
439 |
* file.c (build_target_list): Walk through the hask of known files |
440 |
and construct a list of the names of all the ones marked as |
441 |
targets. |
442 |
* main.c (main): Initialize them to empty (and as simple variables). |
443 |
* doc/make.texi (Special Variables): Document them. |
444 |
* NEWS: Mention them. |
445 |
|
446 |
* variable.h (struct variable): Add a new flag "exportable" which |
447 |
is true if the variable name is valid for export. |
448 |
* variable.c (define_variable_in_set): Set "exportable" when a new |
449 |
variable is defined. |
450 |
(target_environment): Use the "exportable" flag instead of |
451 |
re-checking the name here... an efficiency improvement. |
452 |
|
453 |
2002-07-31 Paul D. Smith <psmith@gnu.org> |
454 |
|
455 |
* config.h-vms.template: Updates to build on VMS. Thanks to |
456 |
Brian_Benning@aksteel.com for helping verify the build. |
457 |
* makefile.com: Build the new hash.c file. |
458 |
* hash.h: Use strcpmi(), not stricmp(), in the |
459 |
HAVE_CASE_INSENSITIVE_FS case. |
460 |
|
461 |
2002-07-30 Paul D. Smith <psmith@gnu.org> |
462 |
|
463 |
* hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing |
464 |
backslashes to the HAVE_CASE_INSENSITIVE_FS case. |
465 |
Reported by <Brian_Benning@aksteel.com>. |
466 |
|
467 |
2002-07-10 Paul D. Smith <psmith@gnu.org> |
468 |
|
469 |
* variable.c (pop_variable_scope): Remove variable made unused by |
470 |
new hash infrastructure. |
471 |
* read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime |
472 |
comparisons as well as name comparisons. |
473 |
* variable.h: Add a prototype for new hash_init_function_table(). |
474 |
* file.c (lookup_file): Remove variables made unused by new hash |
475 |
infrastructure. |
476 |
* dir.c (directory_contents_hash_2): Missing return of hash value. |
477 |
(dir_contents_file_exists_p): Remove variables made unused by new |
478 |
hash infrastructure. |
479 |
|
480 |
|
481 |
Installed Greg McGary's integration of the hash functions from the |
482 |
GNU id-utils package: |
483 |
|
484 |
2002-07-10 Greg McGary <greg@mcgary.org> |
485 |
|
486 |
* scripts/functions/filter-out: Add literals to to the |
487 |
pattern space in order to add complexity, and trigger |
488 |
use of an internal hash table. Fix documentation strings. |
489 |
* scripts/targets/INTERMEDIATE: Reverse order of files |
490 |
passed to expected `rm' command. |
491 |
|
492 |
2002-07-10 Greg McGary <greg@mcgary.org> |
493 |
|
494 |
* Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h |
495 |
* hash.c: New file, taken from id-utils. |
496 |
* hash.h: New file, taken from id-utils. |
497 |
|
498 |
* make.h (HASH, HASHI): Remove macros. |
499 |
(find_char_unquote): Change arglist in decl. |
500 |
(hash_init_directories): New function decl. |
501 |
* variable.h (hash.h): New #include. |
502 |
(MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants. |
503 |
* filedef.h (hash.h): New #include. |
504 |
(struct file) [next]: Remove member. |
505 |
(file_hash_enter): Remove function decl. |
506 |
(init_hash_files): New function decl. |
507 |
|
508 |
* ar.c (ar_name): Delay call to strlen until needed. |
509 |
* main.c (initialize_global_hash_tables): New function. |
510 |
(main): Call it. Use MAKELEVEL_NAME & MAKELEVEL_LENGTH. |
511 |
* misc.c (remove_comments): Pass char constants to find_char_unquote. |
512 |
* remake.c (notice_finished_file): Update last_mtime on `prev' chain. |
513 |
|
514 |
* dir.c (hash.h): New #include. |
515 |
(struct directory_contents) [next, files]: Remove members. |
516 |
[ctime]: Add member for VMS. [dirfiles]: Add hash-table member. |
517 |
(directory_contents_hash_1, directory_contents_hash_2, |
518 |
directory_contents_hash_cmp): New functions. |
519 |
(directories_contents): Change type to `struct hash_table'. |
520 |
(struct directory) [next]: Remove member. |
521 |
(directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs. |
522 |
(directory): Change type to `struct hash_table'. |
523 |
(struct dirfile) [next]: Remove member. |
524 |
[length]: Add member. [impossible]: widen type to fill alignment gap. |
525 |
(dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions. |
526 |
(find_directory): Use new hash table package. |
527 |
(dir_contents_file_exists_p): Likewise. |
528 |
(file_impossible): Likewise. |
529 |
(file_impossible_p): Likewise. |
530 |
(print_dir_data_base): Likewise. |
531 |
(open_dirstream): Likewise. |
532 |
(read_dirstream): Likewise. |
533 |
(hash_init_directories): New function. |
534 |
|
535 |
* file.c (hash.h): New #include. |
536 |
(file_hash_1, file_hash_2, file_hash_cmp): New functions. |
537 |
(files): Change type to `struct hash_table'. |
538 |
(lookup_file): Use new hash table package. |
539 |
(enter_file): Likewise. |
540 |
(remove_intermediates): Likewise. |
541 |
(snap_deps): Likewise. |
542 |
(print_file_data_base): Likewise. |
543 |
|
544 |
* function.c |
545 |
(function_table_entry_hash_1, function_table_entry_hash_2, |
546 |
function_table_entry_hash_cmp): New functions. |
547 |
(lookup_function): Remove `table' argument. |
548 |
Use new hash table package. |
549 |
(struct a_word) [chain, length]: New members. |
550 |
(a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions. |
551 |
(struct a_pattern): New struct. |
552 |
(func_filter_filterout): Pass through patterns noting boundaries |
553 |
and '%', if present. Note a_word length. Use a hash table if |
554 |
arglists are large enough to justify cost. |
555 |
(function_table_init): Renamed from function_table. |
556 |
(function_table): Declare as `struct hash_table'. |
557 |
(FUNCTION_TABLE_ENTRIES): New constant. |
558 |
(hash_init_function_table): New function. |
559 |
|
560 |
* read.c (hash.h): New #include. |
561 |
(read_makefile): Pass char constants to find_char_unquote. |
562 |
(dep_hash_1, dep_hash_2, dep_hash_cmp): New functions. |
563 |
(uniquize_deps): Use hash table to efficiently identify duplicates. |
564 |
(find_char_unquote): Accept two char-constant stop chars, rather |
565 |
than a string constant, avoiding zillions of calls to strchr. |
566 |
Tighten inner search loops to test only for desired delimiters. |
567 |
|
568 |
* variable.c (variable_hash_1, variable_hash_2, |
569 |
variable_hash_cmp): New functions. |
570 |
(variable_table): Declare as `struct hash_table'. |
571 |
(global_variable_set): Remove initialization. |
572 |
(init_hash_global_variable_set): New function. |
573 |
(define_variable_in_set): Use new hash table package. |
574 |
(lookup_variable): Likewise. |
575 |
(lookup_variable_in_set): Likewise. |
576 |
(initialize_file_variables): Likewise. |
577 |
(pop_variable_scope): Likewise. |
578 |
(create_new_variable_set): Likewise. |
579 |
(merge_variable_sets): Likewise. |
580 |
(define_automatic_variables): Likewise. |
581 |
(target_environment): Likewise. |
582 |
(print_variable_set): Likewise. |
583 |
|
584 |
2002-07-10 Paul D. Smith <psmith@gnu.org> |
585 |
|
586 |
Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the |
587 |
prerequisite list. A real SysV make will expand the entire |
588 |
prerequisites list _twice_: we don't do that as it's a big |
589 |
backward-compatibility problem. We only replace those specific |
590 |
variables. |
591 |
|
592 |
* read.c (record_files): Replace any $@, $(@D), and $(@F) variable |
593 |
references left in the list of prerequisites. Check for .POSIX as |
594 |
we record targets, so we can disable non-POSIX behavior while |
595 |
reading makefiles as well as running them. |
596 |
(eval): Check the prerequisite list to see if we have anything |
597 |
that looks like a SysV prerequisite variable reference. |
598 |
|
599 |
2002-07-09 Paul D. Smith <psmith@gnu.org> |
600 |
|
601 |
* doc/make.texi (Prerequisite Types): Add a new section describing |
602 |
order-only prerequisites. |
603 |
|
604 |
* read.c (uniquize_deps): If we have the same file as both a |
605 |
normal and order-only prereq, get rid of the order-only prereq, |
606 |
since the normal one supersedes it. |
607 |
|
608 |
2002-07-08 Paul D. Smith <psmith@gnu.org> |
609 |
|
610 |
* AUTHORS: Added Greg McGary to the AUTHORS file. |
611 |
* NEWS: Blurbed order-only prerequisites. |
612 |
* file.c (print_file): Show order-only deps properly when printing |
613 |
the database. |
614 |
|
615 |
* maintMakefile: Add "update" targets for wget'ing the latest |
616 |
versions of various external files. Taken from Makefile.maint in |
617 |
autoconf, etc. |
618 |
|
619 |
* dosbuild.bat: Somehow we got _double_ ^M's. Remove them. |
620 |
Reported by Eli Zaretskii <eliz@is.elta.co.il>. |
621 |
|
622 |
2002-07-07 Paul D. Smith <psmith@gnu.org> |
623 |
|
624 |
* po/*.po: Remove. We'll use wget to retrieve them at release |
625 |
time. |
626 |
|
627 |
* variable.c (do_variable_definition) [W32]: On W32 using cmd |
628 |
rather than a shell you get an exception. Make sure we look up |
629 |
the variable. Patch provided by Eli Zaretskii <eliz@is.elta.co.il>. |
630 |
|
631 |
* remake.c (notice_finished_file): Fix handling of -t flag. |
632 |
Patch provided by Henning Makholm <henning@makholm.net>. |
633 |
|
634 |
* implicit.c (pattern_search): Some systems apparently run short |
635 |
of stack space, and using alloca() in this function caused an |
636 |
overrun. I modified it to use xmalloc() on the two variables |
637 |
which seemed like they might get large. Fixes Bug #476. |
638 |
|
639 |
* main.c (print_version): Update copyright notice to conform with |
640 |
GNU standards. |
641 |
(print_usage): Update help output. |
642 |
|
643 |
* function.c (func_eval): Create a new make function, $(eval |
644 |
...). Expand the arguments, put them into a buffer, then invoke |
645 |
eval_buffer() on the resulting string. |
646 |
(func_quote): Create a new function, $(quote VARNAME). Inserts |
647 |
the value of the variable VARNAME without expanding it any |
648 |
further. |
649 |
|
650 |
* read.c (struct ebuffer): Change the linebuffer structure to an |
651 |
"eval buffer", which can be either a file or a buffer. |
652 |
(eval_makefile): Move the code in the old read_makefile() which |
653 |
located a makefile into here: create a struct ebuffer with that |
654 |
information. Have it invoke the new function eval() with that |
655 |
ebuffer. |
656 |
(eval_buffer): Create a new function that creates a struct ebuffer |
657 |
that holds a string buffer instead of a file. Have it invoke |
658 |
eval() with that ebuffer. |
659 |
(eval): New function that contains the guts of the old |
660 |
read_makefile() function: this function parses makefiles. Obtains |
661 |
data to parse from the provided ebuffer. Some modifications to |
662 |
make the flow of the function cleaner and clearer. Still could |
663 |
use some work here... |
664 |
(do_define): Takes a struct ebuffer instead of a FILE*. Read the |
665 |
contents of the define/endef variable from the ebuffer. |
666 |
(readstring): Read the next line from a string-style ebuffer. |
667 |
(readline): Read the next line from an ebuffer. If it's a string |
668 |
ebuffer, invoke readstring(). If it's a FILE* ebuffer, read it |
669 |
from the file. |
670 |
|
671 |
* dep.h (eval_buffer): Prototype eval_buffer(); |
672 |
|
673 |
* variable.c (do_variable_definition): Make sure that all |
674 |
non-target-specific variables are registered in the global set. |
675 |
If we're invoked from an $(eval ...) we might be inside a $(call |
676 |
...) or other function which has pushed a variable scope; we still |
677 |
want to define our variables from evaluated makefile code in the |
678 |
global scope. |
679 |
|
680 |
2002-07-03 Greg McGary <greg@mcgary.org> |
681 |
|
682 |
* dep.h (struct dep) [ignore_mtime]: New member. |
683 |
[changed]: convert to a bitfield. |
684 |
* implicit.c (pattern_search): Zero ignore_mtime. |
685 |
* main.c (main, handle_non_switch_argument): Likewise. |
686 |
* rule.c (convert_suffix_rule): Likewise. |
687 |
* read.c (read_all_makefiles, read_makefile, multi_glob): Likewise. |
688 |
(read_makefile): Parse '|' in prerequisite list. |
689 |
(uniquize_deps): Consider ignore_mtime when comparing deps. |
690 |
* remake.c (update_file_1, check_dep): Don't force remake for |
691 |
dependencies that have d->ignore_mtime. |
692 |
* commands.c (FILE_LIST_SEPARATOR): New constant. |
693 |
(set_file_variables): Don't include a |
694 |
prerequisite in $+, $^ or $? if d->ignore_mtime. |
695 |
Define $|. |
696 |
|
697 |
2002-06-18 Paul D. Smith <psmith@gnu.org> |
698 |
|
699 |
* make.texinfo: Updates for next revision. New date/rev/etc. |
700 |
Recreate all Info menus. Change license on the manual to the GNU |
701 |
Free Documentation License. A number of typos. |
702 |
(Variables Simplify): Don't use "-" before it's defined. |
703 |
(Automatic Prerequisites): Rewrite the target example to work |
704 |
properly if the compile fails. Remove incorrect comments about |
705 |
how "set -e" behaves. |
706 |
(Text Functions): Move the "word", "wordlist", "words", and |
707 |
"firstword" functions here, from "File Name Functions". |
708 |
* make-stds.texi: Update from latest GNU version. |
709 |
* fdl.texi: (created) Import the latest GNU version. |
710 |
|
711 |
2002-06-06 Paul D. Smith <psmith@gnu.org> |
712 |
|
713 |
* variable.c (do_variable_definition): New function: extract the |
714 |
part of try_variable_definition() that actually sets the value |
715 |
into a separate function. |
716 |
(try_variable_definition): Call do_variable_definition() after |
717 |
parsing the variable definition string. |
718 |
(define_variable_in_set): Make the name argument const. |
719 |
|
720 |
* variable.h (enum variable_flavor): Make public. |
721 |
(do_variable_definition): Create prototype. |
722 |
|
723 |
* read.c (read_all_makefiles): Create a new built-in variable, |
724 |
MAKEFILE_LIST. |
725 |
(read_makefile): Add each makefile read in to this variable value. |
726 |
|
727 |
2002-05-18 Eli Zaretskii <eliz@is.elta.co.il> |
728 |
|
729 |
* Makefile.DOS.template: Tweak according to changes in the |
730 |
distribution. Add back the dependencies of *.o files. |
731 |
|
732 |
* configh.dos.template: Synchronize with config.h.in. |
733 |
|
734 |
2002-05-09 Paul D. Smith <psmith@gnu.org> |
735 |
|
736 |
* file.c (file_timestamp_now): Use K&R function declaration. |
737 |
|
738 |
* getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils |
739 |
getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so |
740 |
#undef it. Remove predefined setup of NLIST_STRUCT. Decide |
741 |
whether to include nlist.h based on HAVE_NLIST_H. Change obsolete |
742 |
NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME. |
743 |
* configure.in (NLIST_STRUCT): Define this if we have nlist.h and |
744 |
nlist.n_name is a pointer rather than an array. |
745 |
|
746 |
* acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest |
747 |
version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS. |
748 |
* configure.in: Use it instead of the old version. |
749 |
|
750 |
* main.c (main): Prefer setvbuf() to setlinebuf(). |
751 |
|
752 |
2002-05-08 Paul D. Smith <psmith@gnu.org> |
753 |
|
754 |
* Makefile.am (make_LDADD): Add GETLOADAVG_LIBS. |
755 |
(loadavg_LDADD): Ditto. |
756 |
|
757 |
2002-04-29 Paul D. Smith <psmith@gnu.org> |
758 |
|
759 |
* expand.c (recursively_expand_for_file): Rename |
760 |
recursively_expand() to recursively_expand_for_file() and provide |
761 |
an extra argument, struct file. If the argument is provided, set |
762 |
the variable scope to that of the file before expanding. |
763 |
* variable.h (recursively_expand): Make this a macro that invokes |
764 |
recursively_expand_for_file() with a NULL file pointer. |
765 |
* variable.c (target_environment): Call the renamed function and |
766 |
provide the current file context. |
767 |
Fixes Debian bug #144306. |
768 |
|
769 |
2002-04-28 Paul D. Smith <psmith@gnu.org> |
770 |
|
771 |
Allow $(call ...) user-defined variables to be self-referencing |
772 |
without throwing an error. Allows implementation of transitive |
773 |
closures, among other possibly useful things. |
774 |
Requested by: Philip Guenther <guenther@sendmail.com> |
775 |
|
776 |
* variable.h (struct variable): Add a new field: exp_count, and |
777 |
new macros to hold its size and maximum value. |
778 |
(warn_undefined): Make this a macro. |
779 |
* variable.c (define_variable_in_set): Initialize it. |
780 |
* expand.c (recursively_expand): If we detect recursive expansion |
781 |
of a variable, check the exp_count field. If it's greater than 0 |
782 |
allow the recursion and decrement the count. |
783 |
(warn_undefined): Remove this (now a macro in variable.h). |
784 |
* function.c (func_call): Before we expand the user-defined |
785 |
function, modify its exp_count field to contain the maximum |
786 |
number of recursive calls we'll allow. After the call, reset it |
787 |
to 0. |
788 |
|
789 |
2002-04-21 Paul D. Smith <psmith@gnu.org> |
790 |
|
791 |
Modified to use latest autoconf (2.53), automake (1.6.1), and |
792 |
gettext (0.11.1). We're using gettext's new "external" support, |
793 |
to avoid including libintl source with GNU make. |
794 |
|
795 |
* README.cvs: New file. Explain how to build GNU make from CVS. |
796 |
|
797 |
* configure.in: Modify checking for the system glob library. |
798 |
Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of |
799 |
GLOBDIR (we will always put "glob" in SUBDIRS, so automake |
800 |
etc. will manage it correctly). Set an automake conditional |
801 |
USE_LOCAL_GLOB to decide whether to compile the glob library. |
802 |
|
803 |
* getloadavg.c (main): Include make.h in the "TEST" program to |
804 |
avoid warnings. |
805 |
|
806 |
* Makefile.am: Remove special rules for loadavg. Replace them |
807 |
with Automake capabilities for building extra programs. |
808 |
|
809 |
* signame.c: This file does nothing if the system provide |
810 |
strsignal(). If not, it implements strsignal(). If the system |
811 |
doesn't define sys_siglist, then we make our own; otherwise we use |
812 |
the system version. |
813 |
* signame.h: Removed. |
814 |
|
815 |
* main.c (main): No need to invoke signame_init(). Update copyright. |
816 |
|
817 |
* ABOUT-NLS: Removed. |
818 |
* gettext.c: Removed. |
819 |
* gettext.h: Get a simplified copy from the gettext package. |
820 |
* po/*: Created. |
821 |
* i18n/*.po: Moved to po/. |
822 |
* i18n/: Removed. |
823 |
|
824 |
* config/*: Created. Contains package configuration helper files. |
825 |
* config.guess, config.sub: Moved to config directory. |
826 |
|
827 |
* configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile. |
828 |
Rework to use new-style autoconf features. Use the "external" |
829 |
mode for gettext. Make the build.sh config file conditional on |
830 |
whether build.sh.in exists, to avoid autoconf errors. |
831 |
* acinclude.m4: Removed almost all macros as being obsolete. |
832 |
Rewrote remaining macros to use AC_DEFINE. |
833 |
* acconfig.h: Removed. |
834 |
|
835 |
* Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a |
836 |
conditional to handle customs support. Remove special handling |
837 |
for i18n features. |
838 |
|
839 |
2002-04-20 Paul D. Smith <psmith@gnu.org> |
840 |
|
841 |
* function.c (func_call): Don't mark the argument variables $1, |
842 |
etc. as recursive. They've already been fully expanded so |
843 |
there's no need to do it again, and doing so strips escaped $'s. |
844 |
Reported by Sebastian Glita <glseba@yahoo.com>. |
845 |
|
846 |
* remake.c (notice_finished_file): Walk through double-colon |
847 |
entries via the prev field, not the next field! |
848 |
Reported by Greg McGary <greg@mcgary.org>. |
849 |
|
850 |
* main.c (main): If the user specifies -q and asks for a specific |
851 |
target which is a makefile, we got an assert. In that case it |
852 |
turns out we should continue normally instead. |
853 |
|
854 |
* i18n/de.po, i18n/fr.po: Installed an updated translation. |
855 |
|
856 |
* i18n/he.po: Installed a new translation. |
857 |
|
858 |
2002-01-07 Paul D. Smith <psmith@gnu.org> |
859 |
|
860 |
* i18n/es.po, i18n/ru.po: Installed an updated translation. |
861 |
|
862 |
2001-12-04 Paul D. Smith <psmith@gnu.org> |
863 |
|
864 |
* i18n/ja.po: Installed an updated translation. |
865 |
|
866 |
2001-09-04 Paul D. Smith <psmith@gnu.org> |
867 |
|
868 |
* i18n/da.po: Installed an updated translation. |
869 |
|
870 |
2001-08-03 Paul D. Smith <psmith@gnu.org> |
871 |
|
872 |
* i18n/fr.po: Installed an updated translation. |
873 |
Resolves Debian bug #106720. |
874 |
|
875 |
2001-06-13 Paul D. Smith <psmith@gnu.org> |
876 |
|
877 |
* i18n/da.po, configure.in (ALL_LINGUAS): Installed a new |
878 |
translation. |
879 |
|
880 |
2001-06-11 Paul D. Smith <psmith@gnu.org> |
881 |
|
882 |
* i18n/ko.po: Installed a new translation. |
883 |
|
884 |
2001-05-06 Paul D. Smith <psmith@gnu.org> |
885 |
|
886 |
Modify the EINTR handling. |
887 |
|
888 |
* job.c (new_job): Reorganize the jobserver algorithm. Reorder |
889 |
the way in which we manage the file descriptor/signal handler race |
890 |
trap to be more efficient. |
891 |
|
892 |
2001-05-06 Paul Eggert <eggert@twinsun.com> |
893 |
|
894 |
Restart almost all system calls that are interrupted, instead |
895 |
of worrying about EINTR. The lone exception is the read() for |
896 |
job tokens. |
897 |
|
898 |
* configure.in (HAVE_SA_RESTART): New macro. |
899 |
(MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART. |
900 |
* main.c (main): Use SA_RESTART instead of the old, |
901 |
nonstandard SA_INTERRUPT. |
902 |
|
903 |
* configure.in (AC_CHECK_FUNCS): Add bsd_signal. |
904 |
* main.c (bsd_signal): New function or macro, |
905 |
if the implementation doesn't supply it. |
906 |
(The bsd_signal function will be in POSIX 1003.1-200x.) |
907 |
(HANDLESIG): Remove. |
908 |
(main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG. |
909 |
|
910 |
* make.h (EINTR_SET): Remove. |
911 |
(SA_RESTART): New macro. |
912 |
|
913 |
* arscan.c (ar_member_touch): Don't worry about EINTR. |
914 |
* function.c (func_shell): Likewise. |
915 |
* job.c (reap_children, free_child, new_job): Likewise. |
916 |
* main.c (main): Likewise. |
917 |
* remake.c (touch_file, name_mtime): Likewise. |
918 |
|
919 |
* arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal; |
920 |
if fstat failed with errno!=EINTR, the error was ignored. |
921 |
|
922 |
* job.c (set_child_handler_action_flags): New function. |
923 |
(new_job): Use it to temporarily clear the SIGCHLD action flags |
924 |
while reading the token. |
925 |
|
926 |
2001-05-02 Paul D. Smith <psmith@gnu.org> |
927 |
|
928 |
* job.c (start_job_command): Don't add define/endef per-line flags |
929 |
to the top-level flags setting. |
930 |
|
931 |
2001-04-03 Paul D. Smith <psmith@gnu.org> |
932 |
|
933 |
* arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low |
934 |
bit on error, so check for odd return values, not non-0 return |
935 |
values. |
936 |
(VMS_get_member_info): Calculate the timezone differences correctly. |
937 |
Reported by John Fowler <jfowler@nyx.net>. |
938 |
|
939 |
|
940 |
2001-03-14 Paul D. Smith <psmith@gnu.org> |
941 |
|
942 |
* variable.c (lookup_variable) [VMS]: Null-terminate the variable |
943 |
value before invoking define_variable(). |
944 |
Reported by John Fowler <jfowler@nyx.net>. |
945 |
|
946 |
2001-02-07 Paul D. Smith <psmith@gnu.org> |
947 |
|
948 |
* read.c (record_target_var): If we reset the variable due to a |
949 |
command-line variable setting overriding it, turn off the "append" |
950 |
flag. |
951 |
|
952 |
2001-01-17 Paul D. Smith <psmith@gnu.org> |
953 |
|
954 |
* variable.c (lookup_variable) [VMS]: When getting values from the |
955 |
environment, allocate enough space for the _value_ plus escapes, |
956 |
not enough space for the name plus escapes :-/. |
957 |
Reported by John Fowler <jfowler@nyx.net>. |
958 |
|
959 |
* remake.c (f_mtime): Removed the "***" prefix from the mod time |
960 |
warnings that make generates, so it doesn't look like an error. |
961 |
Reported by Karl Berry <karl@gnu.org>. |
962 |
|
963 |
|
964 |
Fix for PR/2020: Rework appended target-specific variables. I'm |
965 |
fairly confident this algorithm is finally correct. |
966 |
|
967 |
* expand.c (allocated_variable_append): Rewrite. Instead of |
968 |
expanding each appended variable then adding all the expanded |
969 |
strings together, we append all the unexpanded values going up |
970 |
through the variable set contexts, then expand the final result. |
971 |
This behaves just like non-target-specific appended variable |
972 |
values, while the old way didn't in various corner cases. |
973 |
(variable_append): New function: recursively append the unexpanded |
974 |
value of a variable, walking from the outermost variable scope to |
975 |
the innermost. |
976 |
* variable.c (lookup_variable): Remove the code that looked up the |
977 |
variable set list if the found variable was "append". We don't |
978 |
need this anymore. |
979 |
(lookup_variable_in_set): Make this non-static so we can use it |
980 |
elsewhere. |
981 |
(try_variable_definition): Use lookup_variable_in_set() rather |
982 |
than faking out current_variable_set_list by hand (cleanup). |
983 |
* variable.h: Add a prototype for the now non-static |
984 |
lookup_variable_in_set(). |
985 |
|
986 |
2000-11-17 Paul D. Smith <psmith@gnu.org> |
987 |
|
988 |
* remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the |
989 |
WINDOWS32 port to assume timestamps can be up to 3 seconds away |
990 |
before throwing a fit. |
991 |
|
992 |
2000-11-17 Paul D. Smith <psmith@gnu.org> |
993 |
|
994 |
* read.c (readline): CRLF calculations had a hole, if you hit the |
995 |
buffer grow scenario just right. Reworked the algorithm to avoid |
996 |
the need for len or lastlen at all. Problem description with |
997 |
sample code chages provided by Chris Faylor <cgf@redhat.com>. |
998 |
|
999 |
2000-10-24 Paul D. Smith <psmith@gnu.org> |
1000 |
|
1001 |
* gettext.c (SWAP): Declare this with the prototype, otherwise |
1002 |
some systems don't work (non-32-bit? Reported for Cray T3E). |
1003 |
Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>. |
1004 |
|
1005 |
2000-10-05 Paul D. Smith <psmith@gnu.org> |
1006 |
|
1007 |
* acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro |
1008 |
AM_LC_MESSAGES; it doesn't seem to do anything anyway?? |
1009 |
|
1010 |
* i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation. |
1011 |
|
1012 |
2000-09-22 Paul D. Smith <psmith@gnu.org> |
1013 |
|
1014 |
* gettext.c: Don't #define _GETTEXT_H here; we only include some |
1015 |
parts of the real gettext.h here, and we expect to really include |
1016 |
the real gettext.h later. If we keep this #define, it's ignored. |
1017 |
|
1018 |
2000-09-21 Paul D. Smith <psmith@gnu.org> |
1019 |
|
1020 |
* main.c (log_working_directory): Rework the text to use complete |
1021 |
sentences, to make life simpler for the translators. |
1022 |
|
1023 |
2000-08-29 Paul D. Smith <psmith@gnu.org> |
1024 |
|
1025 |
* file.c (remove_intermediates): Print a debug message before we |
1026 |
remove intermediate files, so the user (if she uses -d) knows |
1027 |
what's going on. |
1028 |
|
1029 |
2000-08-21 Paul D. Smith <psmith@gnu.org> |
1030 |
|
1031 |
* variable.c (try_variable_definition): Change how we handle |
1032 |
target-specific append variable defns: instead of just setting the |
1033 |
value, expand it as an append _but_ only within the current |
1034 |
target's context. Otherwise we lose all but the last value if the |
1035 |
variable is appended more than once within the current target |
1036 |
context. Fixes PR/1831. |
1037 |
|
1038 |
2000-08-16 Paul D. Smith <psmith@gnu.org> |
1039 |
|
1040 |
* function.c (func_shell): Nul-terminate the buffer before |
1041 |
printing an exec error message (just in case it's not!). |
1042 |
Fixes PR/1860, reported by Joey Hess <joey@valinux.com>. |
1043 |
|
1044 |
2000-07-25 Paul D. Smith <psmith@gnu.org> |
1045 |
|
1046 |
* job.c (construct_command_argv_internal): Add "~" to the list of |
1047 |
sh_chars[] which disallow optimizing out the shell call. |
1048 |
|
1049 |
2000-07-23 Paul Eggert <eggert@twinsun.com> |
1050 |
|
1051 |
* NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which |
1052 |
supersedes --disable-nsec-timestamps. |
1053 |
* make.texinfo: Consistently use "time stamp" instead of "timestamp". |
1054 |
* README: Remove --disable-nsec-timestamps. |
1055 |
|
1056 |
* filedef.h (struct file.low_resolution_time): New member. |
1057 |
* file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME. |
1058 |
* remake.c (update_file_1): |
1059 |
Avoid spurious rebuilds due to low resolution time stamps, |
1060 |
generalizing the earlier code that applied only to archive members. |
1061 |
(f_mtime): Archive members always have low resolution time stamps. |
1062 |
|
1063 |
* configure.in: Remove --disable-nsec-timestamps, as this has |
1064 |
been superseded by .LOW_RESOLUTION_TIME. |
1065 |
|
1066 |
2000-07-23 Paul Eggert <eggert@twinsun.com> |
1067 |
|
1068 |
* configure.in (enable_nsec_timestamps): Renamed from |
1069 |
make_cv_nsec_timestamps, since enable/disable options |
1070 |
shouldn't be cached. |
1071 |
|
1072 |
2000-07-23 Bruno Haible <haible@clisp.cons.org> |
1073 |
and Paul Eggert <eggert@twinsun.com> |
1074 |
|
1075 |
* file.c (file_timestamp_now): |
1076 |
Use preprocessor-time check for FILE_TIMESTAMP_HI_RES |
1077 |
so that clock_gettime is not linked unless needed. |
1078 |
|
1079 |
* filedef.h (FILE_TIMESTAMP_HI_RES): |
1080 |
Remove definition; "configure" now does this. |
1081 |
|
1082 |
* configure.in (jm_AC_TYPE_UINTMAX_T): Move up, |
1083 |
to before high resolution file timestamp check, |
1084 |
since that check now uses uintmax_t. |
1085 |
(FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use |
1086 |
high resolution file timestamps. |
1087 |
(HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES, |
1088 |
so that we don't link in clock_gettime unnecessarily. |
1089 |
|
1090 |
2000-07-17 Paul D. Smith <psmith@gnu.org> |
1091 |
|
1092 |
* i18n/ja.po: New version of the translation file. |
1093 |
|
1094 |
2000-07-07 Paul D. Smith <psmith@gnu.org> |
1095 |
|
1096 |
* remake.c (f_mtime): If NO_FLOAT is defined, don't bother with |
1097 |
the offset calculation. |
1098 |
(name_mtime): Replace EINTR test with EINTR_SET macro. |
1099 |
|
1100 |
2000-07-07 Paul Eggert <eggert@twinsun.com> |
1101 |
|
1102 |
Fix for PR/1811: |
1103 |
|
1104 |
* remake.c (update_file_1): |
1105 |
Avoid spurious rebuilds of archive members due to their |
1106 |
timestamp resolution being only one second. |
1107 |
(f_mtime): Avoid spurious warnings of timestamps in the future due to |
1108 |
the clock's resolution being lower than file timestamps'. |
1109 |
When warning about future timestamps, report only the discrepancy, |
1110 |
not the absolute value of the timestamp and the current time. |
1111 |
|
1112 |
* file.c (file_timestamp_now): New arg RESOLUTION. |
1113 |
* filedef.h (file_timestamp_now): Likewise. |
1114 |
(FILE_TIMESTAMP_NS): Now returns int. All uses changed. |
1115 |
|
1116 |
2000-07-05 Paul D. Smith <psmith@gnu.org> |
1117 |
|
1118 |
* variable.c (lookup_variable) [VMS]: Remove vestigial references |
1119 |
to listp. Fixes PR/1793. |
1120 |
|
1121 |
2000-06-26 Paul Eggert <eggert@twinsun.com> |
1122 |
|
1123 |
* Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it. |
1124 |
|
1125 |
* dir.c (vms_hash): Ensure ctype macro args are nonnegative. |
1126 |
|
1127 |
* remake.c (f_mtime): Remove unused var memtime. |
1128 |
|
1129 |
2000-06-25 Martin Buchholz <martin@xemacs.org> |
1130 |
|
1131 |
* make.texinfo, NEWS, TODO.private: Minor spelling corrections. |
1132 |
Ran spell-check on make.texinfo. |
1133 |
|
1134 |
|
1135 |
See ChangeLog.2 for earlier changes. |