1 2007-11-02 Eric Blake <ebb9@byu.net>
3 Adjust to recent gnulib change.
4 * m4/gnulib-cache.m4: Drop vasprintf-posix and xvasprintf, and use
5 xvasprintf-posix instead.
7 2007-11-01 Eric Blake <ebb9@byu.net>
9 Improve error message when early end of file occurs.
10 * doc/m4.texinfo (Macro Arguments, Changequote, Changecom)
11 (M4wrap): Adjust to new messages.
12 (Improved capitalize): Enhance test.
13 * src/m4.h (next_token): Adjust prototype.
14 * src/input.c (next_token): Add new parameter, and improve error
16 (lex_debug): Adjust callers.
17 * src/symtab.c (symtab_debug): Likewise.
18 * src/macro.c (expand_input, collect_arguments): Likewise.
19 (expand_argument): Likewise, and add parameter.
21 2007-10-31 Eric Blake <ebb9@byu.net>
23 Test more corner cases.
24 * doc/m4.texinfo (Changecom, Pseudo Arguments): Beef up tests.
25 (Improved foreach): Document alternate foreachq style.
26 * examples/foreachq3.m4: New file.
27 * examples/loop.m4: New file.
28 * examples/Makefile.am (EXTRA_DIST): Distribute them.
30 2007-10-28 Eric Blake <ebb9@byu.net>
32 More test coverage for autoconf usage patterns.
33 * doc/m4.texinfo (Inhibiting Invocation, Pseudo Arguments)
34 (Builtin): Add new undocumented tests.
35 (Shift): Document cond macro, and add new test.
37 2007-10-27 Eric Blake <ebb9@byu.net>
39 Document one use of changequote(`(',`)').
40 * doc/m4.texinfo (Changequote): Add new test, based on recent
41 autoconf addition of m4_expand.
43 2007-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45 * examples/Makefile.am (EXTRA_DIST): Add capitalize2.m4.
47 2007-10-24 Eric Blake <ebb9@byu.net>
49 Reduce number of mingw testsuite failures.
50 * doc/m4.texinfo (Using frozen files): Skip test on mingw.
52 2007-10-22 Eric Blake <ebb9@byu.net>
54 Add DEBUG_REGEX debugging information.
55 * src/m4.h (DEBUG_REGEX): New debug macro.
56 * src/m4.c (main) [DEBUG_REGEX]: Open regex trace file when
58 * src/builtin.c (m4_patsubst, m4_regexp, compile_pattern)
59 [DEBUG_REGEX]: Trace regex usage.
61 Never let printf failures go undetected.
62 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
64 * src/m4.h: Include xprintf.h.
65 * src/format.c (format): Warn on format failures.
66 * src/builtin.c (ntoa): Export.
67 (m4_errprint): Adjust all *printf callers.
68 * src/debug.c (debug_message_prefix, trace_format): Likewise.
69 * src/freeze.c (produce_frozen_state): Likewise.
70 * src/input.c [DEBUG_INPUT]: Likewise.
71 * src/m4.c (usage): Likewise.
72 * src/m4.h (DEBUG_PRINT1, DEBUG_PRINT3, DEBUG_MESSAGE)
73 (DEBUG_MESSAGE1, DEBUG_MESSAGE2): Likewise.
74 * src/output.c (m4_tmpname, shipout_text, freeze_diversione):
76 * src/path.c [DEBUG_INCL]: Likewise.
77 * src/stackovf.c (process_sigsegv) [DEBUG_STKOVF]: Likewise.
78 * src/symtab.c [DEBUG_SYM]: Likewise.
80 2007-10-17 Eric Blake <ebb9@byu.net>
82 Fix 'm4 -F file -t undefined'.
83 * src/freeze.c (produce_frozen_state): Avoid core dump.
84 * doc/m4.texinfo (Using frozen files): Test for the bug.
85 * NEWS: Mention the fix.
87 2007-10-09 Eric Blake <ebb9@byu.net>
89 * NEWS: Document recent speedups.
91 Fix regexp regression of 2007-09-29.
92 * src/builtin.c (substitute): Allow NULL regs when no
93 subexpressions were present.
94 (m4_regexp): Handle \ escapes even with empty regex.
95 * doc/m4.texinfo (Regexp, Patsubst): Catch this bug.
97 Cache regex compilation for another autoconf speedup.
98 * src/m4.h (free_macro_sequence): Rename...
99 (free_regex): ...to this.
100 * src/m4.c (main): Update caller.
101 * src/builtin.c (REGEX_CACHE_SIZE, m4_regex, regex_cache): New
103 (compile_pattern): New function; cache recent regexes.
104 (free_regex): Rename, and clean up additional memory.
105 (m4_regexp, m4_patsubst): Use new function.
107 2007-10-02 Eric Blake <ebb9@byu.net>
109 Document quoting pitfalls in capitalize.
110 * doc/m4.texinfo (Patsubst): Use the examples directory. Also
112 (Improved capitalize): New node.
113 * examples/capitalize.m4: Update to match manual.
114 * examples/capitalize2.m4: New file.
116 2007-10-01 Eric Blake <ebb9@byu.net>
118 Another Autoconf usage pattern optimization.
119 * src/builtin.c (m4_index): Optimize search for one byte.
120 * doc/m4.texinfo (Index macro, Regexp, Patsubst): Test the new
123 2007-09-29 Eric Blake <ebb9@byu.net>
125 Optimize for Autoconf usage pattern.
126 * src/builtin.c (m4_regexp, m4_patsubst): Handle empty regex
129 2007-09-24 Eric Blake <ebb9@byu.net>
131 Create .gitignore alongside .cvsignore.
132 * bootstrap (LC_ALL): Set up front.
133 (version control) Borrow idea from head, to avoid churn in
134 m4/.*ignore files modified by gnulib-tool.
136 2007-09-13 Eric Blake <ebb9@byu.net>
140 2007-09-07 Eric Blake <ebb9@byu.net>
142 * AUTHORS: Simplify, to match libtool and autoconf layout.
143 * THANKS: Sync with head.
145 2007-08-10 Eric Blake <ebb9@byu.net>
147 * doc/m4.texinfo (Compatibility): Sync with head.
149 2007-08-10 Konrad Schwarz <konrad.schwarz@siemens.com> (tiny change)
150 and Eric Blake <ebb9@byu.net>
152 * doc/m4.texinfo (Defn): Update wording.
154 2007-08-09 Eric Blake <ebb9@byu.net>
156 POSIX requires defn(`a',`b') to concatenate definitions.
157 * src/builtin.c (m4_defn): Allow multiple arguments, but warn if
158 trying to mix a builtin with anything else.
159 * doc/m4.texinfo (Defn): Document a use for this POSIX
161 (Incompatibilities): Update to match current status.
162 * NEWS: Document this change.
164 Reported by Konrad Schwarz.
166 2007-08-04 Eric Blake <ebb9@byu.net>
168 Normalize all GPL license notices.
169 * GNUmakefile: Update license wording.
170 * Makefile.am: Likewise.
171 * Makefile.maint: Likewise.
172 * bootstrap: Likewise.
174 * configure.ac: Likewise.
175 * checks/Makefile.in: Likewise.
176 * doc/Makefile.am: Likewise.
177 * examples/Makefile.am: Likewise.
178 * src/Makefile.am: Likewise.
179 * src/builtin.c: Likewise.
180 * src/debug.c: Likewise.
181 * src/eval.c: Likewise.
182 * src/format.c: Likewise.
183 * src/freeze.c: Likewise.
184 * src/input.c: Likewise.
185 * src/m4.c: Likewise.
186 * src/m4.h: Likewise.
187 * src/macro.c: Likewise.
188 * src/output.c: Likewise.
189 * src/path.c: Likewise.
190 * src/stackovf.c: Likewise.
191 * src/symtab.c: Likewise.
193 2007-07-21 Eric Blake <ebb9@byu.net>
195 Fix regression on NetBSD from 2007-05-28.
196 * src/output.c (m4_tmpopen): Explicitly reset append-mode stream
198 * NEWS: Document this fix.
200 Reported by Thomas Klausner.
202 2007-07-20 Eric Blake <ebb9@byu.net>
204 Fix 'make distcheck' issues.
205 * Makefile.am (EXTRA_DIST): No need to distribute
206 gpl-3.0.texi.diff anymore.
207 * m4/gnulib-cache.m4: Update to latest gnulib.
209 2007-07-14 Eric Blake <ebb9@byu.net>
211 Reflect upstream license .texi changes.
212 * doc/m4.texinfo (Copying): Rename node...
213 (GNU General Public License): ...to this.
214 (GNU Free Documentation License): Adjust node location.
215 * local/doc/gpl-3.0.texi.diff: Remove file.
217 2007-07-10 Eric Blake <ebb9@byu.net>
220 * configure.ac (AC_INIT): Bump version number.
221 * NEWS: Start changes since 1.4.10.
222 * doc/m4.texinfo (History): Mention 1.4.11.
223 (Copying This Package, Copying This Manual): Add index entries.
224 * local/lib/version-etc.c.diff: Delete, now that gnulib has been
226 * Makefile.am (EXTRA_DIST): Remove dead file.
228 2007-07-09 Eric Blake <ebb9@byu.net>
231 * doc/Makefile.am (m4_TEXINFOS): Distribute gpl-3.0.texi.
232 * Makefile.am (EXTRA_DIST): Distribute gnulib diffs.
233 * configure.ac (AC_INIT): Bump version number.
234 * NEWS: Describe changes since 1.4.9.
236 * src/format.c: Missed a GPLv3 conversion.
238 Avoid undefined behavior of %.*c in printf.
239 * src/format.c (format): Special case %c.
240 * TODO: Document that more remains to be done.
241 * NEWS: Document the fix.
243 2007-07-05 Eric Blake <ebb9@byu.net>
245 Fix up gnulib-tool usage.
246 * m4/gnulib-cache.m4: Change local-dir to local, not `.'.
247 * version-etc.c.diff: Move to...
248 * local/lib/version-etc.c.diff: ...here.
249 * gpl-3.0.texi.diff: Move to...
250 * local/doc/gpl-3.0.texi.diff: ...here.
252 2007-07-04 Eric Blake <ebb9@byu.net>
254 Upgrade to GPL version 3 or later.
255 * bootstrap: Pick up GPLv3.
256 * m4/gnulib-cache.m4: Augment with 'gnulib-tool
257 --local-dir=. --import gpl-3.0'.
258 * doc/m4.texinfo (Copying This Package): New appendix.
259 * NEWS: Mention this change.
260 * README: Mention why some files still claim to be version 2.
261 * version-etc.c.diff: New file, to make sure --version claims
262 correct GPL version. Temporary until gnulib makes move.
263 * gpl-3.0.texi.diff: New file, to allow inclusion of GPLv3 as
264 appendix, rather than section, of the manual.
265 * GNUmakefile: Update to new license.
266 * Makefile.am: Likewise.
267 * Makefile.maint: Likewise.
269 * configure.ac: Likewise.
270 * checks/Makefile.in: Likewise.
271 * doc/Makefile.am: Likewise.
272 * examples/Makefile.am: Likewise.
273 * src/Makefile.am: Likewise.
274 * src/builtin.c: Likewise.
275 * src/debug.c: Likewise.
276 * src/eval.c: Likewise.
277 * src/freeze.c: Likewise.
278 * src/input.c: Likewise.
279 * src/m4.c: Likewise.
280 * src/m4.h: Likewise.
281 * src/macro.c: Likewise.
282 * src/output.c: Likewise.
283 * src/path.c: Likewise.
284 * src/stackovf.c: Likewise.
285 * src/symtab.c: Likewise.
287 2007-06-26 Eric Blake <ebb9@byu.net>
289 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import assert'.
291 2007-06-26 Karl Berry <karl@freefriends.org> (tiny change)
293 Match Free Software Directory categories.
294 * doc/m4.texinfo (dircategory): Update.
296 2007-05-31 Eric Blake <ebb9@byu.net>
298 * src/output.c (output_text): Fix regression from 2007-05-28.
299 * doc/m4.texinfo (History): Mention 1.4.10.
300 (Format): Make testsuite output easier to debug.
302 2007-05-29 Eric Blake <ebb9@byu.net>
305 * configure.ac (AC_INIT): Bump version number.
306 * NEWS: Start changes since 1.4.9b, and fix typo.
309 * configure.ac (AC_INIT): Bump version number.
310 * NEWS: Describe changes since 1.4.9.
312 Improve format support.
313 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
315 * src/format.c (format): Parse %'hhd, %a, %A. Avoid calling
316 printf with too few arguments, as in format(%*.*d,-1,-1,1).
317 * doc/m4.texinfo (Format): Expand tests, and improve
319 * NEWS: Document this change.
321 2007-05-28 Eric Blake <ebb9@byu.net>
323 Fix large diversion corner cases, including 1.4.8 regression.
324 * src/output.c (m4_tmpfile, m4_tmpopen): Simplify use of errno.
325 (make_room_for): Use NULL, not 0, for pointers.
326 (insert_diversion_helper): Avoid using rewind.
327 (freeze_diversions): Allow freezing large diversions.
328 * NEWS: Document this fix.
330 Also run gnulib unit tests during make check.
331 * m4/gnulib-cache.m4: Augment with 'gnulib-tool
332 --tests-base=tests --with-tests'.
333 * configure.ac (AC_CONFIG_FILES): Build gnulib testdir.
334 * Makefile.am (SUBDIRS): Run gnulib tests before ours.
336 2007-05-25 Eric Blake <ebb9@byu.net>
338 Backport prompts in examples from head.
339 * src/macro.c (expand_macro): Shorten message.
340 * doc/m4.texinfo (Manual, Command line files, Comments)
341 (Inhibiting Invocation, Macro Arguments, Macro expansion, Indir)
342 (Builtin, Shift, Forloop, Foreach, Dumpdef, Trace, Debug Levels)
343 (Debug Output, Include, Format, Syscmd, Mkstemp, Location)
344 (Using frozen files, Improved forloop, Improved foreach): Add
346 * checks/get-them: Ignore prompts in examples.
348 Fix sync line interaction with multiline comments.
349 * doc/m4.texinfo (Other Incompatibilities): Add example, and
350 document bug in --syncline/divert interaction.
351 (Preprocessor features): Augment test.
352 * src/m4.h (output_text): Export.
353 (shipout_text, next_token): Add parameter.
354 * src/freeze.c (reload_frozen_state): Don't interfere with
355 synclines when reloading state.
356 * src/output.c (output_text): Export.
357 (shipout_text): Take new parameter for start line of token.
358 Output at most one syncline per token.
359 * src/input.c (next_token): Report line where multiline tokens
361 * src/macro.c (expand_input, expand_token, expand_argument):
362 Adjust callers so that line is passed from input to output.
363 * NEWS: Document this fix.
364 Reported by Sergey Poznyakoff.
366 Test -s in testsuite.
367 * doc/m4.texinfo (Preprocessor features): Add a test.
368 * checks/get-them: Support extra options in testsuite.
369 * checks/check-them (examples): Use extra options.
371 Reported by Sergey Poznyakoff.
373 2007-05-24 Eric Blake <ebb9@byu.net>
375 Support POSIX flush semantics on all platforms.
376 * m4/gnulib-cache.m4: Remove closeout, and augment with
377 'gnulib-tool --import closein fflush'.
378 * src/m4.h (includes): Use closein, not closeout.
379 * src/m4.c (main): Ensure stdin is flushed when not all input is
381 (process_file): No return needed.
382 * src/debug.c (debug_flush_files): Rely on gnulib module, rather
383 than excluding mingw.
384 * NEWS: Document this change.
386 Work around cygwin and mingw fseeko bugs.
387 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import fseeko'.
388 * src/debug.c (debug_flush_files): Prefer fseeko over fseek.
390 2007-04-25 Eric Blake <ebb9@byu.net>
392 Fix negative division within eval, regression of 2007-01-06.
393 * doc/m4.texinfo (Eval): Catch this bug.
394 * src/eval.c (mult_term): Fix it.
395 * NEWS: Document this.
397 Reported by Cesar Strauss.
399 2007-04-23 Eric Blake <ebb9@byu.net>
402 * configure.ac (AC_INIT): Bump version number.
403 * NEWS: Start changes since 1.4.9.
405 2007-03-23 Eric Blake <ebb9@byu.net>
408 * configure.ac (AC_INIT): Bump version number.
409 * NEWS: Describe changes since 1.4.8b.
411 2007-03-16 Eric Blake <ebb9@byu.net>
413 * doc/m4.texinfo (Mkstemp): Tweak wording.
414 * src/output.c (output_init): Adjust to latest gnulib.
416 2007-03-15 Eric Blake <ebb9@byu.net>
418 Avoid Tandem/NSK's broken long long (without a symmetric unsigned
419 long long, it confuses gnulib).
420 * configure.ac (AC_TYPE_LONG_LONG_INT): Declare long long broken
421 if unsigned long long doesn't work.
423 Reported by Matthew Woehlke.
425 2007-03-07 Eric Blake <ebb9@byu.net>
428 * doc/m4.texinfo: Minor tweaks, avoid makeinfo warning.
430 2007-03-01 Eric Blake <ebb9@byu.net>
432 * doc/m4.texinfo: Pick up more index entries from head. Follow
433 more texinfo recommendations.
434 (Sysval): Improve tests.
436 Avoid overfull \vbox warning from texinfo, due to indices that
437 weren't quite big enough to split across page boundaries.
438 * doc/m4.texinfo: Add lots of concept index entries.
439 (Concept Index): Move to be last, as recommended by texinfo
441 (Define, Arguments, Pseudo Arguments): Add more function entries.
443 2007-02-28 Eric Blake <ebb9@byu.net>
445 * doc/m4.texinfo (Eval): Clean up wording to reflext POSIX XCU ERN
447 (Pseudo Arguments): Add useful example.
449 * doc/m4.texinfo (Pushdef, Incompatibilities): Clean up wording to
450 reflect POSIX XCU ERN 118.
452 * src/m4.h (DEFAULT_MACRO_SEQUENCE): Factor out from...
453 * src/m4.c (usage): ...here,...
454 * src/builtin.c (set_macro_sequence): ...and here.
455 (define_user_macro): Fix typo.
456 * doc/m4.texinfo (Preprocessor features, Arguments): Fix minor
458 (Shift): Document composite macro argn for portably getting at
459 positional parameters beyond 9.
460 * configure.ac (AC_INIT): Bump version number.
461 * NEWS: Start changes of 1.4.8c.
463 2007-02-24 Eric Blake <ebb9@byu.net>
466 * configure.ac (AC_INIT): Bump version number.
467 * NEWS: Describe changes since 1.4.8.
469 Reserve all uses of raw ${} in macro definitions, not just
471 * src/builtin.c (set_macro_sequence): Change default macro
473 * doc/m4.texinfo (Operation modes): Update to match.
474 * src/m4.c (usage): Likewise.
477 2007-02-23 Eric Blake <ebb9@byu.net>
479 * src/m4.h (includes): Update to latest gnulib.
481 2007-02-08 Eric Blake <ebb9@byu.net>
483 Rename --warn-syntax to --warn-macro-sequence[=regex], to make it
484 more flexible, and so that autoconf can use it.
485 * src/m4.h (set_macro_sequence, free_macro_sequence): New
487 * src/builtin.c (macro_sequence_buf, macro_sequence_regs)
488 (macro_sequence_inuse, set_macro_sequence, free_macro_sequence):
489 New variables and functions.
490 (define_user_macro): Allow flexibility in regular expression used
492 * src/m4.c (warn_syntax): Delete.
493 (usage, WARN_MACRO_SEQUENCE_OPTION, main): Implement changed
494 spelling of option, along with optional argument.
495 * doc/m4.texinfo (Operation modes, Arguments): Document this
497 * NEWS: Document this change.
499 2007-02-05 Eric Blake <ebb9@byu.net>
501 * m4/gnulib-cache.m4: Module strstr no longer exists.
503 Avoid bool bitfields, as they don't work on AIX.
504 * src/m4.h (bool_bitfield): New typedef.
505 (struct symbol, struct builtin): Use it.
506 * src/input.c (struct input_block): Likewise.
507 Reported by Albert Chin.
509 * doc/m4.texinfo (Sysval): Avoid SIGPIPE in test as unreliable.
510 Reported by Albert Chin.
513 2006-06-18 Bruno Haible <bruno@clisp.org> (tiny change)
515 * doc/m4.texinfo (Input processing): Further clarifications.
517 2007-02-03 Eric Blake <ebb9@byu.net>
519 * doc/m4.texinfo (Input processing, Quoting Arguments): Beef up
521 Reported by Bruno Haible.
523 2007-02-01 Eric Blake <ebb9@byu.net>
525 * src/m4.c (fatal_warnings): New variable.
526 (usage): Document new -E behavior.
527 (main): Make -E an additive option.
528 (m4_error, m4_error_at_line): Change exit status when required.
529 * NEWS: Document this change.
530 * doc/m4.texinfo (Operation modes): Likewise.
531 Reported by Ralf Wildenhues.
533 2007-01-27 Eric Blake <ebb9@byu.net>
535 * src/m4.h (warn_syntax): Declare.
536 (init_pattern_buffer): Export.
537 * src/m4.c (warn_syntax, usage, WARN_SYNTAX_OPTIONS)
538 (long_options, main): Implement new option.
539 * src/builtin.c (init_pattern_buffer): Allow NULL regs argument.
540 (define_user_macro): Warn on $11 and ${1} if requested.
541 * src/input.c (init_pattern_buffer): Delete duplicate method.
542 * doc/m4.texinfo (Operation modes): Document it.
543 (Arguments): Document future direction of ${11} vs. $11.
544 (Incompatibilities): Fix wording on POSIX limitations.
545 * checks/get-them: Parse @{ and @} correctly.
546 * NEWS: Document this change.
548 2007-01-26 Eric Blake <ebb9@byu.net>
550 * src/builtin.c (includes): Adjust to gnulib changes.
552 2007-01-15 Eric Blake <ebb9@byu.net>
554 * doc/m4.texinfo: Pull in various improvements from head.
555 * src/builtin.c (include): Alter exit status on failure.
556 * NEWS: Document this fix.
558 2007-01-13 Eric Blake <ebb9@byu.net>
560 * configure.ac (AC_CHECK_MEMBERS): Check for stack_t.ss_sp, and
561 assume the fallback of ss_base for BSDI 4.0.1.
562 * src/stackovf.c (setup_stackovf_trap) [HAVE_SIGALTSTACK &&
563 ! HAVE_STACK_T_SS_SP]: Use this check.
564 Reported by Chris McGuire.
566 * NEWS: Document the improvement.
568 2007-01-09 Eric Blake <ebb9@byu.net>
570 * src/eval.c (ASSIGN): New enumerator.
571 (eval_lex): Recognize '='.
572 (equality_term): Treat '=' like '==', but warn that it is
574 * doc/m4.texinfo (Eval): Document and test this.
575 (Incompatibilities): Document the POSIX incompatibility.
576 * NEWS: Document this change.
578 2007-01-06 Eric Blake <ebb9@byu.net>
580 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import stdint'.
581 * checks/check-them: Record expected exit status.
582 * checks/get-them: Check exit status.
583 * src/m4.h (eval_t, unsigned_eval_t): Delete, use POSIX int32_t
585 * src/builtin.c: All users changed.
586 * src/eval.c: Likewise. Also document where we are triggering
587 undefined or implementation-defined behavior.
588 (BADOP, NEGATIVE_EXPONENT, INVALID_OPERATOR, eval_lex, evaluate)
589 (logical_or_term, logical_and_term, logical_not_term, not_term)
590 (equality_term, unary_term): Port from head to follow POSIX
592 (exp_term): Reject 0**0 as undefined.
593 * doc/m4.texinfo (History): Mention 1.4.9.
594 (Format, Incompatibilities): Update to document POSIX compliance.
595 * NEWS: Document this change.
597 2007-01-04 Eric Blake <ebb9@byu.net>
599 * NEWS: Document previous fix.
602 2007-01-04 Sami Liedes <sliedes@cc.hut.fi> (tiny change)
604 Fix Debian bug 405594, introduced 2006-11-01 from a bad
605 copy-n-paste from head.
606 * src/m4.c (main): Use correct file name after --.
608 2007-01-04 Eric Blake <ebb9@byu.net>
610 Fix regression from 1.4.7 in large file handling on some
611 platforms, introduced on 2006-10-13.
612 * configure.ac (AC_LARGE_SYSFILE): Guarantee that large files
614 * NEWS: Document this fix.
616 2007-01-03 Eric Blake <ebb9@byu.net>
618 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
620 * src/m4.c (AUTHORS, main): Use FSF wording for --version (plus
621 it bumps the copyright year).
623 2006-12-27 Eric Blake <ebb9@byu.net>
625 * doc/m4.texinfo (Patsubst): Fix typo.
627 2006-12-16 Eric Blake <ebb9@byu.net>
629 * src/m4.c (main): Check for errors when closing stdin.
631 2006-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
633 * doc/m4.texinfo: Fix some typos.
635 2006-12-09 Eric Blake <ebb9@byu.net>
637 * configure.ac (AC_INIT): Bump version number.
638 * NEWS: Start changes of 1.4.8a.
640 2006-11-20 Eric Blake <ebb9@byu.net>
643 * configure.ac (AC_INIT): Bump version number.
644 * NEWS: Describe changes since 1.4.7.
646 2006-11-16 Eric Blake <ebb9@byu.net>
648 * doc/m4.texinfo (Include, Search Path, Diversions, Divert):
649 Minor tweaks noticed while porting to head.
651 2006-11-14 Eric Blake <ebb9@byu.net>
653 * src/output.c (cleanup_tmpfile, freeze_diversions): Clean up
655 (m4_tmpname): Avoid memory leak.
657 2006-11-13 Eric Blake <ebb9@byu.net>
659 * src/output.c (cleanup_tmpfile): Avoid double error message when
660 umask is prohibitive.
661 (m4_tmpname, m4_tmpopen, m4_tmpclose, m4_tmpremove): New
663 (m4_tmpfile): Add parameter, move cloexec action here.
664 (make_room_for): Adjust caller. Don't keep too many files open.
665 (insert_diversion_helper): Unlink emptied temp files.
666 (make_diversion): Don't keep too many files open.
667 * doc/m4.texinfo (Diversions): Tweak wording, now that open file
668 descriptors are no longer a limiting factor.
669 * NEWS: Document this change.
671 Backport sparse diversion handling from head.
672 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
674 * src/output.c (struct m4_diversion): Rename from struct
675 diversion, and update members. All users changed.
676 (diversion_table): Change to an ordered set, instead of an array.
677 (div0): New storage for diversion 0.
678 (diversions): No longer needed.
679 (free_list): New list to allow recycling diversion storage.
680 (diversion_storage): New storage to reduce malloc overhead.
681 (cmp_diversion_CB, threshold_diversion_CB): New callbacks.
682 (output_init, output_exit, cleanup_tmpfile, make_room_for)
683 (make_diversion): Handle new diversion storage scheme.
684 (insert_diversion_helper): New function.
685 (insert_diversion, undivert_all, freeze_diversions): Use it.
686 * doc/m4.texinfo (Divert, Diversions): Move hidden test of memory
687 exhaustion to visible test of large diversion numbers.
688 * NEWS: Document this fix.
690 2006-11-11 Eric Blake <ebb9@byu.net>
692 * src/builtin.c (m4_translit): Slight optimization.
694 * src/m4.h (to_uchar): Depend on HAVE_INLINE.
696 * src/builtin.c: Remove unnecessary casts.
697 (expand_ranges): Make 8-bit clean.
698 * doc/m4.texinfo (Translit): Add tests and wording.
699 * NEWS: Document this fix.
701 2006-11-07 Eric Blake <ebb9@byu.net>
703 * src/m4.h (output_exit): New prototype.
704 * src/m4.c (main): Use it.
705 * src/output.c (cleanup_tmpfile): Close files before removing
707 (insert_diversion): Check for failure.
708 (output_exit): Avoid memory leak.
709 * doc/m4.texinfo (Diversions): Test this bug.
711 * doc/m4.texinfo (Esyscmd, Errprint): Minor touchups.
713 2006-11-01 Eric Blake <ebb9@byu.net>
715 Allow C++ compilation on Linux, as a safety measure in type
717 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
719 * src/m4.h (hack_symbol, hack_all_symbols): Use full prototype.
720 (boolean): Kill this, and use stdbool.h instead.
721 * src/debug.c, src/eval.c, src/input.c, src/macro.c, src/m4.c:
722 * src/output.c, src/symtab.c: All users changed.
723 * src/symtab.c (hack_all_symbols): Update prototype.
724 * src/builtin.c (dump_symbol, set_trace): Update signature.
725 (m4_dumpdef, m4_traceon, m4_traceoff): Update callers.
726 (mkstemp_helper, m4_m4wrap, expand_ranges, m4_translit): Allow
728 * src/debug.c (trace_flush): Likewise.
729 * src/freeze.c (reload_frozen_state): Likewise.
730 * src/input.c (push_file, push_string_finish, push_wrapup):
731 (token_bottom, next_token): Likewise.
732 * src/m4.c (main): Likewise.
734 * doc/m4.texinfo (Invoking m4): Update according to POSIX 200x
736 * src/m4.h (m4_path_search): Tweak signature.
737 * src/path.c (m4_path_search): Likewise.
738 * src/builtin.c (include): Update caller.
739 * src/m4.c (main): Allow -D, -U, -t, and -s to be interspersed
740 with file names. Don't write to **argv.
741 (process_file): New helper method.
742 * NEWS: Document this fix.
744 2006-10-31 Eric Blake <ebb9@byu.net>
746 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import strstr'.
747 * doc/m4.texinfo (Translit): Improve the documentation.
748 * src/builtin.c (m4_translit): Optimize to O(n) instead of O(n^2)
750 (m4_index): Simplify, and speed up slightly.
751 * NEWS: Document this fix.
753 2006-10-28 Eric Blake <ebb9@byu.net>
755 * src/input.c (set_quotes): Don't allow empty end-quote with
756 non-empty start-quote.
757 (set_comment): Likewise for end-comment.
758 * src/builtin.c (m4_changecom): Adjust caller.
759 * doc/m4.texinfo (Changequote, Changecom): Update documentation to
761 (Incompatibilities): Document another POSIX bug.
762 * NEWS: Mention this change.
764 2006-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
766 * examples/Makefile.am (EXTRA_DIST): Distribute recently-added
769 2006-10-26 Eric Blake <ebb9@byu.net>
771 Silence -Wwrite-strings -Wpointer-arith warnings.
772 * src/builtin.c (define_user_macro): Allow NULL argument.
773 (m4_builtin, m4_indir): Cast away const of "".
774 * src/format.c (format): Likewise.
775 * src/macro.c (collect_arguments): Likewise.
776 (expand_macro): Avoid math on void*.
777 * src/m4.c (main): Adjust caller.
778 * src/output.c (freeze_diversions): Detect off_t overflow.
780 * src/input.c (pop_input): Remove unnecessary code.
782 2006-10-25 Eric Blake <ebb9@byu.net>
784 * src/symtab.c (symtab_init): Avoid size_t overflow.
785 * src/output.c (make_diversion): Avoid size_t overflow.
786 * doc/m4.texinfo (Diversions): Test this fix.
787 * src/input.c (input_block): Remove unused member. Reduce size
789 (push_file, pop_input): Avoid useless assignment.
790 * NEWS: Document the bug fix.
792 Redo location tracking. Instead of having just files track the
793 line to return to when popping input, now all input blocks track
795 * src/input.c (INPUT_STRING_WRAP, INPUT_FILE_INIT): No longer
797 (input_block): Have line and file storage for all input types, and
799 (input_change): New global flag.
800 (push_file, push_macro, push_string_init, push_wrapup): Store
802 (push_string_finish, pop_input, pop_wrapup): Notice changes in
804 (peek_input): Adjust to new member names.
805 (next_char, next_char1): Adjust location if needed.
806 (skip_line): Simplify restoring location.
807 * doc/m4.texinfo (Location): Augment the test to catch line
808 location of expansion of multi-line arguments.
809 Reported by Stepan Kasal.
811 2006-10-23 Eric Blake <ebb9@byu.net>
813 * doc/m4.texinfo (Macro Arguments): Document that leading space
814 in argument collection stops at macro expansion.
815 (Incompatibilities): Document POSIX whitespace wording issue.
817 2006-10-20 Eric Blake <ebb9@byu.net>
819 * doc/m4.texinfo: Trailing '@comment' doesn't format nicely in
820 TeX, so recognize '@w{ }' instead. Likewise, @code{_name} at the
821 end of a TeX line splits incorrectly.
822 (Foreach, Improved foreach): Write these sections, borrowing ideas
823 from CVS head and from m4sugar.
824 * checks/get-them: Accomodate new way to show trailing space in
826 * examples/foreach.m4: Make usable in documentation.
827 * examples/foreachq.m4: New file.
828 * examples/foreachq2.m4: New file.
829 * examples/foreach2.m4: New file.
830 * NEWS: Document the documentation updates.
832 2006-10-19 Eric Blake <ebb9@byu.net>
834 * src/builtin.c (mkstemp_helper, m4_mkstemp): New functions.
835 (m4_maketemp): Provide traditional behavior.
836 * doc/m4.texinfo (Mkstemp): Rename from Maketemp. Document the
837 new `mkstemp' macro and the flaws of the old `maketemp'.
838 (Incompatibilities): Move maketemp discussion to...
839 (Extensions): ...here, since -G now supresses the GNU extension.
840 * NEWS: Document this.
842 * examples/forloop.m4: Simplify.
843 * examples/forloop2.m4: New file.
844 * examples/quote.m4: New file.
845 * doc/m4.texinfo (Loops): Rename to...
846 (Shift): ...this node.
847 (Forloop, Foreach, Improved forloop, Improved foreach): New
850 2006-10-17 Eric Blake <ebb9@byu.net>
852 * m4/gnulib-cache.m4: Update with 'gnulib-tool --import
854 * configure.ac (AC_CONFIG_HEADERS): Create config.h alongside
855 gnulib headers, rather than in top directory.
856 * src/Makefile.am (AUTOMAKE_OPTIONS): Add nostdinc, to reduce make
859 2006-10-16 Eric Blake <ebb9@byu.net>
861 * doc/m4.texinfo: Backport some minor cleanups from head.
862 (Cleardivert): Rename from cleardiv.
864 * doc/m4.texinfo (Invoking m4): Promote to a chapter, instead of
865 a section of Preliminaries.
866 (Operation modes, Preprocessor features, Limits control)
867 (Frozen state, Debugging options, Command line files): Subdivide
869 (Input processing, Quoting Arguments, Define, Arguments)
870 (Cleardiv, Format, M4exit): Fix grammar of references.
871 (Inhibiting Invocation, Macro Arguments, Builtin, Trace)
872 (Debug Levels, Debug Output, Include, Search Path, Divert)
873 (Platform macros, Syscmd, Location, Extensions): Point to new
875 (Top, Loops, Include, Undivert, Location, Incompatibilities):
876 Improve file references.
878 2006-10-14 Eric Blake <ebb9@byu.net>
880 * m4/input.c (file_clean): Don't close stdin twice, POSIX says it
882 Reported by Ralf Wildenhues.
884 * src/builtin.c (m4_undivert): Check for read error.
886 2006-10-13 Eric Blake <ebb9@byu.net>
888 * src/m4.h (UNIX, W32_NATIVE, OS2): Move platform checks after
889 header files are included, since <unistd.h> can affect the tests.
891 Reported by Martin Koeppe.
893 Backport head's usage of clean-temp module, as it is cleaner than
895 * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
896 clean-temp closeout', and remove tmpfile-safer.
897 * src/m4.h (includes): Adjust.
898 (m4_path_search): Rename from path_search, to avoid collision
900 * src/m4.c (main): Install closeout handler. Adjust caller.
901 (usage): Now done by closeout module.
902 * src/builtin.c (m4_m4exit): Likewise.
903 (m4_undivert, include): Adjust callers.
904 * src/freeze.c (reload_frozen_state): Likewise.
905 * src/path.c (m4_path_search): Rename from path_search.
906 * src/output.c (output_temp_dir): New variable.
907 (cleanup_tmpfile, m4_tmpfile): New functions, from head.
908 (insert_diversion, make_room_for): Use them.
909 * doc/m4.texinfo (Diversions): Document this, and add a test.
910 (Improved fatal_error): Fix typo.
911 (Maketemp): Port test to mingw, and no longer hide from
913 * NEWS: Document the change in TMPDIR behavior.
915 * configure.ac (m4_pattern_forbid): Narrow the range of forbidden
916 macros, to work with recent gnulib-tool update.
918 * src/builtin.c (m4_builtin, m4_indir): Allow transparent
919 handling of defn results.
920 * doc/m4.texinfo (Builtin, Indir): Add test cases.
921 * NEWS: Document this.
923 2006-10-12 Eric Blake <ebb9@byu.net>
925 * doc/m4.texinfo (Location): Fix typo in previous commit.
926 (Changeword): Catch one more case.
927 * src/input.c (skip_line): Fix case when outer file used macro to
930 2006-10-11 Eric Blake <ebb9@byu.net>
932 * src/input.c (enum input_type): Add additional types, to shave
933 time off the common case.
934 (push_wrapup): Wrapped strings remember location.
935 (push_string_finish): Normal strings carry no location.
936 (push_file): Start new files uninitialized.
937 (peek_input, next_char_1): Optimize common cases by updating
938 location only on new input types.
939 (pop_input): Update to honor new input types.
940 (skip_line, push_string_finish): Fix regression in previous patch
941 when dnl is not followed by newline in included file.
942 (push_string_init): Initialize all fields of INPUT_STRING sooner.
943 (peek_token): Simplify.
944 (peek_input): Don't pop input files on peek, so that __file__ and
945 __line__ as last token of include file work correctly.
946 * doc/m4.texinfo (History): Mention 1.4.8.
947 (Answers): Split into sections, one per answer.
948 (Improved exch, Improved cleardivert, Improved fatal_error): New
950 (Dnl, M4wrap, Location, M4exit, Improved fatal_error): Update to
951 new m4wrap location semantics.
952 (Changeword): Add test that caught the regression.
953 * NEWS: Document this.
955 * src/macro.c (expand_macro): In macro expansion errors, report
956 line number at open parenthesis.
957 * src/input.c (next_token): Fix off-by-one bug in reporting end
958 of file in unterminated comment and string.
959 (file_names): New obstack, necessary since expand_macro now hangs
960 on to file names longer than the files remain open.
961 (input_init): Initialize new obstack.
962 (push_file): Use new obstack. Delay updates to current_file
963 until after expand_macro has restored state.
964 (peek_input, next_char_1): Update current_file if necessary.
965 (pop_wrapup): Release memory.
966 * doc/m4.texinfo (Macro Arguments, Changequote, Changecom): Catch
968 (Dnl): Update to the new location reporting rules.
969 * NEWS: Document these changes.
971 2006-10-10 Eric Blake <ebb9@byu.net>
973 * src/macro.c (argc_stack, argv_stack): New variables for sharing
974 obstacks across multiple macro calls.
975 (expand_input): Initialize and tear down stack once per input
976 file, instead of once per macro.
977 (expand_macro): Reuse existing stacks when possible.
978 (collect_arguments): Simplify slightly.
980 * src/path.c (include_env_init): Fix botched patch application.
981 Reported by Ralf Wildenhues.
983 2006-10-09 Eric Blake <ebb9@byu.net>
985 * src/m4.c (usage, main): Detect write failures to stderr.
986 * src/builtin.c (m4_m4exit): Likewise.
987 * NEWS: Document this.
989 * src/macro.c (expand_macro): Allow --nesting-limit=0 to remove
991 * NEWS: Document this.
992 * doc/m4.texinfo (Invoking m4): Likewise.
994 2006-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
996 * src/path.c (include_env_init): Copy the string returned
997 by getenv before overwriting it; POSIX disallows this.
999 2006-10-09 Eric Blake <ebb9@byu.net>
1001 * src/m4.c (main): Defer debugfile until after --help.
1002 * configure.ac (AC_INIT): Bump version number.
1003 * NEWS: Start changes of 1.4.7a.
1005 2006-09-25 Eric Blake <ebb9@byu.net>
1008 * configure.ac (AC_INIT): Bump version number.
1009 * NEWS: Describe changes since 1.4.6.
1011 2006-09-21 Eric Blake <ebb9@byu.net>
1013 * doc/m4.texinfo (Invoking m4): Add clarification on option
1014 processing behavior.
1016 Reported by Mikhail Teterin.
1018 * bootstrap: Add --force option, based on idea from coreutils.
1019 * README: Document that ./bootstrap and autoreconf are for
1020 developers, and not lightly done in tarballs.
1022 2006-09-20 Eric Blake <ebb9@byu.net>
1024 * src/m4.c (usage, OPTSTRING, main): Rename -e to -i, and give
1025 deprecation warning on -e.
1026 * doc/m4.texinfo (Invoking m4, Extensions): Document this.
1027 * NEWS: Document this.
1029 2006-09-19 Eric Blake <ebb9@byu.net>
1031 * src/m4.c (usage, long_options, main, DEBUGFILE_OPTION): Rename
1032 -o/--error-output to --debugfile, and deprecate the former. This
1033 will allow a future release to be more consistent with other GNU
1034 tools, with -o/--output affecting stdout, not debug.
1035 * doc/m4.texinfo (Invoking m4, Debug Output): Document this.
1036 * NEWS: Document this.
1038 2006-09-14 Eric Blake <ebb9@byu.net>
1040 * src/m4.c (main): Warn on deprecated options -B, -S, -T, -N,
1041 --diversions. `m4 --help --version' now displays help, not
1043 (interactive, frozen_file_to_read, frozen_file_to_write): Move to
1045 (show_help, show_version): No longer needed.
1046 (long_options, DIVERSIONS_OPTION): Backport patch from head to
1047 distinguish between -N and --diversions in warning.
1048 * doc/m4.texinfo (Invoking m4): Document this.
1051 2006-09-11 Eric Blake <ebb9@byu.net>
1053 * src/Makefile.am (m4_LDADD): Add any gnulib dependent libraries.
1054 * src/debug.c (debug_flush_files) [UNIX]: Flush stdin if it is
1056 (debug_set_file): Use STDOUT_FILENO.
1057 * src/builtin.c (m4_m4exit): Flush stdin before exiting, to comply
1058 with POSIX in regards to unread input.
1059 * NEWS: Document this fix.
1060 * doc/m4.texinfo (Syscmd, Esyscmd, M4exit): Likewise.
1062 2006-09-07 Eric Blake <ebb9@byu.net>
1064 * m4/gnulib-cache.m4: Update to newer gnulib-tool.
1065 * src/m4.h (push_file): Change prototype.
1066 * src/input.c (push_file, peek_input, next_char_1): Only call getc
1067 once at EOF, to avoid double ^D on terminal stdin; regression from
1069 (push_file, pop_file): Allow reading stdin twice.
1070 * src/m4.c (main): Likewise.
1071 * src/builtin.c (include): Update caller.
1072 * NEWS: Document this change.
1073 * doc/m4.texinfo (Invoking m4, Incompatibilities): Likewise.
1074 (Syscmd): Add a test that failed before this patch.
1076 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1078 * checks/check-them: Quote $pwd.
1080 2006-09-05 Eric Blake <ebb9@byu.net>
1082 * src/builtin.c (define_macro): Warn on invalid macro name.
1083 * NEWS: Document this change.
1084 * doc/m4.texinfo: Fix typos.
1085 (Invoking m4, Macro Arguments, Pseudo Arguments, Defn, Indir)
1086 (Ifelse): Backport some improvements from head.
1088 2006-09-04 Eric Blake <ebb9@byu.net>
1090 * doc/m4.texinfo (Changeword): Skip test on mingw, where the
1091 native echo is braindead.
1092 * checks/check-them (strip_needed): Ignore \r in output. Now the
1093 testsuite will pass when cross-compiling from cygwin to mingw.
1095 * src/input.c (peek_input): Fix regression in handling macro
1096 without arguments as last token in file; debian bug 385720.
1097 (next_token): Always consume an input character.
1098 Reported by Andreas Schultz.
1099 * configure.ac (AC_INIT): Bump version number.
1100 * NEWS: Document this fix.
1101 * doc/m4.texinfo (History): Mention next version.
1102 (Changeword): Add example that exposes this bug.
1105 2006-08-25 Eric Blake <ebb9@byu.net>
1108 * configure.ac (AC_INIT): Bump version number.
1109 * NEWS: Describe changes since 1.4.5.
1111 * Makefile.maint (web-manual): Give up on VPATH build during
1112 distribution. But distributions are made so infrequently that
1113 this is not too much of a hardship.
1114 * Makefile.am (MAINTAINERCLEANFILES): Avoid error if lib/CVS/
1117 2006-08-24 Eric Blake <ebb9@byu.net>
1119 * src/builtin.c (m4_index, m4_substr, m4_translit): Similar to
1120 Solaris, produce output on just one argument.
1121 (m4_regexp, m4_patsubst): For consistency, do likewise.
1122 (m4_patsubst): Allow zero-length match at end of string.
1123 * doc/m4.texinfo (Sysval): Fix overfull hbox.
1124 (Bugs, Macro Arguments): Minor fixes.
1125 (Other tokens): Rearrange node order.
1126 (Index macro, Substr, Translit, Regexp, Patsubst): Add tests.
1127 * NEWS: Document these fixes.
1129 2006-08-22 Eric Blake <ebb9@byu.net>
1131 * src/input.c (pop_input): Avoid empty filename with -di option.
1132 * src/debug.c (debug_message_prefix): Put space before message.
1134 * m4/gnulib-cache.m4: We don't explicitly use alloca module.
1136 * m4/gnulib-cache.m4: Augment with gnulib-tool --import gnupload.
1137 * Makefile.maint (fetch): Simplify, now that we can use gnupload.
1139 * checks/check-them: State why a test is skipped.
1140 * doc/m4.texinfo (Changeword, Sysval, Maketemp): Likewise.
1142 * ChangeLog: Add copyright.
1143 * AUTHORS: Likewise.
1144 * BACKLOG: Likewise.
1148 * examples/COPYING: New file, add copyright for all the examples.
1149 * checks/get-them: Put copyright on testsuite files.
1151 2006-08-18 Eric Blake <ebb9@byu.net>
1153 Don't let unrelated child processes see too many files.
1154 * m4/gnulib-cache.m4: Augment with gnulib-tool --import cloexec.
1155 * src/builtin.c (m4_esyscmd, m4_regexp, m4_patsubst): Fix
1156 spelling in error message.
1157 * src/debug.c [!__STDC__]: Assume C89, and nuke old varargs.h.
1158 (debug_set_output): Close debug file on exec.
1159 * src/m4.h (includes): Add cloexec.h.
1160 * src/output.c (make_room_for): Close diversions on exec.
1161 * src/path.c (path_search): Close include files on exec.
1162 * NEWS: Document this.
1164 Regular expressions were leaking memory.
1165 * src/builtin.c (init_pattern_buffer, free_pattern_buffer): New
1167 (m4_regexp, m4_patsubst): Avoid memory leak.
1168 * src/input.c (init_pattern_buffer) [ENABLE_CHANGEWORD]: Make
1170 (set_word_regexp) [ENABLE_CHANGEWORD]: Avoid memory leak. Change
1171 from O(n^2) to O(n) for calculating word_start.
1172 (next_token, peek_token) [ENABLE_CHANGEWORD]: Treat word_start as
1173 O(1) bitmap, not O(n) search string.
1174 * NEWS: Document this fix.
1176 2006-08-17 Eric Blake <ebb9@byu.net>
1178 * NEWS: Document previous checkin.
1180 * src/builtin.c (substitute): Avoid core dump when accessing
1181 beyond bound of regular expression.
1182 Reported by Karl Nelson.
1183 * doc/m4.texinfo (Regexp): Add example that causes core dump on
1184 some architectures prior to this patch.
1187 2006-08-16 Eric Blake <ebb9@byu.net>
1189 * doc/m4.texinfo (Invoking m4, Debug Output): Fix wording to be
1190 clear that dumpdef does not always go to stderr.
1192 * src/builtin.c (m4_errprint): Flush buffers before printing to
1196 2006-08-15 Eric Blake <ebb9@byu.net>
1198 * src/builtin.c (m4_m4wrap, m4_errprint, m4_shift): Make blind,
1199 per debian bug 96075.
1200 * doc/m4.texinfo (Loops, M4wrap, Errprint): Document this change.
1201 (Changeword): Don't use shift as an example of a swallowed word.
1202 (Divert): Discuss fact that divert is an English word.
1203 Reported by Richard A Nelson.
1205 2006-08-14 Eric Blake <ebb9@byu.net>
1207 * doc/m4.texinfo (Invoking m4): Minor fixes.
1209 2006-08-12 Eric Blake <ebb9@byu.net>
1211 * doc/m4.texinfo (Arguments): Hint at better exch macro.
1212 (Answers): Provide a better definition.
1214 2006-08-09 Eric Blake <ebb9@byu.net>
1216 * doc/m4.texinfo (Incompatibilities): Document that m4 does not
1217 yet understand locales.
1218 * NEWS: Fix wording of a few items.
1220 2006-08-08 Eric Blake <ebb9@byu.net>
1222 Avoid printing `NONE:0:' in error messages.
1223 * src/m4.h (m4_error_at_line): New function.
1224 * src/m4.c (m4_error_at_line): Implement.
1225 * src/input.c (skip_line, input_init, next_token): Use "", not
1226 "NONE", for no file, since NONE can be a real file name.
1227 * src/macro.c (expand_argument): Likewise.
1228 * src/debug.c (debug_message_prefix, trace_header): Check for
1230 * doc/m4.texinfo (Dnl, M4wrap): Adjust accordingly.
1231 (Location): Document that synclines and internal message format
1232 are not impacted by redefining these macros.
1233 (M4exit): Hint at bug in fatal_error.
1234 (Answers): Provide workaround to match m4 output.
1236 * m4/gnulib-cache.m4: Augment with gnulib-tool --import verror.
1237 * src/m4.h (m4_error): New function.
1238 (M4ERROR, M4ERROR_AT_LINE): Reimplement without hacking around
1239 error module deficiencies.
1240 (reference_error, suppress_line): No longer needed.
1241 * src/m4.c (m4_error): Implement.
1242 (main): No longer need to install error callback.
1244 2006-08-04 Eric Blake <ebb9@byu.net>
1246 * src/m4.h (program_name): Declare.
1247 (suppress_line): New variable.
1248 (M4ERROR_AT_LINE): New macro.
1249 * src/m4.c (reference_error, main): Follow GNU Coding Standards
1250 for error message format.
1251 * src/input.c (skip_line, next_token): Use M4ERROR_AT_LINE.
1252 * src/macro.c (expand_argument): Likewise.
1253 * checks/check-them (examples): Adjust to new message format.
1254 * src/builtin.c (m4___program__): New builtin.
1255 * doc/m4.texinfo (Location): Split from Errprint into new node,
1256 and document __program__.
1257 (Builtin, Ifdef, Ifelse, Dumpdef, Trace, Debug Output, Dnl)
1258 (Include, Regexp, Patsubst, Incr, Eval): Adjust error message
1260 (Extensions): Document __program__.
1261 * NEWS: Document this change.
1263 2006-08-03 Eric Blake <ebb9@byu.net>
1265 Don't confuse leading `(' in comment or quote with start of
1266 argument collection.
1267 * src/m4.h (enum token_type): Add TOKEN_OPEN, TOKEN_COMMA,
1269 (peek_input): Make private to input.c.
1270 (peek_token): New prototype.
1271 * src/input.c (default_word_regexp): Reduce ifdefs.
1272 (peek_input): Make static.
1273 (next_token): Return new token types.
1274 (match_input, MATCH): Add argument consume, which controls
1275 whether match should be pushed back.
1276 (peek_token): New function.
1277 (token_type_string) [DEBUG_INPUT]: New function.
1278 * src/macro.c (expand_token, expand_argument, collect_arguments):
1279 Handle new token types.
1280 * doc/m4.texinfo (Changequote, Changecom): Document this.
1281 * NEWS: Document this.
1283 * src/stackovf.c (setup_stackovf_trap): Free memory on failure.
1285 * src/stackovf.c (setup_stackovf_trap): Gracefully avoid stack
1286 overflow detection when sigstack exists but is not implemented.
1287 Fixes debian bug 154053.
1289 Reported by David Perlin.
1291 2006-08-02 Eric Blake <ebb9@byu.net>
1293 * src/input.c (MATCH): Fix EOF detection on multi-byte comment
1296 2006-08-01 Eric Blake <ebb9@byu.net>
1298 * src/input.c (skip_line, next_token): Remember current file in
1299 case input file ends abruptly. Addresses debian bug 175365.
1300 (pop_input): Defer freeing storage that holds previous file
1302 (pop_wrapup): to here, after error message is issued.
1303 * src/macro.c (expand_argument): Remember current file in case
1304 input file ends abruptly.
1305 * doc/m4.texinfo (Macro Arguments, Dnl, Changequote, Changecom)
1306 (M4wrap): Adjust testsuite accordingly.
1307 (Errprint): Document line number limitation of m4wrap.
1308 * NEWS: Document this fix.
1311 2006-07-31 Eric Blake <ebb9@byu.net>
1313 * src/input.c (peek_input, next_char, match_input): Be eight-bit
1314 clean; fixes debian bug 311378.
1315 * doc/m4.texinfo (Syntax): Describe eight-bit handling.
1316 (Changequote, Changecom): Add examples to test this.
1317 * NEWS: Document this fix.
1319 Reported by Steven Augart.
1321 * doc/m4.texinfo: Whitespace fix.
1322 * checks/get-them: Avoid exceeding 14-char file name limit.
1325 2006-07-30 Eric Blake <ebb9@byu.net>
1327 * src/path.c (path_search): Detect allocation failure.
1329 Use native free when it is good enough.
1330 * m4/gnulib-cache.m4: Augment with gnulib-tool --import free.
1331 * src/builtin.c (define_user_macro, m4_regexp, m4_patsubst):
1333 * src/symtab.c (free_symbol): Likewise.
1334 * src/m4.c (xfree, main): Likewise.
1335 * src/m4.h (obstack_chunk_free): Likewise.
1336 * src/path.c (path_search): Likewise.
1337 * src/input.c (pop_wrapup, set_quotes, set_comment): Likewise.
1339 * doc/m4.texinfo (Errprint): Add example for last patch.
1340 * checks/check-them: Account for VPATH in latest example.
1342 2006-07-29 Eric Blake <ebb9@byu.net>
1344 * src/path.c (path_search): Add result parameter, so that
1345 -I can be accounted for. Debian bug 53685.
1346 * src/m4.h (path_search): Update prototype.
1347 * src/m4.c (main): Adjust callers.
1348 * src/freeze.c (reload_frozen_state): Likewise.
1349 * src/builtin.c (include, m4_undivert): Likewise.
1350 * NEWS: Document this change.
1351 Reported by Nicolas Lichtmaier.
1353 2006-07-28 Eric Blake <ebb9@byu.net>
1355 * Makefile.am (MAINTAINERCLEANFILES): Fix typo that tripped up
1356 several non-GNU makes.
1357 * src/stackovf.c (setup_stackovf_trap): Missed _ from yesterday.
1358 * src/m4.h: Likewise.
1359 * src/input.c (push_wrapup): Avoid compiler warning with Solaris
1362 2006-07-27 Eric Blake <ebb9@byu.net>
1364 * doc/m4.texinfo: Use @acronym{GNU} throughout.
1365 (History): Update for 1.4.6.
1367 * src/m4.h (_): Remove K&R cruft.
1368 * src/builtin.c: Likewise.
1369 * src/debug.c: Likewise.
1370 * src/eval.c: Likewise.
1371 * src/macro.c: Likewise.
1372 * src/stackovf.c: Likewise.
1374 * doc/Makefile.am (m4.1): Improve man page.
1375 * src/m4.c (usage): Improve --help output, including adding the
1376 bug reporting address.
1377 (main): Follow GNU Coding Standards for --version output.
1379 2006-07-26 Eric Blake <ebb9@byu.net>
1381 * doc/m4.texinfo: Use begin-quote, end-quote, begin-comment, and
1382 end-comment consistently, to match POSIX.
1384 * doc/m4.texinfo (Macro Arguments, Changequote, Changecom)
1385 (Dnl, M4wrap, Include): Document EOF issues, and add examples.
1386 (Incompatibilities): Document incompatibility of changecom
1387 vs. macro names, and of EOF in include.
1388 * src/input.c (next_token): Reject unterminated comments at EOF.
1389 (skip_line): Warn on unterminated dnl at EOF.
1390 * NEWS: Document these changes.
1392 2006-07-25 Eric Blake <ebb9@byu.net>
1394 * m4/gnulib-cache.m4: Update to reflect gnulib's split of
1395 stdio-safer into fopen-safer and tmpfile-safer.
1396 * src/m4.c: Remove redundant include.
1398 2006-07-24 Eric Blake <ebb9@byu.net>
1400 Fix bugs related to stream handling.
1401 * m4/gnulib-cache.m4: Augment with gnulib-tool --import
1402 unlocked-io stdio-safer stdlib-safer close-stream.
1403 * configure.ac (AC_CHECK_FUNCS_ONCE): Assume tmpfile; it can be
1404 provided by gnulib if needed.
1405 * src/output.c [! HAVE_TMPFILE]: Likewise.
1406 * src/m4.h (includes): Replace unistd, stdio, and stdlib with
1407 their safer counterparts.
1408 (retcode): New global variable.
1409 * src/input.c (pop_input): Check for read failure.
1410 * src/freeze.c (reload_frozen_state): Likewise.
1411 (produce_frozen_state): Check for write failure.
1412 * src/debug.c (debug_set_file): Likewise.
1413 * src/m4.c (usage, main): Likewise.
1414 (retcode): Make global.
1415 * src/builtin.c (m4_m4exit): Likewise. Ensure that the exit
1416 status is non-zero except when everything succeeds.
1417 * doc/m4.texinfo (M4exit): Document these changes.
1418 (Incompatibilities): Remove documentation of bug now fixed.
1419 * NEWS: Document these fixes.
1421 2006-07-22 Eric Blake <ebb9@byu.net>
1423 * src/format.c (format): Avoid compiler warning that str may be
1426 2006-07-21 Eric Blake <ebb9@byu.net>
1428 * src/m4.h [UNIX]: Add more platforms that are close enough to
1429 categorize as UNIX, but which don't predefine __unix__.
1430 Reported by Nelson H. F. Beebe.
1432 2006-07-20 Eric Blake <ebb9@byu.net>
1434 * m4/gnulib-cache.m4: gnulib-tool has changed again. Regenerate
1435 to explicitly ask for --assume-autoconf=2.60.
1437 2006-07-19 Eric Blake <ebb9@byu.net>
1439 * doc/m4.texinfo (Sysval): Avoid kill -1, since ksh traps SIGHUP
1440 and exits normally with 129.
1441 Reported by Nelson H. F. Beebe.
1444 * src/m4.h (EXIT_MISMATCH): Define.
1445 * src/freeze.c (reload_frozen_state): Detect version mismatch, by
1446 exiting with status 63.
1447 * src/m4.c (usage): Document this.
1448 * doc/m4.texinfo (Invoking m4, Using frozen files): Likewise.
1451 * doc/m4.texinfo (copying): Relax restriction on front-cover and
1454 2006-07-17 Eric Blake <ebb9@byu.net>
1456 * src/format.c (format): Support F, g, and G specifiers.
1457 * doc/m4.texinfo (Format): Document this.
1458 * NEWS: Document this addition.
1460 * doc/m4.texinfo (Builtin): Delete redundant text.
1462 * configure.ac (AC_INIT): Bump version number.
1463 * src/builtin.c (substitute): Bah. Fix buffer overrun.
1464 * NEWS: Document this fix.
1466 2006-07-15 Eric Blake <ebb9@byu.net>
1469 * configure.ac (AC_INIT): Bump version number.
1470 * NEWS: Describe changes since 1.4.4.
1472 * src/m4.c (usage): Document exit status.
1473 * doc/m4.texinfo: Use `exit status', not `exit code'.
1474 (Invoking m4): Document exit status.
1476 * bootstrap: Backport --help, --version from head.
1477 (func_update): New function, for easily grabbing up-to-date files
1479 * Makefile.maint (web-manual): Fix for VPATH builds.
1481 2006-07-14 Eric Blake <ebb9@byu.net>
1483 * doc/m4.texinfo: Global cleanup. Avoid @code{...}'d, as it
1484 looks bad in info. Use @deffn rather than @example for
1485 describing prototypes. Fix awkward wording and grammar.
1487 * src/builtin.c (substitute): Warn on bad escape sequences.
1488 Ignore trailing backslash.
1489 * doc/m4.texinfo (Regexp): Add documentation for this.
1490 * NEWS: Document this change.
1492 * src/builtin.c (m4_format, m4_indir): Warn on too few arguments.
1493 * doc/m4.texinfo (Defn, Builtin, Debug Levels, Debug Output): Add
1495 (Dnl): Update example to show side effects.
1496 * checks/get-them: Generate three digit test names.
1497 * checks/Makefile.in (CHECKS): Accomodate 100+ tests.
1499 2006-07-13 Eric Blake <ebb9@byu.net>
1501 * src/input.c (input_init): Simplify.
1502 (set_word_regexp): Treat empty string as default, since empty
1503 regexp would disable word parsing.
1504 * src/m4.c (user_word_regexp): Default to empty string.
1505 * src/builtin.c (builtin_tab): Make changeword blind.
1506 * doc/m4.texinfo (Changeword): Document this.
1507 * NEWS: Document this.
1508 * TODO: Knock off completed items.
1510 * src/builtin.c (m4_undefine, m4_popdef): Visit all arguments, not
1512 * doc/m4.texinfo (Undefine, Pushdef): Test this.
1513 * NEWS: Document this change.
1515 * src/builtin.c (numeric_arg): Treat empty string as 0, with a
1516 warning. Detect quoted leading space and overflow as warnings.
1517 (m4_eval): Treat empty radix as 10, and allow output in radix 1.
1518 Treat width as minimum number of digits, as required by POSIX.
1519 (m4_ifdef, m4_divert, m4_m4exit, m4_translit): Ignore extra
1521 (m4_substr): Likewise. Silently treat empty start as 0.
1522 (m4_undivert): Treat ` 1a' as file, not diversion 1.
1523 * src/eval.c (eval_lex): Parse radix 1 numbers.
1524 * doc/m4.texinfo (Invoking m4): Fix wording; there is more than
1525 one type of warning.
1526 (Manual): Document behavior of numeric parsing of empty string.
1527 (Divert, Incr): Document error handling.
1528 (Eval): Document radices better.
1529 (Incompatibilities): Document translit incompatibility.
1530 * NEWS: Document these changes.
1532 * Makefile.maint (fetch): Get gendocs from gnulib, not texinfo.
1533 (web-manual): Simplify.
1534 * m4/gnulib-cache.m4: Augment with gnulib-tool --import gendocs.
1535 * Makefile.am (EXTRA_DIST): Distribute gendocs.sh.
1536 (MAINTAINERCLEANFILES): Clean it as well.
1537 * doc/Makefile.am (EXTRA_DIST): Distribute gendocs_template.
1538 (MAINTAINERCLEANFILES): Clean it as well.
1540 2006-07-12 Eric Blake <ebb9@byu.net>
1542 * doc/m4.texinfo (Extensions): Document how to overcome
1543 implementation difference in > 9 positional parameters.
1545 * src/m4.c (usage): Sort within sections.
1546 (nesting_limit): Raise default from 250 to 1024.
1547 * doc/m4.texinfo: Use file name, not filename, per GNU coding
1548 standard. Use @option where appropriate.
1549 (Invoking m4): Sort to match --help output.
1550 (Debug Levels): Sort.
1551 (Frozen files): Sort and break into two nodes.
1553 * src/m4.c (nesting_limit): Raise default from 250 to 1024.
1554 * NEWS: Document raised -L limit.
1556 2006-07-11 Eric Blake <ebb9@byu.net>
1558 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New macro, to
1559 stress-test changeword before a release.
1560 * doc/m4.texinfo: More doc cleanups.
1561 (Copying This Manual): New node; actually include the FDL in the
1563 * doc/Makefile.am (m4_TEXINFOS): Mention dependence on fdl.texi.
1564 * m4/gnulib-cache.m4: Augment with gnulib-tool --import fdl.
1565 * NEWS: Mention documentation improvements.
1567 * src/m4.h (OS2): New platform macro.
1568 * src/builtin.c (predefined_tab) [OS2]: Use it to give OS/2 a
1570 * doc/m4.texinfo (Platform macros): Document it.
1571 (Sysval): Remove non-portable test of system("").
1572 * NEWS: Document this change.
1573 Reported by Andreas Buening.
1575 2006-07-09 Eric Blake <ebb9@byu.net>
1577 * doc/m4.texinfo (Undivert): Fix typo in last commit.
1578 * src/m4.c (usage): Document M4PATH.
1579 * src/path.c (path_search): Reject empty string.
1580 * src/output.c (insert_diversion): Ignore diversion 0.
1581 * src/builtin.c (m4_undivert): Ignore empty string.
1582 * NEWS: Document this fix.
1584 2006-07-08 Eric Blake <ebb9@byu.net>
1586 * checks/get-them: Make filtering easier.
1587 * checks/check-them: Filter non-input lines, so line counts are
1588 more realistic in the documentation, and so changeword tests work
1589 even when dnl is disabled.
1590 * doc/m4.texinfo: Adjust example line numbers. Clean up
1591 front-matter, following autoconf's example.
1592 (Changeword): Enable tests, skipping if changeword not supported.
1593 (Define, Defn, Ifelse): Backport more examples from head.
1594 (Input processing, Answers): New nodes, backported from head.
1595 (Include): Expand test to cover empty filename.
1596 (Undivert): Add test of undivert(0).
1598 2006-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1600 * doc/m4.texinfo: Fix spelling errors.
1602 2006-07-07 Eric Blake <ebb9@byu.net>
1606 * doc/Makefile.am (m4.1): No need to go through a temporary file;
1607 this also ensures timestamps are updated.
1608 * src/m4.h (includes): Require config.h. Assume string.h,
1609 stdlib.h, errno. Include error.h, exit.h, and xalloc.h rather
1610 than prototyping ourselves.
1611 (builtin_func): Add parameter type-checking.
1612 (voidstar): Delete, now that we assume C89.
1613 * src/builtin.c, src/m4.c, src/macro.c, src/symtab.c: All users of
1615 * src/m4.c (xfree) [WITH_DMALLOC]: Avoid clash with dmalloc's
1618 2006-07-06 Eric Blake <ebb9@byu.net>
1620 * m4/gnulib-cache.m4: Augment with gnulib-tool --import
1622 * src/m4.h (includes): Add binary-io.h for O_BINARY.
1623 * src/freeze.c (produce_frozen_state): Use O_BINARY to remove
1624 #ifdef. Fixes patch from 2005-02-03 for cygwin.
1625 * NEWS: Mention this fix.
1627 * configure.ac (FUNC_SYSTEM_BROKEN): New check for OS/2 bug.
1628 * src/builtin.c (m4_syscmd): Work around OS/2 bug.
1630 * Makefile.am (SUBDIRS): Build . before src, so that autoheader
1631 runs first when needed.
1632 * doc/Makefile.am (m4.1): Backport rule from CVS head: build m4.1
1633 once in srcdir rather than multiple times in VPATH builds.
1635 2006-07-03 Eric Blake <ebb9@byu.net>
1637 * checks/check-them: Use portable = in test.
1638 * src/Makefile.am (AM_CPPFLAGS): Omit space between -I and
1639 directory, as required by Solaris cc. Include built headers, as
1640 required by Solaris make in VPATH build.
1641 * checks/Makefile.in: Use $(srcdir) where needed.
1642 (CHECKS): Factor $(srcdir) into macro.
1643 (DISTFILES): Likewise. Automake takes care of distributing
1646 (Makefile): Use modern syntax of config.status.
1647 * doc/m4.texinfo (Loops, Include, Undivert, Incompatibilities):
1648 Avoid overfull and underfull hboxes in dvi.
1650 Fix 'make check' in VPATH build. All files included by testsuite
1651 now live in a single directory. Use forloop.m4 in testsuite.
1652 * checks/incl.m4, checks/foo, checks/wrapfifo.m4: Move from
1654 * examples/incl.m4, examples/foo, examples/wrapfifo.m4: ...to
1656 * checks/Makefile.in (DISTFILES): Don't distribute moved files.
1657 * examples/Makefile.am (EXTRA_DIST): Distribute new files.
1658 * checks/check-them: Avoid s/// when filename is in pattern.
1659 * examples/forloop.m4: Fix to match documentation.
1660 * doc/m4.texinfo (Include, Undivert, Incompatibilities): Reflect
1662 (Loops, Format): Actually use forloop.m4 in tests.
1664 2006-07-02 Eric Blake <ebb9@byu.net>
1666 * checks/Makefile.in (exec_prefix, prefix): New macros, so that
1667 $(bindir) works in installcheck.
1668 (check, installcheck): No longer change directory, so that
1669 distcheck works with a read-only builddir.
1670 * checks/check-them: Work when pwd is no longer builddir.
1672 2006-07-01 Eric Blake <ebb9@byu.net>
1674 * GNUmakefile: New file, borrowed from coreutils.
1675 * Makefile.am (EXTRA_DIST): Distribute GNUmakefile.
1676 * Makefile.maint (Makefile): Delete this rule, now that
1677 GNUmakefile includes Makefile.
1679 2006-06-30 Eric Blake <ebb9@byu.net>
1681 For compatibility with other m4 implementations, sysval returns
1682 signal<<8 rather than 0 if syscmd is terminated by a signal.
1683 * configure.ac (AC_CHECK_HEADERS_ONCE): Check for sys/wait.h.
1684 * src/builtin.c (include): Include sys/wait.h when stdlib.h does
1685 not provide wait macros.
1686 (WTERMSIG, WIFSIGNALED, WIFEXITED): More fallback macros.
1687 (M4SYSVAL_EXITBITS, M4SYSVAL_TERMSIGBITS): New helper macros.
1688 (m4_esyscmd): Set sysval to -1 on failure.
1689 (m4_sysval): Print 127 on failure, and accomodate signals if they
1691 * NEWS: Document this change.
1692 * doc/m4.texinfo (Platform macros, Esyscmd, Sysval): Fix typos in
1694 * checks/check-them: Likewise.
1695 * src/debug.c (debug_set_file): Work around mingw fstat bug.
1697 * src/m4.h (UNIX, W32_NATIVE): Improve platform detection macros.
1698 * src/freeze.c (produce_frozen_state): Use new spelling of
1700 * src/builtin.c (predefined_tab): Add __windows__ on non-unix
1702 (m4_syscmd, m4_esyscmd): The empty command is successful.
1703 * doc/m4.texinfo (Shell commands): Rename from UNIX commands.
1704 Document platform-dependence of system().
1705 (Syscmd): Add example.
1706 (Esyscmd): Make example more robust, and actually demonstrate
1708 (Sysval): Expand test to cover esyscmd code path, and to check
1709 that empty command is successful. Add conditional check for
1711 (Other Incompatibilities): Move platform macros from here...
1712 (Platform macros): ...to this new node. Add windows macro.
1713 Check that exactly one platform macro is provided.
1714 * checks/check-them: Improve trap cleanup. Tolerate dirname and
1715 .exe in error messages. Allow for skipping checks.
1716 * configure.ac (HAVE_EFGCVT): Kill dead configure check.
1717 * NEWS: Document platform macros.
1719 2006-06-29 Eric Blake <ebb9@byu.net>
1721 Fix buffer overrun bug.
1722 * m4/gnulib-cache.m4: Augment with gnulib-tool --import
1724 * src/format.c [HAVE_EFGCVT]: Delete this code, and use *printf
1725 variant instead, since [efg]cvt are obsolete and our use of them
1726 was buggy (savannah sr #104303).
1727 (format): Fix buffer overflow by using xasprintf.
1728 * doc/m4.texinfo (Format): Expand format test to catch both bugs.
1729 * NEWS: Document this fix.
1731 * configure.ac (AC_CANONICAL_HOST, AC_CANONICAL_BUILD): Allow
1733 (AC_CACHE_CHECK): Cache search for ecvt.
1735 2006-06-27 Eric Blake <ebb9@byu.net>
1737 * doc/m4.texinfo (Eval): Document 32-bit signed limitations
1738 required by POSIX, and add example that exposed core dump on x86
1740 (Incompatibilities): Document incompatibility in eval precedence.
1741 * src/eval.c (shift_term): Explicitly mask, to avoid undefined
1743 (mult_term): Explicitly check for -1, to avoid SIGFPE on x86.
1744 * NEWS: Document this change.
1746 * doc/m4.texinfo: Use @noindent consistently.
1747 (Quoting Arguments): Document that unquoted parentheses group
1749 (Pseudo Arguments): Expand tests to show this.
1750 (Incompatibilities): Contrast traditional behavior of
1753 2006-06-24 Eric Blake <ebb9@byu.net>
1755 * configure.ac (AC_PREREQ): Autoconf 2.60 is now released.
1756 (AC_CHECK_HEADERS_ONCE): Use this new feature.
1757 (AC_CHECK_FUNCS_ONCE): Likewise.
1759 2006-06-23 Eric Blake <ebb9@byu.net>
1761 * doc/m4.texinfo: Quoting cleanup throughout - follow
1762 autoconf-recommended style of one level of quote per parenthesis
1763 in the normal case. Adjust error messages to match GNU coding
1764 standards (and to allow 'make check' to pass again).
1765 (Quoted strings, Inhibiting Invocation): Turn more examples into
1767 (Comments): Resolve FIXME by adding example.
1768 (Define): Add example about underquoting.
1769 (Defn): Add example about use of $0.
1770 (Indir, Format): Resolve FIXME done in last commit.
1771 (Ifelse): Add example about creating blind macro.
1772 (Debugging): Fix grammar.
1773 (Dnl): Add example about dnl with arguments.
1774 (M4wrap): Be explicit that LIFO order is non compliant, and will
1776 (Undivert): Resolve FIXME by adding example.
1777 (Frozen files): Document that m4wrap and sysval will not work
1778 consistently until m4 2.0.
1779 (Incompatibilities): Document another POSIX compliance bug, this
1780 time with changequote. Document a traditional incompatibility
1781 with partial input spanning file boundaries.
1783 Make error messages more consistent with GNU coding standards -
1784 start with lower case, and don't end sentence with punctuation.
1785 * src/debug.c (trace_pre): Update message wording.
1786 * src/eval.c (evaluate, cmp_term, shift_term, mult_term):
1788 * src/freeze.c (produce_frozen_state, issue_expect_message),
1789 (reload_frozen_state): Likewise.
1790 * src/input.c (push_string_init, pop_init, init_macro_token),
1791 (peek_input, next_char_1, set_word_regexp, next_token): Likewise.
1792 * src/m4.c (stackovf_handler, main): Likewise.
1793 * src/macro.c (expand_token, expand_argument, call_macro),
1794 (expand_macro): Likewise.
1795 * src/output.c (make_room_for, output_text, insert_file),
1796 (freeze_diversions): Likewise.
1797 * src/symtab.c (symtab_init, lookup_symbol): Likewise.
1799 * src/builtin.c (builtin_tab): Make format and indir blind.
1800 (substitute): Prefer "Warning:" vs. "ERROR:" in messages.
1801 * NEWS: Mention the change to builtins.
1803 2006-06-22 Eric Blake <ebb9@byu.net>
1805 Robustify frozen file format.
1806 * src/freeze.c (reload_frozen_state): Add GET_DIRECTIVE helper
1807 macro. Require V first, and only accept it once. For F, use
1808 placeholder if builtin is not found, rather than warning.
1809 * src/m4.h (m4_placeholder): New prototype.
1810 * src/builtin.c: Unify error message style.
1811 (m4_placeholder): New function, warn if invoked.
1812 (builtin_tab): Add m4_placeholder.
1813 (m4_defn): Warn if placeholder is encountered.
1814 (find_builtin_by_addr): Handle placeholder.
1815 (find_builtin_by_name): Return placeholder on failure.
1816 (m4_builtin): Treat placeholder as undefined.
1817 * doc/m4.texinfo (Frozen files): Document changes in V and F.
1818 * NEWS: Document this change.
1819 Reported by Bruno Haible.
1821 * doc/m4.texinfo: Whitespace cleanup. TABs are evil in texinfo.
1822 (tabchar): New macro, so that 'make check' still works.
1823 (Invoking m4): Document that ignored compatibility options -B, -S,
1824 and -T each consume an argument.
1825 * checks/get-them: Honor @tabchar{}.
1827 Avoid compiler warnings during -DDEBUG.
1828 * src/m4.h (M4_GNUC_ATTRIBUTE, M4_GNUC_UNUSED): New macros.
1829 [DEBUG]: Also imply DEBUG_OUTPUT and DEBUG_STKOVF.
1830 * src/input.c (print_token) [DEBUG_INPUT]: Use correct format.
1831 (lex_debug) [DEBUG_INPUT]: Fix to compile. Mark unused.
1832 (next_token) [DEBUG_INPUT]: Print before returning.
1833 * src/path.c (include_dump) [DEBUG_INCL]: Mark unused.
1834 * src/symtab.c (symtab_debug) [DEBUG_SYM]: Mark unused.
1836 Avoid mkstemp bugs on various platforms.
1837 * m4/gnulib-cache.c: Augment with gnulib-tool --import mkstemp.
1838 * src/output.c [! HAVE_MKSTEMP]: Delete.
1839 * configure.ac (AC_CHECK_FUNCS): Don't check for mkstemp.
1840 * src/m4.h (mkstemp) [! HAVE_MKSTEMP]: Prototype, if needed.
1841 * NEWS: Document this.
1843 * Makefile.am (EXTRA_DIST): Distribute gnulib-cache.m4.
1844 Reported by Bruno Haible.
1846 2006-06-21 Eric Blake <ebb9@byu.net>
1848 Avoid obsolete sigstack when POSIX sigaltstack is available.
1849 * src/m4.c: Blindly assume signal.h, since stackovf.c and gnulib
1851 * configure.ac (AC_CHECK_HEADERS): Likewise.
1852 (AC_CHECK_TYPES): New check for siginfo_t, since siginfo.h is
1853 obsolete and most hosts now have it in signal.h.
1854 (AC_CHECK_MEMBERS): New check for sigaction.sa_sigaction.
1855 (AC_CACHE_CHECK): Cache decision to use stackovf.
1856 (AC_EGREP_HEADER): Switch to AC_CHECK_TYPES.
1857 * src/stackovf.c (DEBUG_STACKOVF): Remove unused define.
1858 (SA_RESETHAND, SA_SIGINFO): Provide fallback definitions, to
1859 simplify later code.
1860 (PARAM_STACKOVF, PARAM_NOSTACKOVF): Move further away from NULL,
1861 in case of dereferencing a member of a NULL pointer.
1862 (sigsegv_handler) [HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define a
1864 (setup_stackovf_trap): Use NULL instead of 0 for pointers, use
1865 EXIT_FAILURE in error, indent preprocessor directives.
1866 [HAVE_SIGALTSTACK && HAVE_SIGINFO_T]: Depend on siginfo_t, not
1868 [HAVE_SIGACTION && defined SA_ONSTACK]: Prefer POSIX handler.
1869 Reported by Santiago Vila.
1871 2006-06-19 Eric Blake <ebb9@byu.net>
1875 2006-06-18 Andreas Buening <andreas.buening@nexgo.de> (tiny change)
1877 * checks/Makefile.in (PATH_SEPARATOR): New macro.
1878 (check, installcheck): Use it, for OS/2.
1880 2006-06-18 Eric Blake <ebb9@byu.net>
1882 Consistently use "GNU M4" as package name, "m4" as executable
1884 * NEWS: Document previous fix.
1886 * README: Fix grammar. Document that --enable-changeword is on
1888 * doc/m4.texinfo (Top, Changeword): Likewise.
1889 (Sysval): Enhance this test.
1890 (History): Backport this section from CVS head, and update.
1892 2006-06-18 Bruno Haible <bruno@clisp.org> (tiny change)
1893 Eric Blake <ebb9@byu.net>
1895 * src/builtin.c (WEXITSTATUS): Provide fallback definition.
1896 (m4_esyscmd): Set sysval to 0xffff, to accomodate both
1897 big-endian and little-endian wait status definitions.
1898 (m4_sysval): Use WEXITSTATUS.
1899 Reported by Andreas Buening.
1901 2006-06-18 Eric Blake <ebb9@byu.net>
1903 * configure.ac (AC_INIT): Bump version number.
1904 * NEWS: Describe changes in 1.4.4c.
1906 2006-06-17 Eric Blake <ebb9@byu.net>
1908 Beta Release 1.4.4b:
1909 * configure.ac (AC_INIT): Bump version number.
1910 * NEWS: Describe changes since 1.4.4.
1911 * Makefile.maint (cvs-news): Accomodate copyright line wrapping.
1913 * Makefile.am (MAINTAINERCLEANFILES): Clean files added by
1915 * checks/Makefile.in (maintainer-clean): Add missing target.
1916 * COPYING: Remove generated file from CVS.
1918 2006-06-16 Eric Blake <ebb9@byu.net>
1920 * checks/Makefile.in (DISTFILES): Distribute wrapfifo.m4.
1922 2006-06-15 Eric Blake <ebb9@byu.net>
1924 * checks/wrapfifo.m4: New file. Use it...
1925 * doc/m4.texinfo (Incompatibilities): here, in a new test case to
1926 demonstrate how to get POSIX behavior of m4wrap prior to m4 2.0.
1928 * src/m4.h (to_uchar): New function.
1929 * src/eval.c (eval_lex): Use it to avoid passing signed char to
1930 isdigit, isalpha, isupper, islower, isspace, isalnum.
1931 * src/builtin.c (expand_user_macro): Likewise.
1932 * src/format.c (format): Likewise.
1933 * src/macro.c (expand_argument): Likewise.
1934 * NEWS: Document this security fix.
1937 * src/symtab.c (lookup_symbol): Use invalid, not illegal.
1938 * src/freeze.c (reload_frozen_state): Fix typo in message.
1939 (produce_frozen_state): Standardize on builtin, not built-in.
1940 * src/builtin.c (numeric_arg, bad_argc): Likewise.
1942 * configure.ac (M4_EARLY, M4_INIT): Use gnulib.
1943 (AC_PROG_RANLIB, AC_AIX, AC_MINIX, AC_CHECK_HEADERS),
1944 (AC_FUNC_ALLOCA, AC_REPLACE_FUNCS): Avoid checks now done by
1946 * Makefile.am (ACLOCAL_AMFLAGS): New entry, for gnulib.
1947 * m4/gnulib-cache.m4: New file, from gnulib.
1948 * bootstrap: Invoke gnulib-tool --update.
1949 * src/m4.c (main): Cast away const.
1950 * NEWS: Document that regex is updated.
1953 2006-06-08 Eric Blake <ebb9@byu.net>
1955 * configure.ac (changeword): Work even when changeword is not a
1957 (AC_PROG_AWK, AC_PROG_INSTALL, AC_PROG_MAKE_SET, AC_HEADER_STDC):
1958 Delete; now done by automake.
1959 (AC_ISC_POSIX, AC_C_CONST): Delete; now obsolete.
1961 2006-06-07 Eric Blake <ebb9@byu.net>
1963 * lib/regex.c (bcmp_translate): Canonicalize type name.
1964 * doc/Makefile.am (MAINTAINERCLEANFILES): Fix typo.
1965 * configure.ac (changeword): Disable changeword for the creation
1966 of configure, in case of bootstrapping with an m4 configured with
1967 --enable-changeword.
1969 Distribute a rudimentary man page.
1970 * Makefile.am (SUBDIRS): Move doc after src so that 'm4 --help'
1972 * doc/Makefile.am (man_MANS, EXTRA_DIST, MAINTAINERDISTCLEAN),
1973 (SUFFIXES, m4.1): New macros and rules to build m4.1.
1975 2006-06-06 Eric Blake <ebb9@byu.net>
1977 * lib/regex.c (re_match_2_internal, bcmp_translate): Avoid
1978 compiler warnings at -O2.
1979 * lib/getopt.c (_getopt_internal): Likewise.
1981 Cleanup of previous patches.
1982 * src/input.c (struct input_block): Remove traced member.
1983 (push_macro, init_macro_token): Don't pass trace status around.
1984 * src/m4.h (struct token_data): Remove traced member.
1985 (struct symbol, struct builtin): Reduce unused space.
1986 (TOKEN_DATA_FUNC): Simplify.
1987 (TOKEN_DATA_FUNC_TRACED): Remove unused macro.
1988 (push_macro, define_builtin): Remove unused parameter.
1989 * src/builtin.c (define_builtin, builtin_init, define_macro),
1990 (m4_defn): Don't pass trace status around.
1991 * src/macro.c (expand_argument): Likewise.
1992 * src/freeze.c (reload_frozen_state): Likewise.
1993 * src/symtab.c: Whitespace cleanup.
1994 * NEWS: Clean up wording.
1995 * doc/m4.texinfo (Undefine, Dumpdef, Trace): Cleanup wording;
1996 ensure tests actually expose bugs prior to today's patches.
1998 Trace status of builtins is no longer inherited across
1999 define(...,defn(...)). Fixes bug that autom4te had been working
2001 * src/builtin.c (define_builtin): Don't override trace status.
2002 * doc/m4.texinfo (Trace): Add test for this.
2003 * NEWS: Document this.
2005 When changing macro definitions inside the arguments to the macro,
2006 consistently preserve the old definition that was in effect before
2007 argument collection, similar to the C pre-processor.
2008 Reported by John Brzustowski.
2009 * NEWS: Document this change.
2010 * doc/m4.texinfo (Macro Arguments, Undefine, Dumpdef): Document
2011 this policy, and add tests that expose core dumps prior to this
2013 * src/m4.h (struct symbol): New members to track when a symbol is
2014 still in use after removal from the symbol table.
2015 (SYMBOL_PENDING_EXPANSIONS, SYMBOL_DELETED): Define.
2016 (free_symbol): Prototype.
2017 * src/macro.c (expand_macro): Track pending expansions of a
2018 symbol. On completion, if a symbol is deleted and no longer
2019 pending, free its memory.
2020 * src/symtab.c (free_symbol): Export. Don't free memory if symbol
2022 (lookup_symbol) <SYMBOL_INSERT>: Create new entry when old entry
2024 (lookup_symbol) <SYMBOL_DELETE, SYMBOL_POPDEF>: Mark entries still
2025 in use as deleted and remove from the table without freeing
2027 (symtab_print_list) [DEBUG_SYM]: More debug output.
2029 * src/symtab.c (hack_all_symbols): Allow certain modifications of
2030 the symbol table during traversal.
2031 * src/builtin.c (set_trace): Replace SYMBOL_DELETE with
2032 SYMBOL_POPDEF, since only the latter is safe with
2035 Solve crash when passing "indir(`foo')" to "m4 -tfoo".
2036 * src/symtab.c (lookup_symbol) <SYMBOL_DELETE, SYMBOL_POPDEF>:
2037 Preserve placeholder when macro is being traced.
2038 * src/builtin.c (m4_ifdef, m4_indir): A traced but undefined
2039 symbol is not defined.
2040 (set_trace): Remove placeholder when no longer traced.
2041 (m4_traceon): On named traces, always reserve a slot in the
2043 (m4_traceoff): Don't warn about untracing a nonexistent symbol.
2044 * NEWS: Document new trace behavior.
2045 * doc/m4.texinfo (Trace): Tracing by name now consistently works
2046 no matter whether that macro is currently defined.
2047 (Incompatibilities): Document differences between traditional and
2050 2006-06-04 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
2051 Eric Blake <ebb9@byu.net>
2053 * src/m4.h (hash_table_size): Now size_t instead of int.
2054 * src/m4.c (hash_table_size): Likewise.
2055 (main): Adjust to this; use atol rather than atoi.
2056 * src/symtab.c: Include <limits.h>, for CHAR_BIT.
2057 (symtab_init, lookup_symbol, hack_all_symbols):
2058 Use size_t for sizes and indexes, not int.
2059 (symtab_print_list) [DEBUG_SYM]: Likewise.
2060 (hash): Likewise. Don't case-fold in the hash function.
2061 Shift by 7, not 3, for consistency with gnulib/lib/hash.c.
2062 Don't assume hash word is 32 bits.
2063 * NEWS: Document this change.
2065 2006-06-04 Eric Blake <ebb9@byu.net>
2067 * src/symtab.c (symtab_debug, symtab_print_list) [DEBUG_SYM]: Fix
2068 to allow compilation, for use in debugger.
2069 (profiles, current_mode) [DEBUG_SYM]: New variables.
2070 (show_profile, profile_strcmp) [DEBUG_SYM]: New methods for
2071 determining hash table performance.
2073 2006-05-31 Eric Blake <ebb9@byu.net>
2074 John Brzustowski <jbrzusto@fastmail.fm>
2076 * src/input.c (input_stack): Delete; use current_input instead.
2077 (wrapup_stack): Dynamically allocate, so that recursion is handled
2079 (push_wrapup): Use current wrapup stack.
2080 (pop_wrapup): Rotate wrapup stack to current, and create new
2082 (input_init): Dynamically allocate stacks.
2083 * NEWS: Update, now that recursive m4wrap can no longer cause
2086 2006-05-31 Eric Blake <ebb9@byu.net>
2088 * lib/getopt.c: Fix copyright year.
2089 * lib/obstack.c: Ditto.
2090 * src/builtin.c: Ditto.
2092 2006-05-30 Eric Blake <ebb9@byu.net>
2094 * doc/m4.texinfo (M4wrap): Add test to expose m4wrap bug.
2095 Reported by John Brzustowski.
2096 (Incompatibilities): Document known POSIX incompatibilities.
2099 2006-05-29 Eric Blake <ebb9@byu.net>
2101 * doc/m4.texinfo (Maketemp): Work even when running 'make check'
2105 * Makefile.am: New file.
2106 * doc/Makefile.am: Ditto.
2107 * examples/Makefile.am: Ditto.
2108 * lib/Makefile.am: Ditto.
2109 * src/Makefile.am: Ditto.
2110 * acinclude.m4: New file, renamed from aclocal.m4.
2111 * configure.ac (AM_INIT_AUTOMAKE): Invoke new macro.
2112 (AC_ARG_PROGRAM): Now redundant.
2113 (STACKOVF): Turn into automake conditional.
2114 (AC_CONFIG_COMMANDS): stamp-h is a command, not a file.
2115 * checks/Makefile.in: Converting this dir to automake was not
2116 trivial; for now, just add missing targets demanded by top-level.
2117 * INSTALL: Remove files that are now generated from CVS.
2118 * Makefile.in: Ditto.
2119 * aclocal.m4: Ditto.
2120 * install-sh: Ditto.
2121 * mkinstalldirs: Ditto.
2122 * doc/Makefile.in: Ditto.
2123 * doc/texinfo.tex: Ditto.
2124 * examples/Makefile.in: Ditto.
2125 * lib/Makefile.in: Ditto.
2126 * src/Makefile.in: Ditto.
2128 * AUTHORS: Backport from CVS head, and update.
2129 * doc/m4.texinfo (Changeword): Fix examples to match behavior.
2131 2006-05-27 Eric Blake <ebb9@byu.net>
2133 * lib/regex.c (regex_compile): Kill compiler warnings.
2134 * lib/getopt.c: Likewise.
2135 * lib/obstack.c: Likewise.
2136 * src/builtin.c (builtin_init): Likewise.
2137 * src/path.c (path_search): Likewise.
2139 * doc/m4.texinfo: Fix usage of a vs. an.
2140 (Loops, Include, Cleardiv, Patsubst, Format, M4exit): Kill
2141 overfull hbox warnings.
2142 (Inhibiting Invocation, Divert, Maketemp, M4exit): Add new tests.
2144 * configure.ac: Update to autoconf 2.59. Forbid ^M4_. Fix
2146 * aclocal.m4 (fp_PROG_CC_STDC): Delete; now covered by autoconf.
2147 (fp_C_PROTOTYPES): Delete, GNU Coding Standards state we can now
2149 (M4_WITH_DMALLOC): Rename from fp_WITH_DMALLOC. Fix quoting.
2150 * src/m4.h (_): PROTOTYPES is no longer provided, assume C89.
2151 * src/Makefile.in: Delete remains of ansi2knr.
2152 * src/ansi2knr.1: Delete.
2153 * src/ansi2knr.c: Delete.
2155 2006-05-25 Eric Blake <ebb9@byu.net>
2157 * doc/m4.texinfo: Fix spelling errors. Use `invalid' instead of
2160 * doc/m4.texinfo (Francois): No longer needed as a tex variable.
2161 Reported by Karl Berry.
2163 2006-05-24 Eric Blake <ebb9@byu.net>
2165 * Makefile.in (html): New target.
2166 * doc/Makefile.in (html, m4.html): Likewise.
2167 (MAKEINFOHTML): New macro.
2168 * doc/m4.texinfo (Francois) [ifnottex]: Use newer texinfo
2170 (Regexp) [ifhtml]: Make cross-reference to emacs manual an
2172 Reported by Bob Badour.
2174 * THANKS: Update. Move reporter's email addresses here, instead
2177 2006-05-11 Eric Blake <ebb9@byu.net>
2180 * doc/m4.texinfo (Changequote): Give testsuite exposure to bug
2181 patched on 2005-12-04.
2182 Reported by Ilya N. Golubev.
2184 * bootstrap: New file, so that generated files need not be stored
2186 * Makefile.in (DISTFILES): Add bootstrap.
2188 Make testsuite less sensitive to doc changes.
2189 * doc/m4.texinfo: Use m4.input instead of filename.
2190 * checks/check-them (xerr): Turn m4.input into filename.
2191 * checks/Makefile.in (dist): Depend on stamp-checks.
2193 Portability updates for OS/2.
2194 * src/Makefile.in (EXEEXT, OBJEXT): Define.
2197 * lib/Makefile.in (OBJEXT): Define.
2199 * doc/Makefile.in (install, uninstall): Install info files into
2201 Reported by Andreas Buening.
2203 2006-05-09 Eric Blake <ebb9@byu.net>
2205 * install-sh: Update to newer upstream version.
2206 * mkinstalldirs: Likewise.
2207 Reported by Andreas Buening.
2209 * src/m4.c (main): Bump copyright year.
2210 * Makefile.in (datarootdir): Define, for autoconf 2.59c.
2211 * doc/Makefile.in (datarootdir): Likewise.
2213 2006-05-08 Eric Blake <ebb9@byu.net>
2216 * doc/m4.texinfo (Bugs): Backport bug email address from head.
2217 Reported by Stepan Kasal.
2219 2005-12-04 Ilya N. Golubev <gin@mo.msk.ru> (tiny change)
2221 * input.c (match_input): Do not pass expression with side effect
2222 to `obstack_grow'. Fix <INTERNAL ERROR: Recursive push_string!>.
2225 2005-12-04 Gary V. Vaughan <gary@gnu.org> (tiny change)
2227 * doc/m4.texinfo (How to debug macros and input): s/woould/would/
2228 Reported by Damian Menscher.
2230 2005-10-19 Gary V. Vaughan <gary@gnu.org> (tiny change)
2232 * configure.ac (AC_INIT): Bump to 1.4.4a.
2234 2005-10-19 Gary V. Vaughan <gary@gnu.org> (tiny change)
2237 * configure.ac (AC_INIT): Bump to 1.4.4.
2238 * NEWS: Describe 1.4.4's changes.
2239 * INSTALL, install-sh, doc/texinfo.tex: Updated from upstream.
2241 2005-10-17 John Gatewood Ham <zappaman@buraphalinux.org> (tiny change)
2243 * src/m4.c: fix return code when non-existent files are processed
2245 2005-10-17 John Gatewood Ham <zappaman@buraphalinux.org> (tiny change)
2247 * README: update email address for bug reports.
2249 2005-10-17 Gary V. Vaughan <gary@gnu.org>
2251 * doc/m4.info: Generated files are not kept in the repository.
2253 2005-05-01 Gary V. Vaughan <gary@gnu.org>
2255 The FSF are moving offices today. Changed their contact address
2256 in all files from `59 Temple Place, Suite 330, MA 02111-1307' to
2257 `51 Franklin Street, Fifth Floor, MA 02110-1301'.
2259 Also, some of the files here were never updated from the previous
2260 '675 Mass Ave, Cambridge, MA 02139', so changed those to the
2261 '51 Franklin Street, Fifth Floor, MA 02110-1301' address too.
2263 2005-03-31 Mike Frysinger <vapier@gentoo.org>
2265 * Makefile.in (bindir, infodir): Substitute from configure rather
2267 * doc/Makefile.in (infodir): Ditto.
2268 * src/Makefile.in (bindir): Ditto.
2271 2005-03-31 Gary V. Vaughan <gary@gnu.org>
2273 Changes needed to automate the release process for 1.4.3:
2275 * Makefile.in (dist): Make .tar.bz2 tarball too.
2276 * Makefile.maint (TSDEPS_DIST): Remove m4/libtool.m4.
2277 (cvs-news): Look 1 line further down for NEWS release number.
2278 (cvs-dist): We don't use automake, so make dist is fine.
2279 Remove double . before suffixes.
2280 (cvs-release): Don't mention manual.html.
2281 (fetch): Get latest gendocs files.
2282 (web-manual): Rewritten to use gendoc for multiformat manuals.
2283 * doc/gendocs.sh: Don't save an old version in m4 CVS!
2284 * doc/m4.texinfo (Index): HFS+ (the file system on my Mac) is case
2285 preserving, but case insensitive, so generating html docs per node
2286 clashes between Index.html, the node file, and index.html, the
2287 top-level of the document tree...
2288 (Index macro): ...so renamed to this. Changed all references.
2290 2005-03-31 Gary V. Vaughan <gary@gnu.org> (tiny change)
2292 * configure.ac (AC_INIT): Bump to 1.4.3a.
2294 2005-03-31 Gary V. Vaughan <gary@gnu.org> (tiny change)
2297 * configure.in (AC_INIT): Bump to 1.4.3.
2298 * NEWS: Describe 1.4.3's changes.
2300 2005-03-31 Gary V. Vaughan <gary@gnu.org>
2302 * Makefile.maint: New file with release rules, from CVS libtool.
2303 * Makefile.in (DISTFILES): Add Makefile.maint.
2304 * INSTALL, install-sh, doc/texinfo.tex: Updated to latest
2307 2005-03-31 Eric Blake <ebb9@byu.net> (tiny change)
2309 * doc/m4.texinfo (Patsubst): Re-add trailing space required by
2310 checks/47.patsubst, with a redundant @comment to prevent emacs
2311 from removing it accidentally again.
2312 * checks/get-them: Allow for trailing spaces tucked behind
2315 2005-03-31 Eric Blake <ebb9@byu.net> (tiny change)
2317 * doc/Makefile.in (install, uninstall): Accomodate DESTDIR.
2318 * src/Makefile.in (install, uninstall): Likewise.
2320 2005-02-07 Gary V. Vaughan <gary@gnu.org>
2322 * lib/regex.c, lib/regex.h: Reverted gnulib update, which broke
2324 Reported by Eric Blake.
2326 2005-02-04 Gary V. Vaughan <gary@gnu.org>
2328 * lib/regex.c, lib/regex.h: Updated from gnulib.
2329 * src/input.c (set_word_regexp): Don't change the word_regexp
2330 unless it compiles correctly.
2332 Reported by Frank Schwidom.
2334 * Makefile.in (stamp-h): Regenerate config.h properly.
2336 2005-02-03 Gary V. Vaughan <gary@gnu.org>
2338 * configure.ac (AC_DEFINE): Fix overquoting of description
2341 * src/m4.h (__CYGWIN__, WIN32): Canonicalise Windows and Cygwin
2343 * src/freeze.c (produce_frozen_state): Use \n line-endings even
2344 on Windows, so that the frozen file reader will work.
2345 Reported by Josef T. Burger.
2347 * src/m4.c (main): Modernise the --version output.
2349 2005-02-03 Gary V. Vaughan <gary@gnu.org>
2351 Modernise the configury a little to prevent spurious errors from
2352 Autoconf-2.59's autoreconf:
2354 * config.h.in: Renamed to...
2355 * config-h.in: ...this to better support DOS 8.3 file systems.
2356 * acconfig.h: Removed.
2357 * configure.in: Renamed to...
2358 * configure.ac: ...this, and AC_DEFINE used to declare config.h
2359 entry comments. Slight reorganisation and reformatting.
2360 * aclocal.m4: Use third argument to AC_DEFINE to declare config.h
2362 (AC_INIT): Use a modern 3 argument call.
2363 * Makefile.in, checks/Makefile.in, doc/Makefile.in,
2364 examples/Makefile.in, lib/Makefile.in, src/Makefile.in:
2365 s/PRODUCT/PACKAGE/g.
2366 * Makefile.in (DISTFILES): Removed acconfig.h, configure.in,
2367 config.h.in. Added configure.ac, config-h.in.
2368 (stamp-h.in): Removed acconfig.h from dependencies.
2369 (configure): Depends on configure.ac, not configure.in.
2370 * doc/Makefile.in (stamp-vti): Ditto.
2371 * src/freeze.c (produce_frozen_state), src/m4.c (main): Adjust for
2372 difference between PRODUCT="m4" and PACKAGE="GNU M4".
2373 * configure: Regenerated.
2375 2005-02-03 Noah Misch <noah@cs.caltech.edu>
2377 * src/output.c (mkstemp): Make non-static, and build regardless of
2378 HAVE_TMPFILE; src/builtin.c also needs this replacement.
2381 2004-09-09 Vincent Lonngren <Vincent.lonngren.759@student.lu.se>
2383 * configure.in (AC_CHECK_HEADERS): Commit works best when you save
2384 changes from your editor buffer first.
2386 * configure.in (AC_CHECK_HEADERS): Add signal.h, sys/signal.h.
2387 * src/m4.c: And include them as appropriate.
2390 2004-09-09 Andreas Schwab <schwab@suse.de>
2392 Refactoring of the string read case in next_char provides about a
2393 20% speedup of M4 as typically used by autoconf:
2395 * src/input.c (next_char_1): Renamed from next_char.
2396 (next_char): New macro.
2399 2004-08-21 Gary V. Vaughan <gary@gnu.org>
2401 * configure.in (VERSION): Bump to 1.4.2a.
2403 2004-08-19 Paul Eggert <eggert@twinsun.com>
2406 * configure.in (VERSION): Bump to 1.4.2.
2407 * News: Describe 1.4.2's changes.
2409 * src/m4.c (reference_error): Preserve errno, since M4ERROR
2411 * src/builtin.c (m4_esyscmd): Clear errno before calling popen.
2412 (m4_maketemp): Clear errno before calling mkstemp.
2413 * src/path.c (path_search): Don't let "free" trash errno when
2415 * src/output.c (insert_file): Don't assume errno has a valid
2416 value simply because fread returns zero. This fixes a
2417 portability bug reported by Marion Hakanson in
2418 <http://lists.gnu.org/archive/html/bug-m4/2004-07/msg00029.html>.
2420 2004-06-09 Gary V. Vaughan <gary@gnu.org>
2422 * configure.in (VERSION): Bump to 1.4.1a.
2423 * NEWS: Place holder for next stable release.
2425 2004-06-03 Paul Eggert <eggert@cs.ucla.edu>
2428 * configure.in (VERSION): Bump to 1.4.1.
2429 * NEWS: Describe 1.4.1's changes.
2431 * aclocal.m4 (fp_PROG_CC_STDC): Use AC_DEFUN, not define, to
2432 pacify Autoconf 2.59.
2434 * doc/m4.texinfo: Insert commas after @xref's that lack them,
2435 to pacify Texinfo 4.7.
2436 * doc/Makefile.in (info): Remove info-1, info-2, info-3.
2438 * src/m4.h, src/debug.c: Use #ifdef __STDC__, not #if __STDC__, to
2439 pacify Sun C compilers.
2441 2003-09-28 Akim Demaille <akim@epita.fr>
2443 * src/symtab.c (lookup_symbol): Fix an uninitialized-variable
2446 2003-09-03 Santiago Vila <sanvila@debian.org>
2448 * examples/stackovf.sh: Use tempfile if available.
2450 2001-04-02 Robert Bihlmeyer <robbe@orcus.priv.at>
2452 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92629
2453 * src/output.c (m4_insert_file): Do not mix buffered and
2454 unbuffered I/O, as this breaks on the Hurd. (trivial change)
2456 2001-02-01 Santiago Vila <sanvila@debian.org>
2458 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84451
2459 * src/m4.c (main): Fix format vulnerabilities. (trivial change)
2461 2001-02-01 Matt Kraai <kraai@debian.org>
2463 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84416
2464 * doc/m4.texinfo (Maketemp): Change maketemp to refer to a new,
2465 empty file rather than to a nonexistent file. This closes a common
2467 * src/builtin.c (m4_maketemp): Implement the above, by using
2468 mkstemp rather than mktemp. (trivial change)
2470 2000-01-09 Akim Demaille <demaille@inf.enst.fr>
2472 * src/builtin.c (expand_ranges): Added break after trailing dash.
2473 This caused misbehaviors on some systems.
2475 Sat Nov 5 15:52:47 1994 Francois Pinard (pinard@icule)
2478 * doc/Makefile.in (realclean): Also remove stamp-vti.
2479 Reported by Eric Backus.
2481 Wed Nov 2 00:47:53 1994 Francois Pinard (pinard@icule)
2483 * src/freeze.c (produce_frozen_state): If the frozen file cannot
2484 be opened, return immediately after producing the error message.
2485 Reported by Andreas Schwab.
2487 * configure.in: Check for const only after having found possible
2488 ANSIfying compiler flags, this is of no use to check it before.
2489 Reported by Alexander Lehmann.
2491 Tue Nov 1 22:02:37 1994 Francois Pinard (pinard@icule)
2493 * src/macro.c (collect_arguments): Cast obstack arguments to
2494 (voidstar), so avoiding compiler warnings.
2495 Reported by Joseph E. Sacco.
2497 * src/freeze.c (produce_frozen_state): Cast printed lengths to
2498 (int) so they correspond to %d format items.
2499 Reported by Joseph E. Sacco.
2501 * src/m4.c (main): Cast the argument to xfree to (voidstar).
2502 * src/symtab.c (free_symbol): Idem.
2503 Reported by Karl Vogel.
2505 Mon Oct 31 02:11:19 1994 Francois Pinard (pinard@icule)
2507 * Makefile.in (DISTFILES): Distribute BACKLOG.
2509 * configure.in: Define PRODUCT and VERSION.
2510 * acconfig.h: Document PRODUCT and VERSION.
2511 * src/m4.c, src/freeze.c: Use PRODUCT and VERSION instead of the
2512 constant string m4 and variable or parameter named version.
2514 Sun Oct 30 08:13:03 1994 Francois Pinard (pinard@icule)
2516 * src/m4.h, src/debug.c: Replace all #ifdef __STDC__ by #if
2517 __STDC__. Alliant FX/2800 Concentrix 2.2 (i860-BSD4.3) compiler
2518 defines __STDC__ to 0, for indicating it is *not* ANSI!
2519 Reported by Kaveh R. Ghazi.
2521 * configure.in: Added obsolescent tests for AIX and Minix.
2523 * doc/Makefile.in (mostlyclean): Remove texclean in dependencies,
2524 which texclean does not exist anymore.
2525 Reported by Eric Backus, Jim Meyering, John David Anglin and
2528 Sat Oct 29 05:10:03 1994 Francois Pinard (pinard@icule)
2530 * aclocal.m4 (fp_C_PROTOTYPES): Force -D_HPUX_SOURCE with -Aa.
2531 Reported by John David Anglin.
2533 * src/ansi2knr.c: New version, sent by Peter Deutsch.
2534 * aclocal.m4 (fp_C_PROTOTYPES): Substitute empty or ansi2knr for
2535 ANSI2KNR, depending on the fact the compiler is ANSI or not.
2536 * src/Makefile.in: Use -Ovarargs=convert on ansi2knr calls.
2537 Remove the sed filter after ansi2knr for debug.c. Use $O instead
2538 of $U, put underline in extensions rather than in basenames. Use
2539 implicit rules, now that regularity makes this possible.
2540 Have $(OBJECTS) depend on $(ANSI2KNR), so to trigger compilation
2541 of ansi2knr whenever it is needed.
2542 * configure.in: Adjusted for correct STACKOVF substitution.
2543 * src/debug.c (trace_format): When not __STDC__, use (...) as a
2544 parameter list, so ansi2knr will convert it to (va_alist) va_dcl.
2545 Reported by David MacKenzie.
2547 * Makefile.in: Remove binprefix. Use transform_name instead.
2548 Reported by David MacKenzie.
2550 * doc/Makefile.in: Create version.texi, use it, clean it.
2551 Reported by Jim Meyering.
2553 Fri Oct 28 20:33:55 1994 Francois Pinard (pinard@icule)
2555 * Makefile.in (all, install, uninstall): Depend on Makefile.
2557 * Makefile.in: For actions invoking $(MAKE) from within compound
2558 sh statements, exit non-zero if the sub-make fails. Otherwise,
2559 the top-level make may exit successfully when it should fail.
2560 Reported by Jim Kingdon.
2562 * {,/*}Makefile.in: Use && after all cd, in case they fail.
2564 * {,*/}Makefile.in: Declare PRODUCT and VERSION macros.
2565 (dist): Use PRODUCT and VERSION instead of tricks on .fname.
2566 * configure.in: Substitute PRODUCT and VERSION.
2568 * {,*/}Makefile.in (dist): Always try a hard link before a copy.
2570 Thu Oct 27 22:32:58 1994 Francois Pinard (pinard@icule)
2572 * Makefile.in (mostlyclean-local): Do not remove *~.
2573 * */Makefile.in (mostlyclean): Idem.
2574 Reported by Robert E. Brown and Richard Stallman.
2576 Sun Oct 9 08:30:13 1994 Francois Pinard (pinard@icule)
2578 * src/m4.h: Get rid of CONFIG_BROKETS.
2580 Sun Oct 2 16:48:10 1994 Francois Pinard (pinard@icule)
2582 * configure.in: Use AC_ARG_PROGRAM.
2583 * aclocal.m4 (fp_C_PROTOTYPES): Substitute @kr@ by kr or empty.
2584 Reported by David MacKenzie.
2586 Sat Oct 1 11:22:42 1994 Francois Pinard (pinard@icule)
2588 * configure.in: Do not add -O to CFLAGS for GNU C, now that
2589 configure does it automatically.
2590 Reported by Jim Meyering.
2592 Fri Sep 23 08:16:58 1994 Francois Pinard (pinard@icule)
2594 * src/stackovf.c: Declare the handler_t typedef earlier in the
2595 code, use it for stackovf_handler.
2596 (setup_stackovf_trap): Use RETSIGTYPE instead of void while
2597 casting sigsegv_handler.
2598 Reported by Robert Bernstein.
2600 * src/m4.c (main): Initialize program_name to argv[0] without
2602 Reported by Karl Berry.
2604 Sun Sep 18 11:42:50 1994 Francois Pinard (pinard@icule)
2606 * src/Makefile.in (TAGS): Include a ../lib/TAGS reference.
2607 Reported by Karl Berry.
2609 Wed Sep 14 10:00:22 1994 Francois Pinard (pinard@icule)
2611 * lib/Makefile.in (mostlyclean): Added.
2612 (TAGS): Make in $(srcdir).
2614 * configure.in: Use `choke me' in test, like everywhere!
2616 * {doc,examples,lib,src}/Makefile.in (check): Deleted, as
2617 unreacheable and useless.
2619 * doc/Makefile.in (texclean): Deleted, merged in mostlyclean.
2621 * lib/Makefile.in (DISTFILES): Distribute TAGS.
2622 (distclean): Do not remove TAGS.
2623 (realclean): Remove it.
2624 * Makefile.in: Make TAGS in lib also, not just in src.
2625 Reported by Karl Berry.
2627 * Makefile.in (distclean, realclean): Instead of recursively
2628 calling $(MAKE) for the -local part, allow parallel execution of
2629 -recursive and -local, only delay the removal of config.status,
2630 which is repeated in both goals.
2632 Tue Sep 13 19:21:05 1994 Francois Pinard (pinard@icule)
2635 * Makefile.in: Group all *clean-recursive goals in one, using sed
2636 to remove `-recursive' while calling make recursively. Also, use
2637 a subshell for each recursive $(MAKE).
2638 Reported by Jim Meyering.
2640 * src/m4.h (memcpy): Define with bcopy for BSD systems.
2641 Reported by Kaveh R. Ghazi.
2643 * src/Makefile.in (ansi2knr): Use $(LIBS) while linking, for SunOS
2644 4.1.3 requires -ldl to link even ansik2nr, and we need a way to
2647 * configure.in: Use date instead of touch for stamp-h.
2648 * Makefile.in (stamp-h.in): Idem.
2650 * Makefile.in (distclean, realclean): Force serial execution of
2651 both goals, in case parallel makes are being used.
2652 Reported by Jim Meyering.
2654 * src/Makefile.in (DISTFILES): Distribute TAGS.
2655 (distclean): Do not remove TAGS.
2656 (realclean): Remove it.
2657 Reported by Karl Berry.
2659 Sat Sep 10 12:34:04 1994 Francois Pinard (pinard@icule)
2661 * configure.in: Use fp_ to match aclocal.m4. Revert _OS_ macros
2662 to old names, for following Autoconf.
2664 Thu Sep 8 15:07:27 1994 Francois Pinard (pinard@icule)
2666 * Makefile.in (MDEFINES): Remove INSTALL substitutions, for
2667 ./install.sh will not be correctly referred to in sub-Makefiles.
2668 Reported by John David Anglin.
2670 * doc/Makefile.in (texclean): Remove *.cps and *.fns too.
2671 Reported by Eric Backus.
2673 * Makefile.in, checks/Makefile.in, doc/Makefile.in,
2674 examples/Makefile.in, lib/Makefile.in, src/Makefile.in: Limit
2675 config.status into remaking this directory's Makefile only.
2676 * Makefile.in (stamp-h): Do not check nor touch stamp-h.
2677 * configure.in (AC_OUTPUT): Touch stamp-h if CONFIG_HEADERS.
2678 Reported by Jim Meyering.
2680 Tue Sep 6 12:07:33 1994 Francois Pinard (pinard@icule)
2682 * configure.in: Correct stack overflow detection logic, taking
2683 care of systems having only incomplete implementations (like for
2684 Pyramid 9820 OSx 5.0d).
2685 Reported by Kaveh R. Ghazi.
2687 * src/Makefile.in (TAGS): Remote -t from etags call.
2689 Fri Sep 2 10:37:10 1994 Francois Pinard (pinard@icule)
2691 * lib/Makefile.in (install): Depend on all.
2693 Wed Aug 31 11:17:21 1994 Francois Pinard (pinard@icule)
2695 * examples/Makefile.in (mostlyclean): Do not depend on texclean.
2696 Reported by Jim Meyering and John David Anglin.
2698 * Makefile.in (distclean-local): Delete config.log.
2699 Reported by Jim Meyering.
2701 Solidify frozen files with respect to -P:
2702 * src/m4.c: Have -P set prefix_all_buitins variable instead of
2703 calling a function by that name. Declare the variable.
2704 * src/m4.h: Adjust declaration for prefix_all_buitins.
2705 * src/builtin.c (builtin_init): Merge in functionality from
2706 previous prefix_all_buitins function, while making entries in the
2707 symbol table, but not modifying the builtin description itself.
2709 * src/freeze.c (reload_frozen_state): Add a useless `break;',
2710 because *many* compilers do not accept an empty `default:'.
2711 Reported by Akiko Matsushita, Eric Backus, John David Anglin,
2712 Joseph E. Sacco, Kaveh R. Ghazi, Tom McConnell and Ulrich Drepper.
2714 * configure.in: Use AC_TYPE_SIGNAL.
2715 * src/stackovf.c (setup_stackovf_trap): Use RETSIGTYPE.
2716 Reported by Robert Bernstein.
2718 * checks/Makefile.in (check): Modify PATH so check-them will find
2719 m4 in the src directory.
2720 * Makefile.in (check): Don't.
2721 Reported by Akiko Matsushita and Jim Meyering.
2723 * src/output.c (make_room_for, output_character_helper): New
2724 functions, for implementing a global MAXIMUM_TOTAL_SIZE instead of
2725 a per buffer MAXIMUM_BUFFER_SIZE.
2727 * src/output.c (output_text): New function, for optimizing the
2728 output of strings of characters. Use it.
2730 Tue Aug 30 01:44:29 1994 Francois Pinard (pinard@icule)
2732 * doc, src: New directories reorganizing the distribution.
2733 * doc/Makefile.in, src/Makefile.in, examples/Makefile.in: New
2735 * Makefile.in: Adjusted.
2736 * configure.in: Configure new Makefiles.
2738 * m4.h: Declare STRING typedef. Use it for comment and quote
2739 strings, adjusting all references. (This is the rudiments of a
2740 beginning for the eventual withdrawal of NUL terminated strings.)
2741 * output.c (shipout_text): Accept a length parameter, and use it.
2742 All callers adjusted.
2744 Mon Aug 29 12:27:19 1994 Francois Pinard (pinard@icule)
2746 * m4.h: Include <unistd.h> if it exists.
2747 * stackovf.c: Don't.
2749 Clean up for current_diversion variable:
2750 * output.c: Move current_diversion from builtin.c.
2751 * m4.h: Declare current_diversion so builtin.c can access it.
2752 * output.c (output_init, make_diversion): Initialize or update
2754 * builtin.c (builtin_init, m4_divert): Leave current_diversion
2757 Remove limit on number of diversions:
2758 * output.c: Replace ndiversion by diversions, declare it.
2759 (output_init): Allocate only diversion 0.
2760 (make_diversion): Allocate new diversions as needed.
2761 * m4.h, m4.c: Remove NDIVERSIONS and ndiversion related stuff.
2762 * m4.c: Still accept -N, but do nothing with it.
2763 Reported by David MacKenzie.
2766 * output.c (freeze_diversions): New function.
2767 * m4.h: Declare freeze_diversions.
2768 * freeze.c: Document frozen file format, revise it, call
2769 freeze_diversions to add diversions to frozen format, and code to
2770 reload them properly.
2771 * m4.c: Do not undivert automatically at end when status being
2772 frozen. Do not call builtin_init when reloading frozen state.
2774 Speed up diversion processing:
2775 * output.c: Add INITIAL_BUFFER_SIZE, MAXIMUM_BUFFER_SIZE,
2776 COPY_BUFFER_SIZE, in-memory diversion buffers, struct diversion
2777 structure and variables, cached variables out of output_diversion,
2778 reallocate_diversion_for and OUTPUT_CHARACTER.
2779 (shipout_text, make_diversion, insert_diversion): Adapted to new
2781 (insert_file): Use better buffering.
2782 Reported by David MacKenzie.
2784 Sun Aug 28 05:20:02 1994 Francois Pinard (pinard@icule)
2786 * Makefile.in, lib/Makefile.in, checks/Makefile.in: Arrange so
2787 dist works from another build directory.
2789 Sat Aug 27 14:32:45 1994 Francois Pinard (pinard@icule)
2791 * symtab.c (hack_all_symbols): Use hash_table_size instead of
2792 constant HASHMAX, for -H option to work better.
2794 * builtin.c (DECLARE): Simplify by using _ ().
2796 * freeze.c: New file.
2797 * Makefile.in: Compile it, distribute it.
2798 * m4.c: Recognize, document and process --freeze-state (-F) and
2799 --reload-state (-R) options. Pass a true flag to builtin_init
2800 only if no reloading some state.
2801 * builtin.c (define_builtin): Remove static specifier.
2802 (find_builtin_by_name): Remove static specifier.
2803 (builtin_init): Accept and obey a flag argument.
2804 * m4.h: Add declarations for freeze.c, changes for builtin.c.
2806 Wed Aug 24 16:14:19 1994 Francois Pinard (pinard@icule)
2808 * builtin.c (dumpdef_cmp): Rewrite so the cast protect the const
2811 * configure.in: Implement --with-dmalloc.
2812 * acconfig.h: Document WITH_DMALLOC.
2813 * m4.h: Add code for when WITH_DMALLOC.
2815 Mon Aug 15 12:38:05 1994 Francois Pinard (pinard@icule)
2817 * m4.c (long_options): Use "error-output", the dash was missing.
2818 Reported by Akiko Matsushita.
2820 Fri Aug 12 16:38:01 1994 Francois Pinard (pinard@icule)
2822 * m4.h: Include <sys/types.h>.
2823 * builtin.c, debug.c, m4.c, output.c, stackovf.c: Don't.
2824 * m4.h: Declare len_lquote and len_rquote as size_t, not int.
2826 * input.c: Declare len_lquote, len_rquote, len_bcomm and len_ecomm
2828 * builtin.c (dump_args): Declare len as size_t, not int.
2830 * debug.c: Prototype the forward declaration of debug_set_file.
2832 * builtin.c (m4_undivert): Replace div by file, for avoiding the
2833 shadowing of this variable.
2834 * output.c (insert_diversion): Idem.
2836 * input.c: Delete def_rquote, def_lquote, def_bcomm and def_ecomm.
2837 (input_init): Duplicate default quote and comment strings.
2838 (set_quotes): Free previous quote strings in all cases. Duplicate
2839 even default quote strings.
2840 (set_comment): Free previous comment strings in all cases.
2841 Duplicate even default comment strings.
2843 * configure.in: Updated for Autoconf 2.0.
2844 * Makefile.in (distclean-local): Also delete config.cache.
2846 * m4.c (usage): Reorganize the --help output by topic. Include a
2847 description for debugging flags.
2849 Fri Jul 29 10:15:52 1994 Francois Pinard (pinard@icule)
2851 * configure.in: If sigaction is available and SA_ONSTACK defined,
2852 use sigaction. Otherwise, if sigvec is available and SV_ONSTACK
2853 defined, use sigvec. Else don't compile stackovf.c.
2854 * stackovf.c (setup_stackovf_trap): Idem.
2855 Reported by Jim Avera, Karl Berry, Kaveh R. Ghazi, Matthias Rabe
2858 Thu Jul 21 22:43:17 1994 Francois Pinard (pinard@icule)
2860 * m4.c (usage): Replace printf par fputs.
2862 Mon Jul 18 23:48:23 1994 Francois Pinard (pinard@icule)
2866 Sun Jul 17 08:08:25 1994 Francois Pinard (pinard@icule)
2868 * configure.in: Check for sigaction and sigvec. Add a new delayed
2869 check for RLIMIT_STACK, combine in the checking for getrlimit.
2870 All those things are not universally available.
2871 * stackovf.c: Split setting up the trap handler and catching
2872 signals, for better taking care of various configure outcomes.
2873 * examples/stackovf.sh: Correct a typo.
2874 Reported by Eric Backus, Jim Avera and Jim Meyering.
2876 Sat Jul 16 20:36:19 1994 Francois Pinard (pinard@icule)
2878 * ansi2knr.c: New version sent by its author, Peter Deutsch.
2880 Fri Jul 15 14:36:21 1994 Francois Pinard (pinard@icule)
2882 * Makefile.in: Modify so parallel make will not try making
2883 lib/libm4.a twice simultaneously.
2884 Reported by Jim Meyering.
2886 Thu Jul 14 17:23:17 1994 Francois Pinard (pinard@icule)
2888 * stackovf.c (setup_stackovf_trap): Replace "Don't" by "Do not" in
2889 error message, for when no code possibility exists. Even if this
2890 line is completely #ifdef'ed out, it brings a syntax error.
2891 Reported by Andreas Schwab, Jim Meyering and Joseph E. Sacco.
2893 * Makefile.in (install): Have install depend on all too, for lib
2894 to be remade as needed.
2896 * examples/stackovf.sh: Try ksh, bsh and bash for shells
2897 providing ulimit, instead of using only ksh.
2898 Reported by Jim Avera and Joseph E. Sacco.
2900 Tue Jul 12 06:54:31 1994 Francois Pinard (pinard@icule)
2902 * Makefile.in (check): Have it depend on all instead of m4. In
2903 this way, a change in lib will be detected and processed.
2905 * builtin.c (numeric_arg): Use strtol and verify the conversion,
2906 instead of using sscanf which stops as soon as there is a
2907 non-digit in the input. Previously, incr(1xyzzy), eval(1,2xyzzy)
2908 and divert(1xyzzy) were all accepted without any warning or error
2910 * m4.h: Declare strtol as long if not including stdlib.h.
2911 * configure.in: Check for limits.h, and replace strtol if missing.
2912 * lib/Makefile.in: Substitute LIBOBJS. Distribute strtol.c.
2913 * lib/strtol.c: New file, from elsewhere.
2914 Reported by Andreas Schwab.
2916 Thu Jul 7 22:38:10 1994 Francois Pinard (pinard@icule)
2918 * macro.c (expand_macro): Cast value to (boolean) prior to
2919 assigning it to traced.
2920 Reported by Tom McConnell.
2922 * Makefile.in (m4): Always make all in lib first.
2923 Reported by Jim Meyering.
2925 Wed Jul 6 13:16:31 1994 Jim Avera (jima@netcom.com)
2927 * stackovf.c: Isolated OS-dependent sections; Improved portability,
2928 adding support for SunOS/BSD (sigvec, sigstack, and 4-parameter signal
2929 handlers), and a default error message if the fault address is not
2930 available (when neither siginfo.h nor BSD sigcontext are supported).
2931 * configure.in: Changes for stackovf.h: Check for sigcontext,
2932 sigaction, sigstack, and define rlim_t as int if necessary.
2933 * acconfig.h: Added HAVE_SIGCONTEXT and rlim_t.
2934 * examples/stackovf.sh: Run m4 -L99999999 to allow stack overflow.
2935 * ansi2knr.c: Fix for func-ptr args; convert "..." to varargs syntax.
2937 Tue Jul 5 19:13:54 1994 Francois Pinard (pinard@icule)
2939 * configure.in: Use AC_SET_MAKE.
2940 * Makefile.in: Use @SET_MAKE@.
2941 Reported by Jim Meyering.
2943 * checks/check-them: Do not trap on SIGQUIT or SIGALRM.
2944 Reported by Ian Taylor.
2946 Sat Jul 2 00:58:47 1994 Francois Pinard (pinard@icule)
2948 * configure.in: Remove dependency of USE_STACKOVF on STDC_HEADERS,
2949 because siginfo.h is unrelated to standard headers, and siginfo.h
2950 is already checked for.
2951 Reported by Joseph E. Sacco.
2953 * acconfig.h, aclocal.m4, m4.h: Replace HAVE_PROTOTYPES by
2955 * aclocal.m4, configure.in: Replace AC_HAVE_PROTOTYPES by
2958 Wed Jun 29 22:41:53 1994 Francois Pinard (pinard@icule)
2960 * builtin.c (substitute): Use \& to represent this part of the
2961 string which was matched by the whole regexp, instead of
2962 representing the whole string. Any usage of \0 issues a warning
2963 and acts like \&, it will disappear in some subsequent release.
2965 Mon Jun 27 14:24:23 1994 Francois Pinard (pinard@icule)
2967 * m4.c: Complete prototype for forwarded declaration of usage.
2969 * input.c (init_macro_token): Correct own reference in error
2970 message. Previous name get_macro_func was referred to instead.
2971 (next_char): Correct own reference in error message. Previous
2972 name advance_input was referred to instead.
2974 * m4.h: Declare eval_t and unsigned_eval_t typedefs to 32 bits.
2975 * eval.c (logical_or_term, logical_and_term, or_term, xor_term,
2976 and_term, not_term, logical_not_term, cmp_term, shift_term,
2977 add_term, mult_term, exp_term, unary_term, simple_term): Add
2978 prototype to forwarded declarations. Declare parameter v1 as
2979 eval_t * instead of int *. Same for local variable v2 in dyadic
2980 functions. Same for result in exp_term.
2981 * builtin.c (m4_eval): Declare value as eval_t instead of int.
2982 (ntoa): Declare value as eval_t instead of int. Declare uvalue as
2983 unsigned_eval_t instead of unsigned int. Change casts accordingly.
2984 (shipout_int): Cast first argument of ntoa to eval_t.
2985 Reported by Thorsten Ohl.
2987 * macro.c: Complete the prototypes of forwarded expand_macro and
2989 Reported by Thorsten Ohl.
2991 * m4.h: Define voidstar as void * or char * depending on __STDC__.
2992 The Ultrix 3.1 compiler cannot do much with void pointers.
2994 * builtin.c (dumpdef_cmp): Replace void * by voidstar.
2995 * m4.c (xfree): Replace void * by voidstar.
2996 Reported by Tom McConnell.
2998 * ansi2knr.1: New, from elsewhere.
2999 * Makefile.in (DISTFILES): Distribute ansi2knr.1
3001 * Makefile.in (stamp-h.in): Avoid running ./config.status if
3002 stamp-h does not exist yet. This avoids running it a second time
3003 just after the initial ./configure.
3004 Reported by David MacKenzie and Tom McConnell.
3006 * m4.h: Replace the enum debug_info declaration with a series of
3007 #define's. The Ultrix 3.1 compiler would otherwise need casting
3008 (int) to most references, when used in expressions.
3009 Reported by Tom McConnell.
3011 Sat Jun 25 00:10:05 1994 Francois Pinard (pinard@icule)
3013 * aclocal.m4: Replace FP_PROTOTYPES by AC_HAVE_PROTOTYPES,
3014 following an idea from Brook G. Milligan. AC_HAVE_PROTOTYPES
3015 calls the compiler. Previously, FP_PROTOTYPES was only calling
3016 the preprocessor; by not being subject to CFLAGS, this was
3017 discouraging those flags asking for ANSI compilation.
3018 * acconfig.h: Document HAVE_PROTOTYPES.
3019 * configure.in: Use AC_HAVE_PROTOTYPES instead of FP_PROTOTYPES.
3020 * m4.h: Define _() according to HAVE_PROTOTYPES, not __STDC__.
3021 Reported by Eric Backus.
3023 * configure.in: Substitute CFLAGS and LDFLAGS, taking their value
3024 from the environment. Default CFLAGS to -g if not set.
3025 * Makefile.in: Have CFLAGS and LDFLAGS substituted from configure.
3026 * lib/Makefile.in: Have CFLAGS substituted from configure.
3027 Reported by Eric Backus and Tom McConnell.
3029 * configure.in: m4_undefine changeword before using AC_ENABLE.
3031 * m4.h: Declare prototypes for error (for ANSI compilers only),
3032 prefix_all_builtins and reference_error.
3033 Reported by Tom McConnell.
3035 * input.c (set_word_regexp): Do not try to initialize the array
3036 test from a string, this does not work with non-ANSI compilers.
3037 Reported by Eric Backus.
3039 * Makefile.in (dist): Clean examples/ before saving it.
3040 (distclean-local): Also remove stamp-h.
3041 Reported by Eric Backus.
3043 * Makefile.in (_stackovf.c): Goal for compiling stacokovf.c with
3045 Reported by Tom McConnell.
3047 * checks/Makefile.in (clean): Depends on mostlyclean.
3048 (mostlyclean): New goal.
3050 Fri Jun 24 23:30:31 1994 Francois Pinard (pinard@icule)
3052 * Makefile.in (DISTFILES): Distribute install.sh.
3053 * install.sh: New file, copied from elsewhere.
3054 Reported by Assar Westerlund and Kaveh R. Ghazi.
3056 Thu Jun 23 00:00:30 1994 Francois Pinard (pinard@icule)
3058 * configure.in: Define ENABLE_CHANGEWORD if --enable-changeword.
3059 * acconfig.h: Explain ENABLE_CHANGEWORD.
3061 [These modifs all depend upon ENABLE_CHANGEWORD and are adapted
3062 from code provided by Pete Chown]
3063 * m4.h: Add original_text field to u_t variant of union u.
3064 Declare TOKEN_DATA_FUNC macro.
3065 * builtin.c: Declare changeword.
3066 (m4_changeword): New function.
3067 * input.c: Include "regex.h", define variables with word regexps.
3068 (input_init): Initialize the word regexp.
3069 (set_word_regexp): New.
3070 (next_token): Declare local variables, use the previous code if
3071 default_word_regexp is true. Else, match using a new code. Save
3073 * macro.c (expand_token): Ship out original text if not a macro
3075 Reported by Krste Asanovic and Pete Chown.
3077 [These modifs all depend upon ENABLE_CHANGEWORD]
3078 * m4.h: Declare external user_word_regexp.
3079 * m4.c: Declare user_word_regexp, and initialize it from
3080 --word-regexp or -W, or NULL if not specified.
3081 * input.c: Use user_word_regexp if specified, instead of
3082 DEFAULT_WORD_REGEXP.
3084 * Makefile.in (m4): Revert Jan 3 1994 change. I'm unable to
3087 * Makefile.in, lib/Makefile.in: Limit suffixes to .c and .o.
3088 * checks/Makefile.in: Empty the suffix list.
3089 Reported by Geoff Russell, Joel Sherrill and Roland McGrath.
3091 * m4.c: Declare nesting_limit and initialize it to 250.
3092 Implement -LNUMBER or --nesting-limit=NUMBER to change its
3094 * m4.h: Declare nesting_limit as external.
3095 * macro.c (expand_macro): Stop execution whenever nesting limit
3097 Reported by Bengt Mertensson.
3099 * eval.c (evaluate): Diagnose excess characters in eval input.
3100 Things like `eval(08)' used to return 0 with no diagnostic.
3102 * m4.h: Capitalize first letter of all macro arguments in
3105 * m4.c: Declare warning_status, initialize it to 0. Add new
3106 option -E, or --fatal-warnings, which sets warning_status to
3107 EXIT_FAILURE instead.
3108 * m4.h: Declare external warning_status. Define EXIT_SUCCESS and
3109 EXIT_FAILURE if not otherwise done by header files.
3110 * m4.c: Delete declarations for EXIT_SUCCESS and EXIT_FAILURE.
3111 * m4.c, input.c, output.c, symtab.c, builtin.c, macro.c, debug.c,
3112 eval.c: Replace 0 by warning_status and 1 by EXIT_FAILURE in first
3113 argument of all M4ERROR calls.
3114 Reported by Noah Friedman.
3116 * examples/incl-test.m4: Renamed from incl_test.m4.
3117 * examples/include.m4: Include incl-test.m4 instead of
3119 * examples/multiquotes.m4: Renamed from multi-quotes.m.
3121 Wed Jun 22 21:58:54 1994 Francois Pinard (pinard@icule)
3123 * configure.in: Avoid USE_STACKOVF if <siginfo.h> not found. Note
3124 that Jim developped stackovf.c on a 486 running SVR4.0 (ESIX), and
3125 also tested it on a Sun Sparc workstation running SunOS 4.x.
3127 * format.c (format): When not HAVE_EFGCVT, m4 was failing the
3128 49.format check, abusing a `union values' argument with sprintf
3129 without selecting the proper field. Now, save the formatting type
3130 first, delaying the fetch of the corresponding argument.
3131 Reported by Joseph E. Sacco and Tom Quinn.
3133 * format.c (format): Remove const from char *fmt declaration when
3134 not HAVE_EFGCVT, because a NUL may be forced into it.
3136 * m4.h: Declare atof() when not STDC_HEADERS.
3137 Reported by Joseph E. Sacco.
3139 * Regenerate configure using Autoconf 1.11, this corrects a
3140 problem about an incorrect cpp seting on NeXT 3.1.
3141 Reported by Alexander Lehmann.
3143 Sun Jun 5 16:25:19 1994 Francois Pinard (pinard@icule)
3145 * m4.h (_): Change argument from `x' to `Args'.
3147 Wed May 4 23:59:39 1994 Francois Pinard (pinard@icule)
3149 * Makefile.in: Remove all occurrences of $(MFLAGS), which were
3150 bringing more evil than good on a few systems.
3151 Reported by Greg A. Woods.
3153 Fri Apr 22 15:59:35 1994 Francois Pinard (pinard@icule)
3155 * m4.h: Rename Args() to _().
3156 * m4.h: Remove extern specifier from all function declarations.
3158 Fri Apr 22 15:51:21 1994 Jim Avera (jima@netcom.com)
3160 * stackovf.c: New file implementing stack-overflow detection.
3161 * configure.in: Check for getrlimit, sigaction. If all of
3162 standard headers, getrlimit and sigaction, define USE_STACKOVF and
3163 substitute ${U}stackovf.o for STACKOVF.
3164 * acconfig.h: Declare USE_STACKOVF.
3165 * Makefile.in: Distribute stackovf.c, link with $(STACKOVF).
3166 * m4.h: Declare setup_stackovf_trap().
3167 * m4.c: Call setup_stackovf_trap().
3168 * tests/stackovf_test.sh: New file.
3170 Wed Apr 13 14:10:30 1994 Francois Pinard (pinard@icule)
3172 * checks/Makefile.in: Rename .all-stamp to stamp-checks.
3174 * Makefile.in (Makefile, etc.): Adapt for Autoconf 1.8.
3176 Sun Jan 30 14:24:19 1994 (pinard at icule)
3178 * m4.h: Remove definition of volatile, not used anymore.
3179 Reported by Jim Meyering and Joseph E. Sacco.
3181 * m4.h: Consistently use `do { ... } while (0)' in macros, instead
3182 of `if ... else /* nothing */' for if macros.
3183 Reported by Jim Meyering.
3185 * builtin.c (m4_regexp): Reorganize the code for avoiding a
3186 warning from gcc about `repl' possibly used before defined.
3187 Reported by Jim Meyering.
3189 * m4.h: Avoid a pre-ANSI <memory.h> together with <string.h>.
3190 Reported by Jim Meyering.
3192 Tue Jan 25 18:39:37 1994 Francois Pinard (pinard at icule)
3194 * m4.h: Move the conditional definition of volatile after the
3195 inclusion of system files, because they may define it first.
3197 Tue Jan 4 19:46:50 1994 Francois Pinard (pinard@icule)
3199 * checks/Makefile.in (CHECKS): Add a useless `*' before `[', to
3200 get around a problem with Alpha make seeing a syntax error, there.
3201 Reported by Vern Paxson.
3203 Mon Jan 3 00:21:45 1994 Francois Pinard (pinard@icule)
3205 * Makefile.in: Do not define LDFLAGS, use CFLAGS on link calls.
3206 Reported by Richard Stallman.
3208 Sat Dec 25 08:06:05 1993 Francois Pinard (pinard@icule)
3210 * configure.in: Correct test for strerror, AC_FUNC_CHECK was used
3211 instead of AC_HAVE_FUNCS.
3212 Reported by Noah Friedman.
3214 Wed Dec 1 09:37:53 1993 Francois Pinard (pinard@icule)
3216 * m4.c: Initialize show_help and show_version to zero.
3218 * m4.c: Ensure EXIT_SUCCESS and EXIT_FAILURE are defined.
3219 Use them in exit() and usage() calls.
3221 Sat Nov 27 10:43:24 1993 Francois Pinard (pinard@icule)
3223 * m4.h: Delete extern sys_nerr, sys_errlist declarations, and
3224 syserr() macro. Delete errref, add reference_error and M4ERROR.
3225 * m4.c: Replace errref, which was returning an input reference
3226 string, with reference_error, which prints it on standard error.
3227 * builtin.c, output.c: Use errno as second parameter to error,
3228 instead of using syserr() with %s.
3229 * *.c: Use M4ERROR instead of error: no more errref() with %s.
3230 Doing so, the program name appears after the input reference
3231 instead of before, which eases M-x next-error processing.
3233 Wed Nov 24 22:16:15 1993 Francois Pinard (pinard@icule)
3235 * checks/get-them: Escape braces with backslashes in patterns,
3236 because HPUX-9.01 awk needs this.
3237 Reported by Jim Meyering.
3239 Mon Nov 22 10:55:52 1993 Francois Pinard (pinard@icule)
3241 * builtin.c: Declare "FILE *popen ();".
3243 * m4.h: Remove MESSAGE{,1,2}, WARNING1, FATAL{,1}, INTERNAL_ERROR
3244 macros, replace error_message_prefix() declaration by errref()'s.
3245 Declare xrealloc, for use in errref().
3246 * m4.c: Delete error_message_prefix() function, add errref().
3247 * *.c: Use error() systematically in place of all error macros,
3248 now that error() flushes stdout first. Make needed adjustments.
3250 * m4.h: Remove const in sys_errlist[] declaration, it creates
3251 conflicts on SGI and Alpha.
3252 Reported by Kaveh R. Ghazi.
3254 Sat Nov 20 08:26:15 1993 Francois Pinard (pinard@icule)
3256 * m4.c: Include <getopt.h> instead of "getopt.h".
3258 * configure.in: Output to config.h. Use HAVE_FUNCS preferably.
3259 * acconfig.h: New, for documenting HAVE_EFGCVT.
3260 * Makefile.in: Distribute acconfig.h, .stamp-h.in and config.h.in,
3261 use them wherever appropriate. Also use -I. for compilations.
3262 * lib/Makefile.in: Use -I.. for compilations.
3263 * *.c: Include <config.h> or "config.h".
3265 * m4.h: Test for HAVE_MEMORY_H instead of NEED_MEMORY_H.
3266 * configure.in: Use AC_HAVE_HEADERS(memory.h), delete AC_MEMORY_H.
3268 Wed Nov 17 09:34:55 1993 Francois Pinard (pinard@icule)
3270 * builtin.c (m4_eval): Cast strlen to (int) before comparing.
3272 * input.c (input_init): Initialize quote and comment strings
3273 explicitely instead of calling set_quotes and set_comment: by
3274 doing so, we ensure we do not free uninitialized variables.
3276 * checks/check-them: Reverse arguments to both diff, so the
3277 expected is on the left and the obtained on the right.
3279 * m4.h: Add MESSAGE{,1,2}, WARNING1, FATAL{,1} and INTERNAL_ERROR
3280 macros. Delete declarations for m4error, warning, fatal and
3281 internal_error, add declaration for error_message_prefix.
3282 * m4.c: Delete m4error, warning, fatal and internal_error
3283 routines, add error_message_prefix routine.
3284 * *.c: Replace m4error routine calls with MESSAGE* macro calls,
3285 warning with WARNING*, fatal with FATAL* and internal_error with
3287 * Makefile.in (_m4.c): Do not adjust ansi2knr output for va_alist,
3288 this is not needed anymore.
3290 * m4.h: Declare extern FILE *debug. Add DEBUG_PRINT{1,3} and
3291 DEBUG_MESSAGE{,1,2} macros. Delete declarations for debug_print
3292 and debug_message, add declaration for debug_message_prefix.
3293 * debug.c: Remove static specifier for FILE *debug declaration.
3294 Delete debug_print and debug_message routines, add
3295 debug_message_prefix routine.
3296 * builtin.c, debug.c: Replace debug_print routine calls with
3297 DEBUG_PRINT* macro calls.
3298 * input.c, path.c: Replace debug_message routine calls with
3299 DEBUG_MESSAGE* macro calls.
3301 * m4.h: Remove inclusion of <varargs.h>.
3302 * debug.c: Include <stdarg.h> or <varargs.h>.
3303 (trace_format): Use stdarg instead of varargs if __STDC__.
3305 * configure.in: Remove checks for vfprintf and _doprnt. These
3306 implementations use varargs tricks which are not portable enough.
3307 * lib/vfprintf.c: Deleted.
3308 * lib/_doprnt.c: Deleted.
3309 * lib/Makefile.in: Adjusted accordingly. Remove LIBOBJS.
3310 Reported by Joel Sherrill.
3312 * path.c (add_include_directory): Use xstrdup.
3314 * builtin.c (find_builtin_by_name): Declare static.
3316 * *.[ch]: Add const to a few "char *" declarations.
3318 * configure.in: Remove commented tests for fileno() and fstat().
3319 * debug.c: Remove comments about HAVE_FILENO and HAVE_FSTAT.
3321 * debug.c (debug_flush_files): New.
3322 * m4.h: Declares it.
3323 * builtin.c (m4_syscmd, m4_esyscmd): Use it.
3324 Reported by Nicolas Pioch.
3326 Fri Nov 12 10:02:26 1993 Francois Pinard (pinard@icule)
3328 * Makefile.in (m4.dvi): Use m4.texinfo instead of m4.texi.
3329 Reported by Joel Sherrill.
3331 * builtin.c (prefix_all_builtins): Instead of the table size, use
3332 the null entry at end for stopping the loop. It was overwritten.
3333 Reported by Andreas Schwab and Jim Meyering.
3335 * builtin.c (prefix_all_builtins): Cast xmalloc to (char *).
3336 Reported by Kaveh R. Ghazi.
3338 * macro.c (call_macro): Add * in (*SYMBOL_FUNC (sym)) (...).
3339 Reported by Karl Vogel.
3341 Tue Nov 9 09:31:47 1993 Francois Pinard (pinard@icule)
3343 * m4.h: Do not define volatile if already defined.
3344 Reported by Rene' Seindal.
3346 * lib/Makefile.in: Add a forgotten ALLOCA=@ALLOCA@. Grrr!
3348 Reported by Bernhard Daeubler, Eric Backus, Hal Peterson, Hoang
3349 Uong, Ian Taylor, Kaveh R. Ghazi, Tom McConnell and Walter Wong.
3351 Mon Nov 8 21:11:44 1993 Francois Pinard (pinard@icule)
3353 * m4.h: Define strchr and strrchr in terms of index and rindex,
3354 instead of the other way around.
3355 * builtin.c, m4.c, path.c: Use strchr instead of index.
3357 * input.c (next_char): Remove a "break;" after a "return ...;".
3358 Reported by Tom McConnell.
3360 Mon Nov 8 12:45:34 1993 Francois Pinard (pinard@icule)
3364 * configure.in: Do not copy check files in the build hierarchy.
3365 * checks/check-them: Identify the m4 version being checked. For
3366 finding m4, look in $PATH instead of in the parent directory.
3367 * Makefile.in (check): Prepend `pwd` to $PATH before checking.
3368 * checks/Makefile.in (.all-stamp): Always create check files in
3369 the source hierarchy, not anymore in the build hierarchy.
3370 (check): cd to the source hierarchy before performing checks.
3371 Do not copy nor clean COPYING anymore, take it from `..'.
3372 Reported by Tom McConnell.
3374 * Makefile.in (Makefile): Use $(SHELL).
3375 (config.status): Use $(SHELL). Use "config.status --recheck"
3376 instead of "configure --no-create", which is obsolete.
3377 Reported by Tom McConnell.
3379 Fri Nov 5 09:49:30 1993 Francois Pinard (pinard@compy.IRO.UMontreal.CA)
3381 * m4.c (usage): Use "%s" instead of "m4" in format string.
3382 Reported by Jim Meyering.
3384 * Makefile.in: Distribute mkinstalldirs.
3385 Reported by Pierre Gaumond.
3386 Reported by Jim Meyering.
3387 Reported by Tom McConnell.
3388 Reported by Andreas Gustafsson.
3390 * checks/check-them: Renamed from checks/check_them.
3391 * checks/get-them: Renamed from checks/get_them.
3392 * checks/.all-stamp: Renamed from checks/.all_stamp.
3393 * checks/Makefile.in: Changed accordingly.
3394 Reported by Jim Meyering.
3396 Thu Nov 4 13:50:52 1993 Francois Pinard (pinard@lagrande.IRO.UMontreal.CA)
3398 * lib/Makefile.in (dist): Correct permissions on files.
3400 * output.c: Declare tmpfile, some systems don't.
3402 Wed Nov 3 09:09:16 1993 Francois Pinard (pinard@icule)
3404 * checks/Makefile.in (dist): Correct permissions on files.
3406 * Makefile.in (dist): Ensure recursive linking for subdirectory
3407 `examples', also set read/write permissions on all its files.
3409 * mkinstalldirs: New, from elsewhere.
3410 * Makefile.in: Use it.
3412 * debug.c: Synchronize debug messages and regular output when
3413 the debug file and stdout are redirected to the same file.
3414 * configure.in: Add (commented) checks for fileno and fstat.
3415 Reported by Jim Avera.
3417 * builtin.c (m4_ifelse): Diagnose excess arguments if 5, 8, 11,
3418 etc., arguments, then ignore the superfluous one. m4 used to
3419 diagnose missing arguments and return the empty string.
3420 Reported by Nick S. Kanakakorn.
3422 Tue Nov 2 00:55:41 1993 Francois Pinard (pinard@icule)
3424 * m4.c (main): At end of all input, ensure all undiverted text
3425 goes to the main output stream.
3426 Reported by Andreas Gustafsson.
3428 * m4.c (main): exit (0), instead of return 0.
3430 * m4.c: Implement -P and --prefix-builtins.
3431 * builtin.c: Delete const specifier on builtin_tab.
3432 (prefix_all_builtins): New.
3433 Reported by Noah Friedman.
3434 Reported by Scott Bartram.
3436 * c-boxes.el: New, from elsewhere.
3437 * Makefile.in: Distribute it.
3439 * m4.h: Do not define bcopy if <string.h> defines it.
3440 Reported by Stephen Perkins.
3442 * builtin.c (define_macro): Allow a missing second argument, in
3443 which case it is implied empty. Affects define and pushdef.
3444 Reported by Eric Allman.
3446 Mon Nov 1 07:45:24 1993 Francois Pinard (pinard@icule)
3448 * m4.h: Add blind_if_no_args in struct builtin, blind_no_args in
3449 struct symbol adn SYMBOL_BLIND_NO_ARGS macro.
3450 * builtin.c: Initialize all the blindness fields in builtin_tab.
3451 (define_builtin): Copy the blindness of a builtin into its symbol.
3452 * macro.c (expand_token): Avoid processing a blind builtin if the
3453 next character is not an opening parenthesis.
3454 Reported by David MacKenzie.
3455 Reported by Noah Friedman.
3457 * configure.in: Ensure an exit status of 0 on completion.
3458 Reported by Vivek P. Singhal.
3460 * eval.c (eval_lex): Admit both lower and upper case letters for
3461 bases greater than 10. Only lower case letters were accepted.
3463 * eval.c (eval_lex): Recognize 0bDIGITS and 0rRADIX:DIGITS syntax.
3464 Reported by Krste Asanovic.
3466 * eval.c: Rename NOT to LNOT. Add XOR, NOT, LSHIFT and RSHIFT.
3467 * eval.c (logical_not_term): New name for not_term.
3468 * eval.c (xor_term): New, between or_term and and_term.
3469 * eval.c (not_term): New, between and_term and logical_not_term.
3470 * eval.c (shift_term): New, between cmp_term and add_term.
3471 Reported by Krste Asanovic: ~, ^, <<, >>.
3472 Reported by Ben A. Mesander: ** vs ^.
3474 * m4.c: Delete xmalloc.c, xrealloc.c, xstrdup.c.
3475 * m4.h: Delete xrealloc.c.
3476 * lib/xmalloc.c: New, from elsewhere.
3477 * lib/xstrdup.c: New, from elsewhere.
3478 * lib/Makefile.in: Distribute and compile them.
3480 * m4.c: Change progname to program_name.
3481 * builtin.c, eval.c, m4.c, m4.h: Rename error to m4error.
3482 * lib/error.c: New, from elsewhere.
3483 * lib/Makefile.in: Distribute and compile error.c.
3484 * configure.in: Check AC_VPRINTF and for strerror.
3485 * m4.c: Delete cmd_error. Use error instead.
3486 * m4.c: Change label capitalisation to "ERROR", "Warning", etc.
3488 * m4.h: Delete #define const, let Autoconf takes care of this.
3490 * m4.c: Remove all code conditionalized by IMPLEMENT_M4OPTS.
3491 Merge parse_args into main. Declare argv to be `char *const *',
3492 then remove superfluous casts.
3494 * m4.c: Rename --no-gnu-extensions to --traditional.
3495 Reported by Ben A. Mesander.
3497 * m4.c (usage): Add a status parameter. Supply one in various
3498 calls. Add --help processing. Remove -V for --version.
3500 * lib/Makefile.in: Put $(CFLAGS) last in .c.o rule.
3502 * lib/Makefile.in: Have an AR=ar declaration.
3503 Reported by Eric Backus.
3504 Reported by Bjorn R. Bjornsson.
3505 Reported by Tom Tromey.
3506 Reported by Kristine Lund.
3507 Reported by Marion Hakanson.
3509 Sat Oct 30 12:51:47 1993 Francois Pinard (pinard@icule)
3511 * Makefile.in (m4.info): Use -I$(srcdir) on $(MAKEINFO).
3512 Reported by Noah Friedman.
3514 Mon Oct 25 14:58:48 1993 Francois Pinard (pinard@icule)
3516 * Makefile.in: Remove MDEFINES and cleanup.
3518 Wed Jun 9 14:59:46 1993 Francois Pinard (pinard@icule)
3520 * Makefile.in (dist): Replace "echo `pwd`" by a mere "pwd".
3523 Sat Feb 6 14:59:22 1993 Francois Pinard (pinard@icule)
3525 * Makefile.in, lib/Makefile.in, check/Makefile.in: In dist goals,
3526 ensure 777 mode for directories, so older tar's will restore file
3529 Sun Jan 17 15:38:05 1993 Francois Pinard (pinard@icule)
3531 * Makefile.in, lib/Makefile.in: Put $(CFLAGS) after $(CPPFLAGS),
3532 so the installer can override automatically configured choices.
3533 Reported by Karl Berry.
3535 Fri Jan 15 16:07:00 1993 Francois Pinard (pinard@icule)
3537 * lib/vfprintf.c: Stolen from Oleo distribution and adapted. The
3538 previous version was not working properly on m68k-hp-bsd4.3.
3539 Reported by Roland McGrath.
3541 * lib/_doprnt.c: Stolen from Oleo distribution.
3542 * configure.in: Check for _doprnt.c if vfprintf.c selected.
3543 * lib/Makefile.in: Distribute _doprnt.c.
3544 Do not distribute regex.[ch].old anymore.
3546 Fri Jan 1 19:42:23 1993 Francois Pinard (pinard at icule)
3548 * Makefile.in, lib/Makefile.in: Reinstate $(CPPFLAGS), use it.
3549 Richard wants it there.
3551 Sun Dec 27 07:01:54 1992 Francois Pinard (pinard at icule)
3553 * Makefile.in: Add DEFS to MDEFINES.
3554 * lib/Makefile.in (.c.o): Remove $(CPPFLAGS).
3555 (libm4.a): Remove the library before creating it.
3556 (distclean): Remove tags and TAGS too.
3558 Wed Dec 23 12:46:55 1992 Francois Pinard (pinard at icule)
3560 * Makefile.in (dvi, m4.dvi): New goals.
3562 * builtin.c, eval.c, format.c, input.c, m4.[ch], m4.texinfo,
3563 macro.c, output.c, path.c, symtab.c: Change Copyright from
3564 1989-1992 to the explicit enumeration 1989, 1990, 1991, 1992.
3566 * examples/divert.m4: Deleted, this bug has been corrected.
3568 * Makefile.in (texclean, mostlyclean): New goals.
3570 * Makefile.in (clean): Remove clutter from ansi2knr.
3571 Reported by Pierre Gaumond.
3572 Reported by Greg A. Woods.
3574 Sun Dec 20 10:40:20 1992 Francois Pinard (pinard at icule)
3576 * Makefile.in: Remove $(CPPFLAGS) from the .c.o rule. The user
3577 might well use CFLAGS is s/he needs it.
3579 * Makefile.in: Allow installation of info files from a separate
3581 Reported by Jason Merrill.
3582 Reported by David MacKenzie.
3583 Reported by Skip Montanaro.
3584 Reported by Erez Zadok.
3585 Reported by Assar Westerlund.
3587 Sat Dec 19 08:21:34 1992 Francois Pinard (pinard at icule)
3590 This is still a beta release for the future GNU m4 version 1.1.
3592 * lib/alloca.c: New, from elsewhere.
3593 * lib/Makefile.in: Distribute it. Define and use $(ALLOCA).
3595 * m4.h: Do not define index/rindex if already defined. If
3596 FALSE/TRUE are already defined, do not redefine them, but merely
3597 define boolean typedef to int.
3599 * Makefile.in: Use $(DEFS) while compiling ansi2knr.
3600 * ansi2knr.c: Rewrite #ifdef HAVE_STRING_H || STDC_HEADERS,
3601 because some C compilers do not like connectives with #ifdef.
3602 * m4.h: Define `volatile' only if __GNUC__, instead of once for
3603 __GNUC__ and once for __STDC__.
3604 * lib/regex.h: Leave const alone, AC_CONST will take care of it.
3606 * checks/Makefile.in: Use .all_stamp instead of $(CHECKS) for
3607 Makefile dependencies. Without it, make keeps destroying and
3608 remaking $(CHECKS) in a loop (why?). Distribute .all_stamp.
3610 * m4.h, m4.c, builtin.c, output.c: Change all divertion/DIVERTION
3611 to diversion/DIVERSION, this was a spelling error.
3613 * m4.c: Declare version[], remove #include "version.h".
3614 * version.h: Deleted.
3615 * Makefile.in: Remove references to version.h.
3617 * output.c (shipout_text): Centralize all `#line NUM ["FILE"]'
3618 production, by using a simpler and more robust algorithm. This
3619 solves the problem of synclines sometimes written in the middle of
3620 an output line. Delete sync_line() and output_lines variable.
3621 * m4.h: Remove sync_line prototype and output_lines declaration.
3622 * input.c (next_char), output.c (shipout_text): Remove references
3624 * input.c (push_file, pop_file): Merely put the value -1 in
3625 output_current_line instead of calling sync_line, for delaying a
3626 single `#line NUM FILE' before next output line. Do not test
3627 for sync_output, because this is unnecessary clutter.
3628 * output.c (make_divertion, insert_divertion): Idem.
3629 * input.c: Rename must_advance_line to start_of_input_line, for
3632 * debug.c (trace_header): Select a new debug line format, which
3633 better complies with GNU standards for formatting error messages.
3634 With option `-dfl', M-x next-error might be used on the output.
3635 * m4.c (vmesg): Adjust format of error output to GNU standards.
3636 * m4.texinfo: Adjust examples for `make check' to work.
3638 * m4.h, builtin.c, debug.c, input.c, macro.c, path.c: Use upper
3639 case for enum debug_info constants, which were all lower case.
3641 * builtin.c (m4_regexp, m4_patsubst): Use re_search instead of
3643 * lib/regex.[ch]: Use new version from textutils 1.3.6, with some
3644 collected patches. I tried a few times using newer regex.[ch], it
3645 mysteriously stopped aborting with this one. Insecure feeling...
3646 * lib/Makefile.in: Distribute regex.[ch].old, just in case!
3648 Fri Dec 18 11:08:03 1992 Francois Pinard (pinard at icule)
3650 * m4.c: Change `--no-warnings' to `--silent'.
3651 Reported by David MacKenzie.
3653 * m4.c: Put all M4OPTS code upon IMPLEMENT_M4OPTS control, and
3654 leave it off for now. See comment in m4.c for justification.
3655 Reported by David MacKenzie.
3657 * configure.in: Replace AC_USG by AC_HAVE_HEADERS(string.h).
3658 * m4.h, ansi2knr.c, lib/regex.h: Replace USG by HAVE_STRING_H.
3660 * Makefile.in: Add a new `info' goal. Use macro MAKEINFO.
3662 * Makefile.in: Ensure recursive cleaning is done before local
3663 cleaning for all clean goals.
3665 * builtin.c (ntoa): Ensure the value is always interpreted as a
3666 signed quantity, whatever the radix is.
3668 Wed Nov 18 07:57:19 1992 Jim Meyering (meyering@idefix)
3670 * builtin.c, format.c, input.c: Split long lines.
3671 * m4.c: Use typedef macro_definition instead of struct
3673 * symtab.c: Use typedef symbol instead of struct symbol.
3675 Tue Nov 17 01:58:40 1992 Francois Pinard (pinard at icule)
3677 * *.[ch]: Remove all trailing whitespace, in code and comments.
3679 * configure.in: Find some awk.
3680 * Makefile.in: Add $(AWK) to MDEFINES.
3681 * checks/Makefile.in: Transmit $(AWK) to get_them.
3682 * checks/get_them: Use $AWK instead of gawk. Add a close in the
3683 awk script when switching files, because without this, mawk runs
3684 out of file descriptors.
3686 Mon Nov 16 20:42:56 1992 Francois Pinard (pinard at icule)
3688 * Makefile.in (realclean): Delete m4.info*.
3689 Reported by Jim Meyering.
3691 * Makefile.in: Adjust and link with checks/Makefile.
3692 * checks/Makefile.in: New.
3693 * configure.in: Output checks/Makefile.
3695 * checks/get_them: Have the dnl header of each test more
3696 recognizable by next-error, also use a better message.
3698 Mon Nov 16 07:48:52 1992 Jim Meyering (meyering@idefix)
3700 * m4.h [__GNUC__]: Use __volatile__ instead of `volatile.'
3701 And use that only if __GNUC__ since we're using it's GCC-specific
3702 semantics that tell the compiler the associated function doesn't
3705 * builtin.c (substitute): Don't use character as an array index.
3706 (dumpdef_cmp): Make formal arguments `const void *' to avoid
3707 warnings with gcc -W -Wall on systems with qsort prototype.
3708 (m4_errprint): Cast obstack_finish to `char *' to avoid warnings
3711 * eval.c (most functions): Add parentheses to assignments used
3712 as truth values go avoid warnings from gcc -Wall.
3714 * input.c, m4.c, output.c, path.c, symtab.c: Declare static
3715 any functions that don't need external scope.
3717 * builtin.c, debug.c, format.c, m4.c, m4.h, macro.c, symtab.c
3718 (many functions and arrays): Declare `const'.
3720 Sun Nov 15 09:42:09 1992 Francois Pinard (pinard at icule)
3722 * *.[ch]: Rename nil to NULL, using the declaration from <stdio.h>,
3723 removing the declaration from m4.h. Also rename false to FALSE
3726 * lib/Makefile.in (Makefile): New goal.
3728 * Makefile.in, lib/Makefile.in: Add a .c.o rule, so CFLAGS is not
3729 so heavily loaded. It gets more easily overridable, calling make.
3730 Reported by Jim Meyering.
3732 * Makefile.in (dist): Get .fname from the current directory name,
3733 instead of from version.h. I need updating many files manually,
3734 when the version changes, version.h is just one of them.
3736 Sat Nov 14 11:01:20 1992 Francois Pinard (pinard at icule)
3738 * m4.h: Remove the tag `boolean' on the enum introducing typedef
3739 `boolean'. This tag conflicts with <sys/types.h> on SVR4.
3740 Reported by Tom McConnell.
3742 Fri Nov 13 00:12:50 1992 Francois Pinard (pinard at icule)
3744 * m4.texinfo: Correct the examples for 33.divert, 38.divnum,
3745 39.cleardiv, which were describing missing or spurious newlines.
3746 Modify examples 52.eval, 53.esyscmd and 54.sysval so the results
3747 do not depend on machine word size, `/bin/false' implementation,
3748 or `wc' output format. `make check' is more dependable, now.
3750 * checks/check_them: Summarize the failed tests by listing their
3751 name, at end. If none, issue `All checks successful'. Output
3752 `Checking' instead of `Input file:'.
3754 * checks/get_them, checks/check_them: Reindented.
3756 * Makefile.in (dist): chmod a+r before making the tar file.
3758 Thu Nov 12 14:42:57 1992 Francois Pinard (pinard at icule)
3760 * builtin.c (m4_dnl): Diagnose any parameter to `dnl'.
3762 * input.c (next_token): Reinitialize token_buttom just after using
3763 it as a watermark with obstack_free. Or else, a future token, big
3764 enough for triggering reallocation of the obstack chunk, could
3765 void the initialized value of token_buttom, later causing panic in
3766 obstack_free. Rename token_buttom to token_bottom everywhere.
3768 * m4.h: Before declaring errno, first include <errno.h> and
3769 ensure that it does not define errno.
3770 Reported by Richard Stallman.
3772 Wed Nov 11 17:40:35 1992 Francois Pinard (pinard at icule)
3774 * builtin.c: Define and use DECLARE macro for builtins.
3776 * builtin.c (m4_ifelse): Avoid any diagnostic when exactly one
3777 argument, this is a common idiom for introducing long comments.
3779 * builtin.c (m4_ifelse): If 3n + 2 arguments, diagnose missing
3780 arguments. The last argument was silently ignored.
3782 * m4.c (cmd_error): Add a missing semicolon before va_end().
3784 Tue Nov 10 08:57:05 1992 Francois Pinard (pinard at icule)
3786 * Makefile.in: Now handle protoized sources. Define and use U.
3787 Compile and use ansi2knr with old compilers. Update DISTFILES.
3788 Add `aclocal.m4' to `configure' dependencies.
3789 * ansi2knr.c: New, from Ghostscript distribution.
3790 * configure.in: Define U through FP_PROTOTYPES for old compilers.
3791 Add AC_ISC_POSIX, AC_CONST, AC_SIZE_T.
3792 * aclocal.m4: New, provide FP_PROTOTYPES.
3793 * m4.h: Conditionnaly protoized through Args, save for varags.
3794 * builtin.c: Protoized. Then:
3795 Include <sys/types.h> if size_t is not defined, before "regex.h".
3796 (m4_ifelse): Fetch built-in name properly for diagnostic.
3797 (m4_dumpdef): Remove wrong (char *) cast calling dump_symbol.
3798 (m4_regexp): Add const to `msg' declaration.
3799 (m4_patsubst): Add const to `msg' declaration.
3800 * debug.c: Protoized, save for varargs.
3801 * eval.c: Protoized.
3802 * format.c: Protoized.
3803 * input.c: Protoized.
3804 * m4.c: Protoized, save for varargs. Then:
3805 (xfree): Accept void * instead of char *.
3806 (xmalloc): Return void * instead of char *.
3807 (xrealloc): Accept and return void * instead of char *.
3808 * macro.c: Protoized.
3809 * output.c: Protoized.
3810 * path.c: Protoized. Then cast some (char *) over xmalloc's.
3811 * symtab.c: Protoized.
3813 Fri Nov 6 02:05:21 1992 Francois Pinard (pinard at icule)
3815 * m4.texinfo: Remove directory from diagnostics in 30.include,
3816 51.eval, 56.errprint and 57.m4exit tests.
3818 * m4.h: Remove declarations for int or void system functions, they
3819 cause more conflicting trouble than they make good.
3821 * configure.in: Avoid configuration header file. Add some tests.
3822 * m4.h: Remove #include "config.h".
3823 * Makefile.in, lib/Makefile.in: Implement Autoconf interface.
3824 Then, rewritten for better compliance with GNU standards.
3826 Thu Nov 5 12:37:13 1992 Francois Pinard (pinard at icule)
3828 * format.c (format): Avoid syntax error if not HAVE_EFGCVT,
3829 because of a misplaced #endif.
3831 * Many *.[hc] files: Correct intra-line spacing here and there,
3832 according to GNU indent 1.6 advice.
3834 * configure.in: New, using Autoconf 1.2.
3835 * m4.h: Reverse NO_MEMORY_H to NEED_MEMORY_H.
3836 * Delete old configure.in, configure, etc/configure.in,
3837 etc/configure, lib/configure.in, lib/configure and config/*.
3838 Reported by Jason Merrill.
3840 * symtab.c (hash): Change (char) NULL to '\0'.
3841 Reported by Jason Merrill.
3843 * Delete .vers, etc/newdist.sh, etc/newvers.sh and
3844 etc/nextvers.sh. Release numbers will be edited `by hand'.
3845 * version.h: De-automatize, force value in.
3847 * m4.c: Changes in order to use a newer getopt.h.
3848 Reported by David MacKenzie.
3850 * checks/: New name for examples/.
3851 * checks/get_them: New location for etc/get_examples.
3852 * checks/check_them: New location for etc/check_examples.
3853 * Makefile.in, checks/get_them, checks/check_them: Adjust.
3854 * lib/vfprintf.c: New location for etc/vfprintf.c.
3855 * Delete empty etc/.
3856 * examples/: New name for test/.
3858 Tue Mar 10 00:29:46 1992 Francois Pinard (pinard at icule)
3860 * Makefile.in (check): Add m4 as dependency.
3862 * m4.c: Accept --no-warnings instead of --no_warnings, and
3863 --no-gnu-extensions instead of --no_gnu_extensions. Make the
3864 usage message more informative.
3865 Reported by David MacKenzie.
3867 Mon Mar 9 14:53:40 1992 Francois Pinard (pinard at icule)
3869 * etc/check_examples: New name for check_examples.sh.
3870 * etc/get_examples: New name for get_examples.sh.
3871 * Makefile.in, etc/Makefile.in: Use new names.
3873 * Makefile.in: Transmit $(CC) while making in lib.
3875 * Many *.[hc] files: GNU indent'ed, with further fine tuning of
3876 code disposition by hand.
3878 Sun Mar 8 11:01:55 1992 Francois Pinard (pinard at icule)
3880 * m4.h: Delete definitions for abort() and exit().
3881 Reported by Richard Stallman.
3883 * config/hmake-unicos, config/s-unicos.h: New files.
3884 Reported by Hal Peterson.
3886 * eval.c (exp_term): Have N^0 return 1.
3887 Reported by Michael Fetterman.
3889 * eval.c, input.c, m4.h: Remove last comma in enums.
3890 Reported by Mike Lijewski.
3892 * Transfer of maintenance duties from Rene' to Franc,ois.
3894 Thu Oct 24 15:18:46 1991 Rene' Seindal (seindal at diku.dk)
3896 * Release 1.0. Many thanks to those, who provided me with bug
3897 reports and feedback.
3899 * Uses GNU configure, taken from the gdb distribution.
3901 * Uses GNU getopt(), with long option names.
3903 * The -Q/+quiet option is added, which suppresses warnings about
3904 missing or superflous arguments to built-in macros.
3906 * Added default options via the M4OPTS environment variable.
3908 * The built-in format can now be configured to use sprintf as
3909 the formatting engine, for systems without [efg]cvt(3).
3911 * GNU library code is moved to the ./lib subdirectory; other
3912 utility files are now in ./etc.
3914 * Several minor bugs have been fixed.
3916 Fri Jul 26 15:28:42 1991 Rene' Seindal (seindal at diku.dk)
3918 * Fixed various bugs. Release 0.99, manual 0.09. Many thanks to
3919 Francois Pinard and Roland H. Pesch for providing me with reports.
3921 * The builtins incr and decr are now implemented without use of
3924 * The builtin indir is added, to allow for indirect macro calls
3925 (allows use of "illegal" macro names).
3927 * The debugging and tracing facilities has been enhanced
3928 considerably. See the manual for details.
3930 * The -tMACRO option is added, marks MACRO for tracing as soon
3933 * Builtins are traced after renaming iff they were before.
3935 * Named files can now be undiverted.
3937 * The -Nnum option can be used to increase the number of
3938 divertions available.
3940 * Calling changecom without arguments now disables all comment
3943 * The function m4_patsubst() is now consistently declared
3946 * A bug in dnl is fixed.
3948 * A bug in the multi-character quoting code is fixed.
3950 * Several typos in the manual has been corrected. More probably
3953 * The m4.info file is now installed along with the program.
3955 Thu Nov 15 21:51:06 1990 Rene' Seindal (seindal at diku.dk)
3957 * Updated and enhanced version. Release 0.75, manual 0.07.
3959 * Implemented search path for include files (-I option and
3960 M4PATH envronment variable).
3962 * Implemented builtin "format" for printf-like formatting.
3964 * Implemented builtin "regexp" for searching for regular
3967 * Implemented builtin "patsubst" for substitution with regular
3970 * Implemented builtin "esyscmd", which expands to a shell
3973 * Implemented "__file__" and "__line__" for use in error
3976 * Implemented character ranges in "translit".
3978 * Implemented control over debugging output.
3980 * Implemented multi-character quotes.
3982 * Implemented multi-character comment delimiters.
3984 * Changed predefined macro "gnu" to "__gnu__".
3986 * Changed predefined macro "unix" to "__unix__", when the -G
3987 option is not used. With -G, "unix" is still defined.
3989 * Changed "shift", "$@" and "$*" to not insert spaces afters
3992 * Added program name to error messages.
3994 * Fixed two missing null bytes bugs.
3996 Mon Jan 22 21:08:52 1990 Rene' Seindal (seindal at diku.dk)
3998 * Initial beta release. Release 0.50, manual 0.05.
4008 Copyright (C) 1990, 1991, 1992, 1993, 1994, 2000, 2001, 2003,
4009 2005, 2006, 2007 Free Software Foundation, Inc.
4011 Copying and distribution of this file, with or without
4012 modification, are permitted provided the copyright notice
4013 and this notice are preserved.