1 2006-07-01 Eric Blake <ebb9@byu.net>
3 * GNUmakefile: New file, borrowed from coreutils.
4 * Makefile.am (EXTRA_DIST): Distribute GNUmakefile.
5 * Makefile.maint (Makefile): Delete this rule, now that
6 GNUmakefile includes Makefile.
8 2006-06-30 Eric Blake <ebb9@byu.net>
10 For compatibility with other m4 implementations, sysval returns
11 signal<<8 rather than 0 if syscmd is terminated by a signal.
12 * configure.ac (AC_CHECK_HEADERS_ONCE): Check for sys/wait.h.
13 * src/builtin.c (include): Include sys/wait.h when stdlib.h does
14 not provide wait macros.
15 (WTERMSIG, WIFSIGNALED, WIFEXITED): More fallback macros.
16 (M4SYSVAL_EXITBITS, M4SYSVAL_TERMSIGBITS): New helper macros.
17 (m4_esyscmd): Set sysval to -1 on failure.
18 (m4_sysval): Print 127 on failure, and accomodate signals if they
20 * NEWS: Document this change.
21 * doc/m4.texinfo (Platform macros, Esyscmd, Sysval): Fix typos in
23 * checks/check-them: Likewise.
24 * src/debug.c (debug_set_file): Work around mingw fstat bug.
26 * src/m4.h (UNIX, W32_NATIVE): Improve platform detection macros.
27 * src/freeze.c (produce_frozen_state): Use new spelling of
29 * src/builtin.c (predefined_tab): Add __windows__ on non-unix
31 (m4_syscmd, m4_esyscmd): The empty command is successful.
32 * doc/m4.texinfo (Shell commands): Rename from UNIX commands.
33 Document platform-dependence of system().
34 (Syscmd): Add example.
35 (Esyscmd): Make example more robust, and actually demonstrate
37 (Sysval): Expand test to cover esyscmd code path, and to check
38 that empty command is successful. Add conditional check for
40 (Other Incompatibilities): Move platform macros from here...
41 (Platform macros): ...to this new node. Add windows macro.
42 Check that exactly one platform macro is provided.
43 * checks/check-them: Improve trap cleanup. Tolerate dirname and
44 .exe in error messages. Allow for skipping checks.
45 * configure.ac (HAVE_EFGCVT): Kill dead configure check.
46 * NEWS: Document platform macros.
48 2006-06-29 Eric Blake <ebb9@byu.net>
50 Fix buffer overrun bug.
51 * m4/gnulib-cache.m4: Augment with gnulib-tool --import
53 * src/format.c [HAVE_EFGCVT]: Delete this code, and use *printf
54 variant instead, since [efg]cvt are obsolete and our use of them
55 was buggy (savannah sr #104303).
56 (format): Fix buffer overflow by using xasprintf.
57 * doc/m4.texinfo (Format): Expand format test to catch both bugs.
58 * NEWS: Document this fix.
60 * configure.ac (AC_CANONICAL_HOST, AC_CANONICAL_BUILD): Allow
62 (AC_CACHE_CHECK): Cache search for ecvt.
64 2006-06-27 Eric Blake <ebb9@byu.net>
66 * doc/m4.texinfo (Eval): Document 32-bit signed limitations
67 required by POSIX, and add example that exposed core dump on x86
69 (Incompatibilities): Document incompatibility in eval precedence.
70 * src/eval.c (shift_term): Explicitly mask, to avoid undefined
72 (mult_term): Explicitly check for -1, to avoid SIGFPE on x86.
73 * NEWS: Document this change.
75 * doc/m4.texinfo: Use @noindent consistently.
76 (Quoting Arguments): Document that unquoted parentheses group
78 (Pseudo Arguments): Expand tests to show this.
79 (Incompatibilities): Contrast traditional behavior of
82 2006-06-24 Eric Blake <ebb9@byu.net>
84 * configure.ac (AC_PREREQ): Autoconf 2.60 is now released.
85 (AC_CHECK_HEADERS_ONCE): Use this new feature.
86 (AC_CHECK_FUNCS_ONCE): Likewise.
88 2006-06-23 Eric Blake <ebb9@byu.net>
90 * doc/m4.texinfo: Quoting cleanup throughout - follow
91 autoconf-recommended style of one level of quote per parenthesis
92 in the normal case. Adjust error messages to match GNU coding
93 standards (and to allow 'make check' to pass again).
94 (Quoted strings, Inhibiting Invocation): Turn more examples into
96 (Comments): Resolve FIXME by adding example.
97 (Define): Add example about underquoting.
98 (Defn): Add example about use of $0.
99 (Indir, Format): Resolve FIXME done in last commit.
100 (Ifelse): Add example about creating blind macro.
101 (Debugging): Fix grammar.
102 (Dnl): Add example about dnl with arguments.
103 (M4wrap): Be explicit that LIFO order is non compliant, and will
105 (Undivert): Resolve FIXME by adding example.
106 (Frozen files): Document that m4wrap and sysval will not work
107 consistently until m4 2.0.
108 (Incompatibilities): Document another POSIX compliance bug, this
109 time with changequote. Document a traditional incompatibility
110 with partial input spanning file boundaries.
112 Make error messages more consistent with GNU coding standards -
113 start with lower case, and don't end sentence with punctuation.
114 * src/debug.c (trace_pre): Update message wording.
115 * src/eval.c (evaluate, cmp_term, shift_term, mult_term):
117 * src/freeze.c (produce_frozen_state, issue_expect_message),
118 (reload_frozen_state): Likewise.
119 * src/input.c (push_string_init, pop_init, init_macro_token),
120 (peek_input, next_char_1, set_word_regexp, next_token): Likewise.
121 * src/m4.c (stackovf_handler, main): Likewise.
122 * src/macro.c (expand_token, expand_argument, call_macro),
123 (expand_macro): Likewise.
124 * src/output.c (make_room_for, output_text, insert_file),
125 (freeze_diversions): Likewise.
126 * src/symtab.c (symtab_init, lookup_symbol): Likewise.
128 * src/builtin.c (builtin_tab): Make format and indir blind.
129 (substitute): Prefer "Warning:" vs. "ERROR:" in messages.
130 * NEWS: Mention the change to builtins.
132 2006-06-22 Eric Blake <ebb9@byu.net>
134 Robustify frozen file format.
135 * src/freeze.c (reload_frozen_state): Add GET_DIRECTIVE helper
136 macro. Require V first, and only accept it once. For F, use
137 placeholder if builtin is not found, rather than warning.
138 * src/m4.h (m4_placeholder): New prototype.
139 * src/builtin.c: Unify error message style.
140 (m4_placeholder): New function, warn if invoked.
141 (builtin_tab): Add m4_placeholder.
142 (m4_defn): Warn if placeholder is encountered.
143 (find_builtin_by_addr): Handle placeholder.
144 (find_builtin_by_name): Return placeholder on failure.
145 (m4_builtin): Treat placeholder as undefined.
146 * doc/m4.texinfo (Frozen files): Document changes in V and F.
147 * NEWS: Document this change.
148 Reported by Bruno Haible.
150 * doc/m4.texinfo: Whitespace cleanup. TABs are evil in texinfo.
151 (tabchar): New macro, so that 'make check' still works.
152 (Invoking m4): Document that ignored compatibility options -B, -S,
153 and -T each consume an argument.
154 * checks/get-them: Honor @tabchar{}.
156 Avoid compiler warnings during -DDEBUG.
157 * src/m4.h (M4_GNUC_ATTRIBUTE, M4_GNUC_UNUSED): New macros.
158 [DEBUG]: Also imply DEBUG_OUTPUT and DEBUG_STKOVF.
159 * src/input.c (print_token) [DEBUG_INPUT]: Use correct format.
160 (lex_debug) [DEBUG_INPUT]: Fix to compile. Mark unused.
161 (next_token) [DEBUG_INPUT]: Print before returning.
162 * src/path.c (include_dump) [DEBUG_INCL]: Mark unused.
163 * src/symtab.c (symtab_debug) [DEBUG_SYM]: Mark unused.
165 Avoid mkstemp bugs on various platforms.
166 * m4/gnulib-cache.c: Augment with gnulib-tool --import mkstemp.
167 * src/output.c [! HAVE_MKSTEMP]: Delete.
168 * configure.ac (AC_CHECK_FUNCS): Don't check for mkstemp.
169 * src/m4.h (mkstemp) [! HAVE_MKSTEMP]: Prototype, if needed.
170 * NEWS: Document this.
172 * Makefile.am (EXTRA_DIST): Distribute gnulib-cache.m4.
173 Reported by Bruno Haible.
175 2006-06-21 Eric Blake <ebb9@byu.net>
177 Avoid obsolete sigstack when POSIX sigaltstack is available.
178 * src/m4.c: Blindly assume signal.h, since stackovf.c and gnulib
180 * configure.ac (AC_CHECK_HEADERS): Likewise.
181 (AC_CHECK_TYPES): New check for siginfo_t, since siginfo.h is
182 obsolete and most hosts now have it in signal.h.
183 (AC_CHECK_MEMBERS): New check for sigaction.sa_sigaction.
184 (AC_CACHE_CHECK): Cache decision to use stackovf.
185 (AC_EGREP_HEADER): Switch to AC_CHECK_TYPES.
186 * src/stackovf.c (DEBUG_STACKOVF): Remove unused define.
187 (SA_RESETHAND, SA_SIGINFO): Provide fallback definitions, to
189 (PARAM_STACKOVF, PARAM_NOSTACKOVF): Move further away from NULL,
190 in case of dereferencing a member of a NULL pointer.
191 (sigsegv_handler) [HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define a
193 (setup_stackovf_trap): Use NULL instead of 0 for pointers, use
194 EXIT_FAILURE in error, indent preprocessor directives.
195 [HAVE_SIGALTSTACK && HAVE_SIGINFO_T]: Depend on siginfo_t, not
197 [HAVE_SIGACTION && defined SA_ONSTACK]: Prefer POSIX handler.
198 Reported by Santiago Vila.
200 2006-06-19 Eric Blake <ebb9@byu.net>
204 2006-06-18 Andreas Buening <andreas.buening@nexgo.de> (tiny change)
206 * checks/Makefile.in (PATH_SEPARATOR): New macro.
207 (check, installcheck): Use it, for OS/2.
209 2006-06-18 Eric Blake <ebb9@byu.net>
211 Consistently use "GNU M4" as package name, "m4" as executable
213 * NEWS: Document previous fix.
215 * README: Fix grammar. Document that --enable-changeword is on
217 * doc/m4.texinfo (Top, Changeword): Likewise.
218 (Sysval): Enhance this test.
219 (History): Backport this section from CVS head, and update.
221 2006-06-18 Bruno Haible <bruno@clisp.org> (tiny change)
222 Eric Blake <ebb9@byu.net>
224 * src/builtin.c (WEXITSTATUS): Provide fallback definition.
225 (m4_esyscmd): Set sysval to 0xffff, to accomodate both
226 big-endian and little-endian wait status definitions.
227 (m4_sysval): Use WEXITSTATUS.
228 Reported by Andreas Buening.
230 2006-06-18 Eric Blake <ebb9@byu.net>
232 * configure.ac (AC_INIT): Bump version number.
233 * NEWS: Describe changes in 1.4.4c.
235 2006-06-17 Eric Blake <ebb9@byu.net>
239 * configure.ac (AC_INIT): Bump version number.
240 * NEWS: Describe changes since 1.4.4.
241 * Makefile.maint (cvs-news): Accomodate copyright line wrapping.
243 * Makefile.am (MAINTAINERCLEANFILES): Clean files added by
245 * checks/Makefile.in (maintainer-clean): Add missing target.
246 * COPYING: Remove generated file from CVS.
248 2006-06-16 Eric Blake <ebb9@byu.net>
250 * checks/Makefile.in (DISTFILES): Distribute wrapfifo.m4.
252 2006-06-15 Eric Blake <ebb9@byu.net>
254 * checks/wrapfifo.m4: New file. Use it...
255 * doc/m4.texinfo (Incompatibilities): here, in a new test case to
256 demonstrate how to get POSIX behavior of m4wrap prior to m4 2.0.
258 * src/m4.h (to_uchar): New function.
259 * src/eval.c (eval_lex): Use it to avoid passing signed char to
260 isdigit, isalpha, isupper, islower, isspace, isalnum.
261 * src/builtin.c (expand_user_macro): Likewise.
262 * src/format.c (format): Likewise.
263 * src/macro.c (expand_argument): Likewise.
264 * NEWS: Document this security fix.
267 * src/symtab.c (lookup_symbol): Use invalid, not illegal.
268 * src/freeze.c (reload_frozen_state): Fix typo in message.
269 (produce_frozen_state): Standardize on builtin, not built-in.
270 * src/builtin.c (numeric_arg, bad_argc): Likewise.
272 * configure.ac (M4_EARLY, M4_INIT): Use gnulib.
273 (AC_PROG_RANLIB, AC_AIX, AC_MINIX, AC_CHECK_HEADERS),
274 (AC_FUNC_ALLOCA, AC_REPLACE_FUNCS): Avoid checks now done by
276 * Makefile.am (ACLOCAL_AMFLAGS): New entry, for gnulib.
277 * m4/gnulib-cache.m4: New file, from gnulib.
278 * bootstrap: Invoke gnulib-tool --update.
279 * src/m4.c (main): Cast away const.
280 * NEWS: Document that regex is updated.
283 2006-06-08 Eric Blake <ebb9@byu.net>
285 * configure.ac (changeword): Work even when changeword is not a
287 (AC_PROG_AWK, AC_PROG_INSTALL, AC_PROG_MAKE_SET, AC_HEADER_STDC):
288 Delete; now done by automake.
289 (AC_ISC_POSIX, AC_C_CONST): Delete; now obsolete.
291 2006-06-07 Eric Blake <ebb9@byu.net>
293 * lib/regex.c (bcmp_translate): Canonicalize type name.
294 * doc/Makefile.am (MAINTAINERCLEANFILES): Fix typo.
295 * configure.ac (changeword): Disable changeword for the creation
296 of configure, in case of bootstrapping with an m4 configured with
299 Distribute a rudimentary man page.
300 * Makefile.am (SUBDIRS): Move doc after src so that 'm4 --help'
302 * doc/Makefile.am (man_MANS, EXTRA_DIST, MAINTAINERDISTCLEAN),
303 (SUFFIXES, m4.1): New macros and rules to build m4.1.
305 2006-06-06 Eric Blake <ebb9@byu.net>
307 * lib/regex.c (re_match_2_internal, bcmp_translate): Avoid
308 compiler warnings at -O2.
309 * lib/getopt.c (_getopt_internal): Likewise.
311 Cleanup of previous patches.
312 * src/input.c (struct input_block): Remove traced member.
313 (push_macro, init_macro_token): Don't pass trace status around.
314 * src/m4.h (struct token_data): Remove traced member.
315 (struct symbol, struct builtin): Reduce unused space.
316 (TOKEN_DATA_FUNC): Simplify.
317 (TOKEN_DATA_FUNC_TRACED): Remove unused macro.
318 (push_macro, define_builtin): Remove unused parameter.
319 * src/builtin.c (define_builtin, builtin_init, define_macro),
320 (m4_defn): Don't pass trace status around.
321 * src/macro.c (expand_argument): Likewise.
322 * src/freeze.c (reload_frozen_state): Likewise.
323 * src/symtab.c: Whitespace cleanup.
324 * NEWS: Clean up wording.
325 * doc/m4.texinfo (Undefine, Dumpdef, Trace): Cleanup wording;
326 ensure tests actually expose bugs prior to today's patches.
328 Trace status of builtins is no longer inherited across
329 define(...,defn(...)). Fixes bug that autom4te had been working
331 * src/builtin.c (define_builtin): Don't override trace status.
332 * doc/m4.texinfo (Trace): Add test for this.
333 * NEWS: Document this.
335 When changing macro definitions inside the arguments to the macro,
336 consistently preserve the old definition that was in effect before
337 argument collection, similar to the C pre-processor.
338 Reported by John Brzustowski.
339 * NEWS: Document this change.
340 * doc/m4.texinfo (Macro Arguments, Undefine, Dumpdef): Document
341 this policy, and add tests that expose core dumps prior to this
343 * src/m4.h (struct symbol): New members to track when a symbol is
344 still in use after removal from the symbol table.
345 (SYMBOL_PENDING_EXPANSIONS, SYMBOL_DELETED): Define.
346 (free_symbol): Prototype.
347 * src/macro.c (expand_macro): Track pending expansions of a
348 symbol. On completion, if a symbol is deleted and no longer
349 pending, free its memory.
350 * src/symtab.c (free_symbol): Export. Don't free memory if symbol
352 (lookup_symbol) <SYMBOL_INSERT>: Create new entry when old entry
354 (lookup_symbol) <SYMBOL_DELETE, SYMBOL_POPDEF>: Mark entries still
355 in use as deleted and remove from the table without freeing
357 (symtab_print_list) [DEBUG_SYM]: More debug output.
359 * src/symtab.c (hack_all_symbols): Allow certain modifications of
360 the symbol table during traversal.
361 * src/builtin.c (set_trace): Replace SYMBOL_DELETE with
362 SYMBOL_POPDEF, since only the latter is safe with
365 Solve crash when passing "indir(`foo')" to "m4 -tfoo".
366 * src/symtab.c (lookup_symbol) <SYMBOL_DELETE, SYMBOL_POPDEF>:
367 Preserve placeholder when macro is being traced.
368 * src/builtin.c (m4_ifdef, m4_indir): A traced but undefined
369 symbol is not defined.
370 (set_trace): Remove placeholder when no longer traced.
371 (m4_traceon): On named traces, always reserve a slot in the
373 (m4_traceoff): Don't warn about untracing a nonexistent symbol.
374 * NEWS: Document new trace behavior.
375 * doc/m4.texinfo (Trace): Tracing by name now consistently works
376 no matter whether that macro is currently defined.
377 (Incompatibilities): Document differences between traditional and
380 2006-06-04 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
381 Eric Blake <ebb9@byu.net>
383 * src/m4.h (hash_table_size): Now size_t instead of int.
384 * src/m4.c (hash_table_size): Likewise.
385 (main): Adjust to this; use atol rather than atoi.
386 * src/symtab.c: Include <limits.h>, for CHAR_BIT.
387 (symtab_init, lookup_symbol, hack_all_symbols):
388 Use size_t for sizes and indexes, not int.
389 (symtab_print_list) [DEBUG_SYM]: Likewise.
390 (hash): Likewise. Don't case-fold in the hash function.
391 Shift by 7, not 3, for consistency with gnulib/lib/hash.c.
392 Don't assume hash word is 32 bits.
393 NEWS: Document this change.
395 2006-06-04 Eric Blake <ebb9@byu.net>
397 * src/symtab.c (symtab_debug, symtab_print_list) [DEBUG_SYM]: Fix
398 to allow compilation, for use in debugger.
399 (profiles, current_mode) [DEBUG_SYM]: New variables.
400 (show_profile, profile_strcmp) [DEBUG_SYM]: New methods for
401 determining hash table performance.
403 2006-05-31 Eric Blake <ebb9@byu.net>
404 John Brzustowski <jbrzusto@fastmail.fm>
406 * src/input.c (input_stack): Delete; use current_input instead.
407 (wrapup_stack): Dynamically allocate, so that recursion is handled
409 (push_wrapup): Use current wrapup stack.
410 (pop_wrapup): Rotate wrapup stack to current, and create new
412 (input_init): Dynamically allocate stacks.
413 * NEWS: Update, now that recursive m4wrap can no longer cause
416 2006-05-31 Eric Blake <ebb9@byu.net>
418 * lib/getopt.c: Fix copyright year.
419 * lib/obstack.c: Ditto.
420 * src/builtin.c: Ditto.
422 2006-05-30 Eric Blake <ebb9@byu.net>
424 * doc/m4.texinfo (M4wrap): Add test to expose m4wrap bug.
425 Reported by John Brzustowski.
426 (Incompatibilities): Document known POSIX incompatibilities.
429 2006-05-29 Eric Blake <ebb9@byu.net>
431 * doc/m4.texinfo (Maketemp): Work even when running 'make check'
435 * Makefile.am: New file.
436 * doc/Makefile.am: Ditto.
437 * examples/Makefile.am: Ditto.
438 * lib/Makefile.am: Ditto.
439 * src/Makefile.am: Ditto.
440 * acinclude.m4: New file, renamed from aclocal.m4.
441 * configure.ac (AM_INIT_AUTOMAKE): Invoke new macro.
442 (AC_ARG_PROGRAM): Now redundant.
443 (STACKOVF): Turn into automake conditional.
444 (AC_CONFIG_COMMANDS): stamp-h is a command, not a file.
445 * checks/Makefile.in: Converting this dir to automake was not
446 trivial; for now, just add missing targets demanded by top-level.
447 * INSTALL: Remove files that are now generated from CVS.
448 * Makefile.in: Ditto.
451 * mkinstalldirs: Ditto.
452 * doc/Makefile.in: Ditto.
453 * doc/texinfo.tex: Ditto.
454 * examples/Makefile.in: Ditto.
455 * lib/Makefile.in: Ditto.
456 * src/Makefile.in: Ditto.
458 * AUTHORS: Backport from CVS head, and update.
459 * doc/m4.texinfo (Changeword): Fix examples to match behavior.
461 2006-05-27 Eric Blake <ebb9@byu.net>
463 * lib/regex.c (regex_compile): Kill compiler warnings.
464 * lib/getopt.c: Likewise.
465 * lib/obstack.c: Likewise.
466 * src/builtin.c (builtin_init): Likewise.
467 * src/path.c (path_search): Likewise.
469 * doc/m4.texinfo: Fix usage of a vs. an.
470 (Loops, Include, Cleardiv, Patsubst, Format, M4exit): Kill
471 overfull hbox warnings.
472 (Inhibiting Invocation, Divert, Maketemp, M4exit): Add new tests.
474 * configure.ac: Update to autoconf 2.59. Forbid ^M4_. Fix
476 * aclocal.m4 (fp_PROG_CC_STDC): Delete; now covered by autoconf.
477 (fp_C_PROTOTYPES): Delete, GNU Coding Standards state we can now
479 (M4_WITH_DMALLOC): Rename from fp_WITH_DMALLOC. Fix quoting.
480 * src/m4.h (_): PROTOTYPES is no longer provided, assume C89.
481 * src/Makefile.in: Delete remains of ansi2knr.
482 * src/ansi2knr.1: Delete.
483 * src/ansi2knr.c: Delete.
485 2006-05-25 Eric Blake <ebb9@byu.net>
487 * doc/m4.texinfo: Fix spelling errors. Use `invalid' instead of
490 * doc/m4.texinfo (Francois): No longer needed as a tex variable.
491 Reported by Karl Berry.
493 2006-05-24 Eric Blake <ebb9@byu.net>
495 * Makefile.in (html): New target.
496 * doc/Makefile.in (html, m4.html): Likewise.
497 (MAKEINFOHTML): New macro.
498 * doc/m4.texinfo (Francois) [ifnottex]: Use newer texinfo
500 (Regexp) [ifhtml]: Make cross-reference to emacs manual an
502 Reported by Bob Badour.
504 * THANKS: Update. Move reporter's email addresses here, instead
507 2006-05-11 Eric Blake <ebb9@byu.net>
510 * doc/m4.texinfo (Changequote): Give testsuite exposure to bug
511 patched on 2005-12-04.
512 Reported by Ilya N. Golubev.
514 * bootstrap: New file, so that generated files need not be stored
516 * Makefile.in (DISTFILES): Add bootstrap.
518 Make testsuite less sensitive to doc changes.
519 * doc/m4.texinfo: Use m4.input instead of filename.
520 * checks/check-them (xerr): Turn m4.input into filename.
521 * checks/Makefile.in (dist): Depend on stamp-checks.
523 Portability updates for OS/2.
524 * src/Makefile.in (EXEEXT, OBJEXT): Define.
527 * lib/Makefile.in (OBJEXT): Define.
529 * doc/Makefile.in (install, uninstall): Install info files into
531 Reported by Andreas Buening.
533 2006-05-09 Eric Blake <ebb9@byu.net>
535 * install-sh: Update to newer upstream version.
536 * mkinstalldirs: Likewise.
537 Reported by Andreas Buening.
539 * src/m4.c (main): Bump copyright year.
540 * Makefile.in (datarootdir): Define, for autoconf 2.59c.
541 * doc/Makefile.in (datarootdir): Likewise.
543 2006-05-08 Eric Blake <ebb9@byu.net>
546 * doc/m4.texinfo (Bugs): Backport bug email address from head.
547 Reported by Stepan Kasal.
549 2005-12-04 Ilya N. Golubev <gin@mo.msk.ru> (tiny change)
551 * input.c (match_input): Do not pass expression with side effect
552 to `obstack_grow'. Fix <INTERNAL ERROR: Recursive push_string!>.
555 2005-12-04 Gary V. Vaughan <gary@gnu.org> (tiny change)
557 * doc/m4.texinfo (How to debug macros and input): s/woould/would/
558 Reported by Damian Menscher.
560 2005-10-19 Gary V. Vaughan <gary@gnu.org> (tiny change)
562 * configure.ac (AC_INIT): Bump to 1.4.4a.
564 2005-10-19 Gary V. Vaughan <gary@gnu.org> (tiny change)
568 * configure.ac (AC_INIT): Bump to 1.4.4.
569 * NEWS: Describe 1.4.4's changes.
570 * INSTALL, install-sh, doc/texinfo.tex: Updated from upstream.
572 2005-10-17 John Gatewood Ham <zappaman@buraphalinux.org> (tiny change)
574 * src/m4.c: fix return code when non-existent files are processed
576 2005-10-17 John Gatewood Ham <zappaman@buraphalinux.org> (tiny change)
578 * README: update email address for bug reports.
580 2005-10-17 Gary V. Vaughan <gary@gnu.org>
582 * doc/m4.info: Generated files are not kept in the repository.
584 2005-05-01 Gary V. Vaughan <gary@gnu.org>
586 The FSF are moving offices today. Changed their contact address
587 in all files from `59 Temple Place, Suite 330, MA 02111-1307' to
588 `51 Franklin Street, Fifth Floor, MA 02110-1301'.
590 Also, some of the files here were never updated from the previous
591 '675 Mass Ave, Cambridge, MA 02139', so changed those to the
592 '51 Franklin Street, Fifth Floor, MA 02110-1301' address too.
594 2005-03-31 Mike Frysinger <vapier@gentoo.org>
596 * Makefile.in (bindir, infodir): Substitute from configure rather
598 * doc/Makefile.in (infodir): Ditto.
599 * src/Makefile.in (bindir): Ditto.
602 2005-03-31 Gary V. Vaughan <gary@gnu.org>
604 Changes needed to automate the release process for 1.4.3:
606 * Makefile.in (dist): Make .tar.bz2 tarball too.
607 * Makefile.maint (TSDEPS_DIST): Remove m4/libtool.m4.
608 (cvs-news): Look 1 line further down for NEWS release number.
609 (cvs-dist): We don't use automake, so make dist is fine.
610 Remove double . before suffixes.
611 (cvs-release): Don't mention manual.html.
612 (fetch): Get latest gendocs files.
613 (web-manual): Rewritten to use gendoc for multiformat manuals.
614 * doc/gendocs.sh: Don't save an old version in m4 CVS!
615 * doc/m4.texinfo (Index): HFS+ (the file system on my Mac) is case
616 preserving, but case insensitive, so generating html docs per node
617 clashes between Index.html, the node file, and index.html, the
618 top-level of the document tree...
619 (Index macro): ...so renamed to this. Changed all references.
621 2005-03-31 Gary V. Vaughan <gary@gnu.org> (tiny change)
623 * configure.ac (AC_INIT): Bump to 1.4.3a.
625 2005-03-31 Gary V. Vaughan <gary@gnu.org> (tiny change)
629 * configure.in (AC_INIT): Bump to 1.4.3.
630 * NEWS: Describe 1.4.3's changes.
632 2005-03-31 Gary V. Vaughan <gary@gnu.org>
634 * Makefile.maint: New file with release rules, from CVS libtool.
635 * Makefile.in (DISTFILES): Add Makefile.maint.
636 * INSTALL, install-sh, doc/texinfo.tex: Updated to latest
639 2005-03-31 Eric Blake <ebb9@byu.net> (tiny change)
641 * doc/m4.texinfo (Patsubst): Re-add trailing space required by
642 checks/47.patsubst, with a redundant @comment to prevent emacs
643 from removing it accidentally again.
644 * checks/get-them: Allow for trailing spaces tucked behind
647 2005-03-31 Eric Blake <ebb9@byu.net> (tiny change)
649 * doc/Makefile.in (install, uninstall): Accomodate DESTDIR.
650 * src/Makefile.in (install, uninstall): Likewise.
652 2005-02-07 Gary V. Vaughan <gary@gnu.org>
654 * lib/regex.c, lib/regex.h: Reverted gnulib update, which broke
656 Reported by Eric Blake.
658 2005-02-04 Gary V. Vaughan <gary@gnu.org>
660 * lib/regex.c, lib/regex.h: Updated from gnulib.
661 * src/input.c (set_word_regexp): Don't change the word_regexp
662 unless it compiles correctly.
664 Reported by Frank Schwidom.
666 * Makefile.in (stamp-h): Regenerate config.h properly.
668 2005-02-03 Gary V. Vaughan <gary@gnu.org>
670 * configure.ac (AC_DEFINE): Fix overquoting of description
673 * src/m4.h (__CYGWIN__, WIN32): Canonicalise Windows and Cygwin
675 * src/freeze.c (produce_frozen_state): Use \n line-endings even
676 on Windows, so that the frozen file reader will work.
677 Reported by Josef T. Burger.
679 * src/m4.c (main): Modernise the --version output.
681 2005-02-03 Gary V. Vaughan <gary@gnu.org>
683 Modernise the configury a little to prevent spurious errors from
684 Autoconf-2.59's autoreconf:
686 * config.h.in: Renamed to...
687 * config-h.in: ...this to better support DOS 8.3 file systems.
688 * acconfig.h: Removed.
689 * configure.in: Renamed to...
690 * configure.ac: ...this, and AC_DEFINE used to declare config.h
691 entry comments. Slight reorganisation and reformatting.
692 * aclocal.m4: Use third argument to AC_DEFINE to declare config.h
694 (AC_INIT): Use a modern 3 argument call.
695 * Makefile.in, checks/Makefile.in, doc/Makefile.in,
696 examples/Makefile.in, lib/Makefile.in, src/Makefile.in:
698 * Makefile.in (DISTFILES): Removed acconfig.h, configure.in,
699 config.h.in. Added configure.ac, config-h.in.
700 (stamp-h.in): Removed acconfig.h from dependencies.
701 (configure): Depends on configure.ac, not configure.in.
702 * doc/Makefile.in (stamp-vti): Ditto.
703 * src/freeze.c (produce_frozen_state), src/m4.c (main): Adjust for
704 difference between PRODUCT="m4" and PACKAGE="GNU M4".
705 * configure: Regenerated.
707 2005-02-03 Noah Misch <noah@cs.caltech.edu>
709 * src/output.c (mkstemp): Make non-static, and build regardless of
710 HAVE_TMPFILE; src/builtin.c also needs this replacement.
713 2004-09-09 Vincent Lonngren <Vincent.lonngren.759@student.lu.se>
715 * configure.in (AC_CHECK_HEADERS): Commit works best when you save
716 changes from your editor buffer first.
718 * configure.in (AC_CHECK_HEADERS): Add signal.h, sys/signal.h.
719 * src/m4.c: And include them as appropriate.
722 2004-09-09 Andreas Schwab <schwab@suse.de>
724 Refactoring of the string read case in next_char provides about a
725 20% speedup of M4 as typically used by autoconf:
727 * src/input.c (next_char_1): Renamed from next_char.
728 (next_char): New macro.
731 2004-08-21 Gary V. Vaughan <gary@gnu.org>
733 * configure.in (VERSION): Bump to 1.4.2a.
735 2004-08-19 Paul Eggert <eggert@twinsun.com>
739 * configure.in (VERSION): Bump to 1.4.2.
740 * News: Describe 1.4.2's changes.
742 * src/m4.c (reference_error): Preserve errno, since M4ERROR
744 * src/builtin.c (m4_esyscmd): Clear errno before calling popen.
745 (m4_maketemp): Clear errno before calling mkstemp.
746 * src/path.c (path_search): Don't let "free" trash errno when
748 * src/output.c (insert_file): Don't assume errno has a valid
749 value simply because fread returns zero. This fixes a
750 portability bug reported by Marion Hakanson in
751 <http://lists.gnu.org/archive/html/bug-m4/2004-07/msg00029.html>.
753 2004-06-09 Gary V. Vaughan <gary@gnu.org>
755 * configure.in (VERSION): Bump to 1.4.1a.
756 * NEWS: Place holder for next stable release.
758 2004-06-03 Paul Eggert <eggert@cs.ucla.edu>
762 * configure.in (VERSION): Bump to 1.4.1.
763 * NEWS: Describe 1.4.1's changes.
765 * aclocal.m4 (fp_PROG_CC_STDC): Use AC_DEFUN, not define, to
766 pacify Autoconf 2.59.
768 * doc/m4.texinfo: Insert commas after @xref's that lack them,
769 to pacify Texinfo 4.7.
770 * doc/Makefile.in (info): Remove info-1, info-2, info-3.
772 * src/m4.h, src/debug.c: Use #ifdef __STDC__, not #if __STDC__, to
773 pacify Sun C compilers.
775 2003-09-28 Akim Demaille <akim@epita.fr>
777 * src/symtab.c (lookup_symbol): Fix an uninitialized-variable
780 2003-09-03 Santiago Vila <sanvila@debian.org>
782 * examples/stackovf.sh: Use tempfile if available.
784 2001-04-02 Robert Bihlmeyer <robbe@orcus.priv.at>
786 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92629
787 * src/output.c (m4_insert_file): Do not mix buffered and
788 unbuffered I/O, as this breaks on the Hurd. (trivial change)
790 2001-02-01 Santiago Vila <sanvila@debian.org>
792 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84451
793 * src/m4.c (main): Fix format vulnerabilities. (trivial change)
795 2001-02-01 Matt Kraai <kraai@debian.org>
797 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84416
798 * doc/m4.texinfo (Maketemp): Change maketemp to refer to a new,
799 empty file rather than to a nonexistent file. This closes a common
801 * src/builtin.c (m4_maketemp): Implement the above, by using
802 mkstemp rather than mktemp. (trivial change)
804 2000-01-09 Akim Demaille <demaille@inf.enst.fr>
806 * src/builtin.c (expand_ranges): Added break after trailing dash.
807 This caused misbehaviors on some systems.
809 Sat Nov 5 15:52:47 1994 Francois Pinard (pinard@icule)
813 * doc/Makefile.in (realclean): Also remove stamp-vti.
814 Reported by Eric Backus.
816 Wed Nov 2 00:47:53 1994 Francois Pinard (pinard@icule)
818 * src/freeze.c (produce_frozen_state): If the frozen file cannot
819 be opened, return immediately after producing the error message.
820 Reported by Andreas Schwab.
822 * configure.in: Check for const only after having found possible
823 ANSIfying compiler flags, this is of no use to check it before.
824 Reported by Alexander Lehmann.
826 Tue Nov 1 22:02:37 1994 Francois Pinard (pinard@icule)
828 * src/macro.c (collect_arguments): Cast obstack arguments to
829 (voidstar), so avoiding compiler warnings.
830 Reported by Joseph E. Sacco.
832 * src/freeze.c (produce_frozen_state): Cast printed lengths to
833 (int) so they correspond to %d format items.
834 Reported by Joseph E. Sacco.
836 * src/m4.c (main): Cast the argument to xfree to (voidstar).
837 * src/symtab.c (free_symbol): Idem.
838 Reported by Karl Vogel.
840 Mon Oct 31 02:11:19 1994 Francois Pinard (pinard@icule)
842 * Makefile.in (DISTFILES): Distribute BACKLOG.
844 * configure.in: Define PRODUCT and VERSION.
845 * acconfig.h: Document PRODUCT and VERSION.
846 * src/m4.c, src/freeze.c: Use PRODUCT and VERSION instead of the
847 constant string m4 and variable or parameter named version.
849 Sun Oct 30 08:13:03 1994 Francois Pinard (pinard@icule)
851 * src/m4.h, src/debug.c: Replace all #ifdef __STDC__ by #if
852 __STDC__. Alliant FX/2800 Concentrix 2.2 (i860-BSD4.3) compiler
853 defines __STDC__ to 0, for indicating it is *not* ANSI!
854 Reported by Kaveh R. Ghazi.
856 * configure.in: Added obsolescent tests for AIX and Minix.
858 * doc/Makefile.in (mostlyclean): Remove texclean in dependencies,
859 which texclean does not exist anymore.
860 Reported by Eric Backus, Jim Meyering, John David Anglin and
863 Sat Oct 29 05:10:03 1994 Francois Pinard (pinard@icule)
865 * aclocal.m4 (fp_C_PROTOTYPES): Force -D_HPUX_SOURCE with -Aa.
866 Reported by John David Anglin.
868 * src/ansi2knr.c: New version, sent by Peter Deutsch.
869 * aclocal.m4 (fp_C_PROTOTYPES): Substitute empty or ansi2knr for
870 ANSI2KNR, depending on the fact the compiler is ANSI or not.
871 * src/Makefile.in: Use -Ovarargs=convert on ansi2knr calls.
872 Remove the sed filter after ansi2knr for debug.c. Use $O instead
873 of $U, put underline in extensions rather than in basenames. Use
874 implicit rules, now that regularity makes this possible.
875 Have $(OBJECTS) depend on $(ANSI2KNR), so to trigger compilation
876 of ansi2knr whenever it is needed.
877 * configure.in: Adjusted for correct STACKOVF substitution.
878 * src/debug.c (trace_format): When not __STDC__, use (...) as a
879 parameter list, so ansi2knr will convert it to (va_alist) va_dcl.
880 Reported by David MacKenzie.
882 * Makefile.in: Remove binprefix. Use transform_name instead.
883 Reported by David MacKenzie.
885 * doc/Makefile.in: Create version.texi, use it, clean it.
886 Reported by Jim Meyering.
888 Fri Oct 28 20:33:55 1994 Francois Pinard (pinard@icule)
890 * Makefile.in (all, install, uninstall): Depend on Makefile.
892 * Makefile.in: For actions invoking $(MAKE) from within compound
893 sh statements, exit non-zero if the sub-make fails. Otherwise,
894 the top-level make may exit successfully when it should fail.
895 Reported by Jim Kingdon.
897 * {,/*}Makefile.in: Use && after all cd, in case they fail.
899 * {,*/}Makefile.in: Declare PRODUCT and VERSION macros.
900 (dist): Use PRODUCT and VERSION instead of tricks on .fname.
901 * configure.in: Substitute PRODUCT and VERSION.
903 * {,*/}Makefile.in (dist): Always try a hard link before a copy.
905 Thu Oct 27 22:32:58 1994 Francois Pinard (pinard@icule)
907 * Makefile.in (mostlyclean-local): Do not remove *~.
908 * */Makefile.in (mostlyclean): Idem.
909 Reported by Robert E. Brown and Richard Stallman.
911 Sun Oct 9 08:30:13 1994 Francois Pinard (pinard@icule)
913 * src/m4.h: Get rid of CONFIG_BROKETS.
915 Sun Oct 2 16:48:10 1994 Francois Pinard (pinard@icule)
917 * configure.in: Use AC_ARG_PROGRAM.
918 * aclocal.m4 (fp_C_PROTOTYPES): Substitute @kr@ by kr or empty.
919 Reported by David MacKenzie.
921 Sat Oct 1 11:22:42 1994 Francois Pinard (pinard@icule)
923 * configure.in: Do not add -O to CFLAGS for GNU C, now that
924 configure does it automatically.
925 Reported by Jim Meyering.
927 Fri Sep 23 08:16:58 1994 Francois Pinard (pinard@icule)
929 * src/stackovf.c: Declare the handler_t typedef earlier in the
930 code, use it for stackovf_handler.
931 (setup_stackovf_trap): Use RETSIGTYPE instead of void while
932 casting sigsegv_handler.
933 Reported by Robert Bernstein.
935 * src/m4.c (main): Initialize program_name to argv[0] without
937 Reported by Karl Berry.
939 Sun Sep 18 11:42:50 1994 Francois Pinard (pinard@icule)
941 * src/Makefile.in (TAGS): Include a ../lib/TAGS reference.
942 Reported by Karl Berry.
944 Wed Sep 14 10:00:22 1994 Francois Pinard (pinard@icule)
946 * lib/Makefile.in (mostlyclean): Added.
947 (TAGS): Make in $(srcdir).
949 * configure.in: Use `choke me' in test, like everywhere!
951 * {doc,examples,lib,src}/Makefile.in (check): Deleted, as
952 unreacheable and useless.
954 * doc/Makefile.in (texclean): Deleted, merged in mostlyclean.
956 * lib/Makefile.in (DISTFILES): Distribute TAGS.
957 (distclean): Do not remove TAGS.
958 (realclean): Remove it.
959 * Makefile.in: Make TAGS in lib also, not just in src.
960 Reported by Karl Berry.
962 * Makefile.in (distclean, realclean): Instead of recursively
963 calling $(MAKE) for the -local part, allow parallel execution of
964 -recursive and -local, only delay the removal of config.status,
965 which is repeated in both goals.
967 Tue Sep 13 19:21:05 1994 Francois Pinard (pinard@icule)
971 * Makefile.in: Group all *clean-recursive goals in one, using sed
972 to remove `-recursive' while calling make recursively. Also, use
973 a subshell for each recursive $(MAKE).
974 Reported by Jim Meyering.
976 * src/m4.h (memcpy): Define with bcopy for BSD systems.
977 Reported by Kaveh R. Ghazi.
979 * src/Makefile.in (ansi2knr): Use $(LIBS) while linking, for SunOS
980 4.1.3 requires -ldl to link even ansik2nr, and we need a way to
983 * configure.in: Use date instead of touch for stamp-h.
984 * Makefile.in (stamp-h.in): Idem.
986 * Makefile.in (distclean, realclean): Force serial execution of
987 both goals, in case parallel makes are being used.
988 Reported by Jim Meyering.
990 * src/Makefile.in (DISTFILES): Distribute TAGS.
991 (distclean): Do not remove TAGS.
992 (realclean): Remove it.
993 Reported by Karl Berry.
995 Sat Sep 10 12:34:04 1994 Francois Pinard (pinard@icule)
997 * configure.in: Use fp_ to match aclocal.m4. Revert _OS_ macros
998 to old names, for following Autoconf.
1000 Thu Sep 8 15:07:27 1994 Francois Pinard (pinard@icule)
1002 * Makefile.in (MDEFINES): Remove INSTALL substitutions, for
1003 ./install.sh will not be correctly referred to in sub-Makefiles.
1004 Reported by John David Anglin.
1006 * doc/Makefile.in (texclean): Remove *.cps and *.fns too.
1007 Reported by Eric Backus.
1009 * Makefile.in, checks/Makefile.in, doc/Makefile.in,
1010 examples/Makefile.in, lib/Makefile.in, src/Makefile.in: Limit
1011 config.status into remaking this directory's Makefile only.
1012 * Makefile.in (stamp-h): Do not check nor touch stamp-h.
1013 * configure.in (AC_OUTPUT): Touch stamp-h if CONFIG_HEADERS.
1014 Reported by Jim Meyering.
1016 Tue Sep 6 12:07:33 1994 Francois Pinard (pinard@icule)
1018 * configure.in: Correct stack overflow detection logic, taking
1019 care of systems having only incomplete implementations (like for
1020 Pyramid 9820 OSx 5.0d).
1021 Reported by Kaveh R. Ghazi.
1023 * src/Makefile.in (TAGS): Remote -t from etags call.
1025 Fri Sep 2 10:37:10 1994 Francois Pinard (pinard@icule)
1027 * lib/Makefile.in (install): Depend on all.
1029 Wed Aug 31 11:17:21 1994 Francois Pinard (pinard@icule)
1031 * examples/Makefile.in (mostlyclean): Do not depend on texclean.
1032 Reported by Jim Meyering and John David Anglin.
1034 * Makefile.in (distclean-local): Delete config.log.
1035 Reported by Jim Meyering.
1037 Solidify frozen files with respect to -P:
1038 * src/m4.c: Have -P set prefix_all_buitins variable instead of
1039 calling a function by that name. Declare the variable.
1040 * src/m4.h: Adjust declaration for prefix_all_buitins.
1041 * src/builtin.c (builtin_init): Merge in functionality from
1042 previous prefix_all_buitins function, while making entries in the
1043 symbol table, but not modifying the builtin description itself.
1045 * src/freeze.c (reload_frozen_state): Add a useless `break;',
1046 because *many* compilers do not accept an empty `default:'.
1047 Reported by Akiko Matsushita, Eric Backus, John David Anglin,
1048 Joseph E. Sacco, Kaveh R. Ghazi, Tom McConnell and Ulrich Drepper.
1050 * configure.in: Use AC_TYPE_SIGNAL.
1051 * src/stackovf.c (setup_stackovf_trap): Use RETSIGTYPE.
1052 Reported by Robert Bernstein.
1054 * checks/Makefile.in (check): Modify PATH so check-them will find
1055 m4 in the src directory.
1056 * Makefile.in (check): Don't.
1057 Reported by Akiko Matsushita and Jim Meyering.
1059 * src/output.c (make_room_for, output_character_helper): New
1060 functions, for implementing a global MAXIMUM_TOTAL_SIZE instead of
1061 a per buffer MAXIMUM_BUFFER_SIZE.
1063 * src/output.c (output_text): New function, for optimizing the
1064 output of strings of characters. Use it.
1066 Tue Aug 30 01:44:29 1994 Francois Pinard (pinard@icule)
1068 * doc, src: New directories reorganizing the distribution.
1069 * doc/Makefile.in, src/Makefile.in, examples/Makefile.in: New
1071 * Makefile.in: Adjusted.
1072 * configure.in: Configure new Makefiles.
1074 * m4.h: Declare STRING typedef. Use it for comment and quote
1075 strings, adjusting all references. (This is the rudiments of a
1076 beginning for the eventual withdrawal of NUL terminated strings.)
1077 * output.c (shipout_text): Accept a length parameter, and use it.
1078 All callers adjusted.
1080 Mon Aug 29 12:27:19 1994 Francois Pinard (pinard@icule)
1082 * m4.h: Include <unistd.h> if it exists.
1083 * stackovf.c: Don't.
1085 Clean up for current_diversion variable:
1086 * output.c: Move current_diversion from builtin.c.
1087 * m4.h: Declare current_diversion so builtin.c can access it.
1088 * output.c (output_init, make_diversion): Initialize or update
1090 * builtin.c (builtin_init, m4_divert): Leave current_diversion
1093 Remove limit on number of diversions:
1094 * output.c: Replace ndiversion by diversions, declare it.
1095 (output_init): Allocate only diversion 0.
1096 (make_diversion): Allocate new diversions as needed.
1097 * m4.h, m4.c: Remove NDIVERSIONS and ndiversion related stuff.
1098 * m4.c: Still accept -N, but do nothing with it.
1099 Reported by David MacKenzie.
1102 * output.c (freeze_diversions): New function.
1103 * m4.h: Declare freeze_diversions.
1104 * freeze.c: Document frozen file format, revise it, call
1105 freeze_diversions to add diversions to frozen format, and code to
1106 reload them properly.
1107 * m4.c: Do not undivert automatically at end when status being
1108 frozen. Do not call builtin_init when reloading frozen state.
1110 Speed up diversion processing:
1111 * output.c: Add INITIAL_BUFFER_SIZE, MAXIMUM_BUFFER_SIZE,
1112 COPY_BUFFER_SIZE, in-memory diversion buffers, struct diversion
1113 structure and variables, cached variables out of output_diversion,
1114 reallocate_diversion_for and OUTPUT_CHARACTER.
1115 (shipout_text, make_diversion, insert_diversion): Adapted to new
1117 (insert_file): Use better buffering.
1118 Reported by David MacKenzie.
1120 Sun Aug 28 05:20:02 1994 Francois Pinard (pinard@icule)
1122 * Makefile.in, lib/Makefile.in, checks/Makefile.in: Arrange so
1123 dist works from another build directory.
1125 Sat Aug 27 14:32:45 1994 Francois Pinard (pinard@icule)
1127 * symtab.c (hack_all_symbols): Use hash_table_size instead of
1128 constant HASHMAX, for -H option to work better.
1130 * builtin.c (DECLARE): Simplify by using _ ().
1132 * freeze.c: New file.
1133 * Makefile.in: Compile it, distribute it.
1134 * m4.c: Recognize, document and process --freeze-state (-F) and
1135 --reload-state (-R) options. Pass a true flag to builtin_init
1136 only if no reloading some state.
1137 * builtin.c (define_builtin): Remove static specifier.
1138 (find_builtin_by_name): Remove static specifier.
1139 (builtin_init): Accept and obey a flag argument.
1140 * m4.h: Add declarations for freeze.c, changes for builtin.c.
1142 Wed Aug 24 16:14:19 1994 Francois Pinard (pinard@icule)
1144 * builtin.c (dumpdef_cmp): Rewrite so the cast protect the const
1147 * configure.in: Implement --with-dmalloc.
1148 * acconfig.h: Document WITH_DMALLOC.
1149 * m4.h: Add code for when WITH_DMALLOC.
1151 Mon Aug 15 12:38:05 1994 Francois Pinard (pinard@icule)
1153 * m4.c (long_options): Use "error-output", the dash was missing.
1154 Reported by Akiko Matsushita.
1156 Fri Aug 12 16:38:01 1994 Francois Pinard (pinard@icule)
1158 * m4.h: Include <sys/types.h>.
1159 * builtin.c, debug.c, m4.c, output.c, stackovf.c: Don't.
1160 * m4.h: Declare len_lquote and len_rquote as size_t, not int.
1162 * input.c: Declare len_lquote, len_rquote, len_bcomm and len_ecomm
1164 * builtin.c (dump_args): Declare len as size_t, not int.
1166 * debug.c: Prototype the forward declaration of debug_set_file.
1168 * builtin.c (m4_undivert): Replace div by file, for avoiding the
1169 shadowing of this variable.
1170 * output.c (insert_diversion): Idem.
1172 * input.c: Delete def_rquote, def_lquote, def_bcomm and def_ecomm.
1173 (input_init): Duplicate default quote and comment strings.
1174 (set_quotes): Free previous quote strings in all cases. Duplicate
1175 even default quote strings.
1176 (set_comment): Free previous comment strings in all cases.
1177 Duplicate even default comment strings.
1179 * configure.in: Updated for Autoconf 2.0.
1180 * Makefile.in (distclean-local): Also delete config.cache.
1182 * m4.c (usage): Reorganize the --help output by topic. Include a
1183 description for debugging flags.
1185 Fri Jul 29 10:15:52 1994 Francois Pinard (pinard@icule)
1187 * configure.in: If sigaction is available and SA_ONSTACK defined,
1188 use sigaction. Otherwise, if sigvec is available and SV_ONSTACK
1189 defined, use sigvec. Else don't compile stackovf.c.
1190 * stackovf.c (setup_stackovf_trap): Idem.
1191 Reported by Jim Avera, Karl Berry, Kaveh R. Ghazi, Matthias Rabe
1194 Thu Jul 21 22:43:17 1994 Francois Pinard (pinard@icule)
1196 * m4.c (usage): Replace printf par fputs.
1198 Mon Jul 18 23:48:23 1994 Francois Pinard (pinard@icule)
1202 Sun Jul 17 08:08:25 1994 Francois Pinard (pinard@icule)
1204 * configure.in: Check for sigaction and sigvec. Add a new delayed
1205 check for RLIMIT_STACK, combine in the checking for getrlimit.
1206 All those things are not universally available.
1207 * stackovf.c: Split setting up the trap handler and catching
1208 signals, for better taking care of various configure outcomes.
1209 * examples/stackovf.sh: Correct a typo.
1210 Reported by Eric Backus, Jim Avera and Jim Meyering.
1212 Sat Jul 16 20:36:19 1994 Francois Pinard (pinard@icule)
1214 * ansi2knr.c: New version sent by its author, Peter Deutsch.
1216 Fri Jul 15 14:36:21 1994 Francois Pinard (pinard@icule)
1218 * Makefile.in: Modify so parallel make will not try making
1219 lib/libm4.a twice simultaneously.
1220 Reported by Jim Meyering.
1222 Thu Jul 14 17:23:17 1994 Francois Pinard (pinard@icule)
1224 * stackovf.c (setup_stackovf_trap): Replace "Don't" by "Do not" in
1225 error message, for when no code possibility exists. Even if this
1226 line is completely #ifdef'ed out, it brings a syntax error.
1227 Reported by Andreas Schwab, Jim Meyering and Joseph E. Sacco.
1229 * Makefile.in (install): Have install depend on all too, for lib
1230 to be remade as needed.
1232 * examples/stackovf.sh: Try ksh, bsh and bash for shells
1233 providing ulimit, instead of using only ksh.
1234 Reported by Jim Avera and Joseph E. Sacco.
1236 Tue Jul 12 06:54:31 1994 Francois Pinard (pinard@icule)
1238 * Makefile.in (check): Have it depend on all instead of m4. In
1239 this way, a change in lib will be detected and processed.
1241 * builtin.c (numeric_arg): Use strtol and verify the conversion,
1242 instead of using sscanf which stops as soon as there is a
1243 non-digit in the input. Previously, incr(1xyzzy), eval(1,2xyzzy)
1244 and divert(1xyzzy) were all accepted without any warning or error
1246 * m4.h: Declare strtol as long if not including stdlib.h.
1247 * configure.in: Check for limits.h, and replace strtol if missing.
1248 * lib/Makefile.in: Substitute LIBOBJS. Distribute strtol.c.
1249 * lib/strtol.c: New file, from elsewhere.
1250 Reported by Andreas Schwab.
1252 Thu Jul 7 22:38:10 1994 Francois Pinard (pinard@icule)
1254 * macro.c (expand_macro): Cast value to (boolean) prior to
1255 assigning it to traced.
1256 Reported by Tom McConnell.
1258 * Makefile.in (m4): Always make all in lib first.
1259 Reported by Jim Meyering.
1261 Wed Jul 6 13:16:31 1994 Jim Avera (jima@netcom.com)
1263 * stackovf.c: Isolated OS-dependent sections; Improved portability,
1264 adding support for SunOS/BSD (sigvec, sigstack, and 4-parameter signal
1265 handlers), and a default error message if the fault address is not
1266 available (when neither siginfo.h nor BSD sigcontext are supported).
1267 * configure.in: Changes for stackovf.h: Check for sigcontext,
1268 sigaction, sigstack, and define rlim_t as int if necessary.
1269 * acconfig.h: Added HAVE_SIGCONTEXT and rlim_t.
1270 * examples/stackovf.sh: Run m4 -L99999999 to allow stack overflow.
1271 * ansi2knr.c: Fix for func-ptr args; convert "..." to varargs syntax.
1273 Tue Jul 5 19:13:54 1994 Francois Pinard (pinard@icule)
1275 * configure.in: Use AC_SET_MAKE.
1276 * Makefile.in: Use @SET_MAKE@.
1277 Reported by Jim Meyering.
1279 * checks/check-them: Do not trap on SIGQUIT or SIGALRM.
1280 Reported by Ian Taylor.
1282 Sat Jul 2 00:58:47 1994 Francois Pinard (pinard@icule)
1284 * configure.in: Remove dependency of USE_STACKOVF on STDC_HEADERS,
1285 because siginfo.h is unrelated to standard headers, and siginfo.h
1286 is already checked for.
1287 Reported by Joseph E. Sacco.
1289 * acconfig.h, aclocal.m4, m4.h: Replace HAVE_PROTOTYPES by
1291 * aclocal.m4, configure.in: Replace AC_HAVE_PROTOTYPES by
1294 Wed Jun 29 22:41:53 1994 Francois Pinard (pinard@icule)
1296 * builtin.c (substitute): Use \& to represent this part of the
1297 string which was matched by the whole regexp, instead of
1298 representing the whole string. Any usage of \0 issues a warning
1299 and acts like \&, it will disappear in some subsequent release.
1301 Mon Jun 27 14:24:23 1994 Francois Pinard (pinard@icule)
1303 * m4.c: Complete prototype for forwarded declaration of usage.
1305 * input.c (init_macro_token): Correct own reference in error
1306 message. Previous name get_macro_func was referred to instead.
1307 (next_char): Correct own reference in error message. Previous
1308 name advance_input was referred to instead.
1310 * m4.h: Declare eval_t and unsigned_eval_t typedefs to 32 bits.
1311 * eval.c (logical_or_term, logical_and_term, or_term, xor_term,
1312 and_term, not_term, logical_not_term, cmp_term, shift_term,
1313 add_term, mult_term, exp_term, unary_term, simple_term): Add
1314 prototype to forwarded declarations. Declare parameter v1 as
1315 eval_t * instead of int *. Same for local variable v2 in dyadic
1316 functions. Same for result in exp_term.
1317 * builtin.c (m4_eval): Declare value as eval_t instead of int.
1318 (ntoa): Declare value as eval_t instead of int. Declare uvalue as
1319 unsigned_eval_t instead of unsigned int. Change casts accordingly.
1320 (shipout_int): Cast first argument of ntoa to eval_t.
1321 Reported by Thorsten Ohl.
1323 * macro.c: Complete the prototypes of forwarded expand_macro and
1325 Reported by Thorsten Ohl.
1327 * m4.h: Define voidstar as void * or char * depending on __STDC__.
1328 The Ultrix 3.1 compiler cannot do much with void pointers.
1330 * builtin.c (dumpdef_cmp): Replace void * by voidstar.
1331 * m4.c (xfree): Replace void * by voidstar.
1332 Reported by Tom McConnell.
1334 * ansi2knr.1: New, from elsewhere.
1335 * Makefile.in (DISTFILES): Distribute ansi2knr.1
1337 * Makefile.in (stamp-h.in): Avoid running ./config.status if
1338 stamp-h does not exist yet. This avoids running it a second time
1339 just after the initial ./configure.
1340 Reported by David MacKenzie and Tom McConnell.
1342 * m4.h: Replace the enum debug_info declaration with a series of
1343 #define's. The Ultrix 3.1 compiler would otherwise need casting
1344 (int) to most references, when used in expressions.
1345 Reported by Tom McConnell.
1347 Sat Jun 25 00:10:05 1994 Francois Pinard (pinard@icule)
1349 * aclocal.m4: Replace FP_PROTOTYPES by AC_HAVE_PROTOTYPES,
1350 following an idea from Brook G. Milligan. AC_HAVE_PROTOTYPES
1351 calls the compiler. Previously, FP_PROTOTYPES was only calling
1352 the preprocessor; by not being subject to CFLAGS, this was
1353 discouraging those flags asking for ANSI compilation.
1354 * acconfig.h: Document HAVE_PROTOTYPES.
1355 * configure.in: Use AC_HAVE_PROTOTYPES instead of FP_PROTOTYPES.
1356 * m4.h: Define _() according to HAVE_PROTOTYPES, not __STDC__.
1357 Reported by Eric Backus.
1359 * configure.in: Substitute CFLAGS and LDFLAGS, taking their value
1360 from the environment. Default CFLAGS to -g if not set.
1361 * Makefile.in: Have CFLAGS and LDFLAGS substituted from configure.
1362 * lib/Makefile.in: Have CFLAGS substituted from configure.
1363 Reported by Eric Backus and Tom McConnell.
1365 * configure.in: m4_undefine changeword before using AC_ENABLE.
1367 * m4.h: Declare prototypes for error (for ANSI compilers only),
1368 prefix_all_builtins and reference_error.
1369 Reported by Tom McConnell.
1371 * input.c (set_word_regexp): Do not try to initialize the array
1372 test from a string, this does not work with non-ANSI compilers.
1373 Reported by Eric Backus.
1375 * Makefile.in (dist): Clean examples/ before saving it.
1376 (distclean-local): Also remove stamp-h.
1377 Reported by Eric Backus.
1379 * Makefile.in (_stackovf.c): Goal for compiling stacokovf.c with
1381 Reported by Tom McConnell.
1383 * checks/Makefile.in (clean): Depends on mostlyclean.
1384 (mostlyclean): New goal.
1386 Fri Jun 24 23:30:31 1994 Francois Pinard (pinard@icule)
1388 * Makefile.in (DISTFILES): Distribute install.sh.
1389 * install.sh: New file, copied from elsewhere.
1390 Reported by Assar Westerlund and Kaveh R. Ghazi.
1392 Thu Jun 23 00:00:30 1994 Francois Pinard (pinard@icule)
1394 * configure.in: Define ENABLE_CHANGEWORD if --enable-changeword.
1395 * acconfig.h: Explain ENABLE_CHANGEWORD.
1397 [These modifs all depend upon ENABLE_CHANGEWORD and are adapted
1398 from code provided by Pete Chown]
1399 * m4.h: Add original_text field to u_t variant of union u.
1400 Declare TOKEN_DATA_FUNC macro.
1401 * builtin.c: Declare changeword.
1402 (m4_changeword): New function.
1403 * input.c: Include "regex.h", define variables with word regexps.
1404 (input_init): Initialize the word regexp.
1405 (set_word_regexp): New.
1406 (next_token): Declare local variables, use the previous code if
1407 default_word_regexp is true. Else, match using a new code. Save
1409 * macro.c (expand_token): Ship out original text if not a macro
1411 Reported by Krste Asanovic and Pete Chown.
1413 [These modifs all depend upon ENABLE_CHANGEWORD]
1414 * m4.h: Declare external user_word_regexp.
1415 * m4.c: Declare user_word_regexp, and initialize it from
1416 --word-regexp or -W, or NULL if not specified.
1417 * input.c: Use user_word_regexp if specified, instead of
1418 DEFAULT_WORD_REGEXP.
1420 * Makefile.in (m4): Revert Jan 3 1994 change. I'm unable to
1423 * Makefile.in, lib/Makefile.in: Limit suffixes to .c and .o.
1424 * checks/Makefile.in: Empty the suffix list.
1425 Reported by Geoff Russell, Joel Sherrill and Roland McGrath.
1427 * m4.c: Declare nesting_limit and initialize it to 250.
1428 Implement -LNUMBER or --nesting-limit=NUMBER to change its
1430 * m4.h: Declare nesting_limit as external.
1431 * macro.c (expand_macro): Stop execution whenever nesting limit
1433 Reported by Bengt Mertensson.
1435 * eval.c (evaluate): Diagnose excess characters in eval input.
1436 Things like `eval(08)' used to return 0 with no diagnostic.
1438 * m4.h: Capitalize first letter of all macro arguments in
1441 * m4.c: Declare warning_status, initialize it to 0. Add new
1442 option -E, or --fatal-warnings, which sets warning_status to
1443 EXIT_FAILURE instead.
1444 * m4.h: Declare external warning_status. Define EXIT_SUCCESS and
1445 EXIT_FAILURE if not otherwise done by header files.
1446 * m4.c: Delete declarations for EXIT_SUCCESS and EXIT_FAILURE.
1447 * m4.c, input.c, output.c, symtab.c, builtin.c, macro.c, debug.c,
1448 eval.c: Replace 0 by warning_status and 1 by EXIT_FAILURE in first
1449 argument of all M4ERROR calls.
1450 Reported by Noah Friedman.
1452 * examples/incl-test.m4: Renamed from incl_test.m4.
1453 * examples/include.m4: Include incl-test.m4 instead of
1455 * examples/multiquotes.m4: Renamed from multi-quotes.m.
1457 Wed Jun 22 21:58:54 1994 Francois Pinard (pinard@icule)
1459 * configure.in: Avoid USE_STACKOVF if <siginfo.h> not found. Note
1460 that Jim developped stackovf.c on a 486 running SVR4.0 (ESIX), and
1461 also tested it on a Sun Sparc workstation running SunOS 4.x.
1463 * format.c (format): When not HAVE_EFGCVT, m4 was failing the
1464 49.format check, abusing a `union values' argument with sprintf
1465 without selecting the proper field. Now, save the formatting type
1466 first, delaying the fetch of the corresponding argument.
1467 Reported by Joseph E. Sacco and Tom Quinn.
1469 * format.c (format): Remove const from char *fmt declaration when
1470 not HAVE_EFGCVT, because a NUL may be forced into it.
1472 * m4.h: Declare atof() when not STDC_HEADERS.
1473 Reported by Joseph E. Sacco.
1475 * Regenerate configure using Autoconf 1.11, this corrects a
1476 problem about an incorrect cpp seting on NeXT 3.1.
1477 Reported by Alexander Lehmann.
1479 Sun Jun 5 16:25:19 1994 Francois Pinard (pinard@icule)
1481 * m4.h (_): Change argument from `x' to `Args'.
1483 Wed May 4 23:59:39 1994 Francois Pinard (pinard@icule)
1485 * Makefile.in: Remove all occurrences of $(MFLAGS), which were
1486 bringing more evil than good on a few systems.
1487 Reported by Greg A. Woods.
1489 Fri Apr 22 15:59:35 1994 Francois Pinard (pinard@icule)
1491 * m4.h: Rename Args() to _().
1492 * m4.h: Remove extern specifier from all function declarations.
1494 Fri Apr 22 15:51:21 1994 Jim Avera (jima@netcom.com)
1496 * stackovf.c: New file implementing stack-overflow detection.
1497 * configure.in: Check for getrlimit, sigaction. If all of
1498 standard headers, getrlimit and sigaction, define USE_STACKOVF and
1499 substitute ${U}stackovf.o for STACKOVF.
1500 * acconfig.h: Declare USE_STACKOVF.
1501 * Makefile.in: Distribute stackovf.c, link with $(STACKOVF).
1502 * m4.h: Declare setup_stackovf_trap().
1503 * m4.c: Call setup_stackovf_trap().
1504 * tests/stackovf_test.sh: New file.
1506 Wed Apr 13 14:10:30 1994 Francois Pinard (pinard@icule)
1508 * checks/Makefile.in: Rename .all-stamp to stamp-checks.
1510 * Makefile.in (Makefile, etc.): Adapt for Autoconf 1.8.
1512 Sun Jan 30 14:24:19 1994 (pinard at icule)
1514 * m4.h: Remove definition of volatile, not used anymore.
1515 Reported by Jim Meyering and Joseph E. Sacco.
1517 * m4.h: Consistently use `do { ... } while (0)' in macros, instead
1518 of `if ... else /* nothing */' for if macros.
1519 Reported by Jim Meyering.
1521 * builtin.c (m4_regexp): Reorganize the code for avoiding a
1522 warning from gcc about `repl' possibly used before defined.
1523 Reported by Jim Meyering.
1525 * m4.h: Avoid a pre-ANSI <memory.h> together with <string.h>.
1526 Reported by Jim Meyering.
1528 Tue Jan 25 18:39:37 1994 Francois Pinard (pinard at icule)
1530 * m4.h: Move the conditional definition of volatile after the
1531 inclusion of system files, because they may define it first.
1533 Tue Jan 4 19:46:50 1994 Francois Pinard (pinard@icule)
1535 * checks/Makefile.in (CHECKS): Add a useless `*' before `[', to
1536 get around a problem with Alpha make seeing a syntax error, there.
1537 Reported by Vern Paxson.
1539 Mon Jan 3 00:21:45 1994 Francois Pinard (pinard@icule)
1541 * Makefile.in: Do not define LDFLAGS, use CFLAGS on link calls.
1542 Reported by Richard Stallman.
1544 Sat Dec 25 08:06:05 1993 Francois Pinard (pinard@icule)
1546 * configure.in: Correct test for strerror, AC_FUNC_CHECK was used
1547 instead of AC_HAVE_FUNCS.
1548 Reported by Noah Friedman.
1550 Wed Dec 1 09:37:53 1993 Francois Pinard (pinard@icule)
1552 * m4.c: Initialize show_help and show_version to zero.
1554 * m4.c: Ensure EXIT_SUCCESS and EXIT_FAILURE are defined.
1555 Use them in exit() and usage() calls.
1557 Sat Nov 27 10:43:24 1993 Francois Pinard (pinard@icule)
1559 * m4.h: Delete extern sys_nerr, sys_errlist declarations, and
1560 syserr() macro. Delete errref, add reference_error and M4ERROR.
1561 * m4.c: Replace errref, which was returning an input reference
1562 string, with reference_error, which prints it on standard error.
1563 * builtin.c, output.c: Use errno as second parameter to error,
1564 instead of using syserr() with %s.
1565 * *.c: Use M4ERROR instead of error: no more errref() with %s.
1566 Doing so, the program name appears after the input reference
1567 instead of before, which eases M-x next-error processing.
1569 Wed Nov 24 22:16:15 1993 Francois Pinard (pinard@icule)
1571 * checks/get-them: Escape braces with backslashes in patterns,
1572 because HPUX-9.01 awk needs this.
1573 Reported by Jim Meyering.
1575 Mon Nov 22 10:55:52 1993 Francois Pinard (pinard@icule)
1577 * builtin.c: Declare "FILE *popen ();".
1579 * m4.h: Remove MESSAGE{,1,2}, WARNING1, FATAL{,1}, INTERNAL_ERROR
1580 macros, replace error_message_prefix() declaration by errref()'s.
1581 Declare xrealloc, for use in errref().
1582 * m4.c: Delete error_message_prefix() function, add errref().
1583 * *.c: Use error() systematically in place of all error macros,
1584 now that error() flushes stdout first. Make needed adjustments.
1586 * m4.h: Remove const in sys_errlist[] declaration, it creates
1587 conflicts on SGI and Alpha.
1588 Reported by Kaveh R. Ghazi.
1590 Sat Nov 20 08:26:15 1993 Francois Pinard (pinard@icule)
1592 * m4.c: Include <getopt.h> instead of "getopt.h".
1594 * configure.in: Output to config.h. Use HAVE_FUNCS preferably.
1595 * acconfig.h: New, for documenting HAVE_EFGCVT.
1596 * Makefile.in: Distribute acconfig.h, .stamp-h.in and config.h.in,
1597 use them wherever appropriate. Also use -I. for compilations.
1598 * lib/Makefile.in: Use -I.. for compilations.
1599 * *.c: Include <config.h> or "config.h".
1601 * m4.h: Test for HAVE_MEMORY_H instead of NEED_MEMORY_H.
1602 * configure.in: Use AC_HAVE_HEADERS(memory.h), delete AC_MEMORY_H.
1604 Wed Nov 17 09:34:55 1993 Francois Pinard (pinard@icule)
1606 * builtin.c (m4_eval): Cast strlen to (int) before comparing.
1608 * input.c (input_init): Initialize quote and comment strings
1609 explicitely instead of calling set_quotes and set_comment: by
1610 doing so, we ensure we do not free uninitialized variables.
1612 * checks/check-them: Reverse arguments to both diff, so the
1613 expected is on the left and the obtained on the right.
1615 * m4.h: Add MESSAGE{,1,2}, WARNING1, FATAL{,1} and INTERNAL_ERROR
1616 macros. Delete declarations for m4error, warning, fatal and
1617 internal_error, add declaration for error_message_prefix.
1618 * m4.c: Delete m4error, warning, fatal and internal_error
1619 routines, add error_message_prefix routine.
1620 * *.c: Replace m4error routine calls with MESSAGE* macro calls,
1621 warning with WARNING*, fatal with FATAL* and internal_error with
1623 * Makefile.in (_m4.c): Do not adjust ansi2knr output for va_alist,
1624 this is not needed anymore.
1626 * m4.h: Declare extern FILE *debug. Add DEBUG_PRINT{1,3} and
1627 DEBUG_MESSAGE{,1,2} macros. Delete declarations for debug_print
1628 and debug_message, add declaration for debug_message_prefix.
1629 * debug.c: Remove static specifier for FILE *debug declaration.
1630 Delete debug_print and debug_message routines, add
1631 debug_message_prefix routine.
1632 * builtin.c, debug.c: Replace debug_print routine calls with
1633 DEBUG_PRINT* macro calls.
1634 * input.c, path.c: Replace debug_message routine calls with
1635 DEBUG_MESSAGE* macro calls.
1637 * m4.h: Remove inclusion of <varargs.h>.
1638 * debug.c: Include <stdarg.h> or <varargs.h>.
1639 (trace_format): Use stdarg instead of varargs if __STDC__.
1641 * configure.in: Remove checks for vfprintf and _doprnt. These
1642 implementations use varargs tricks which are not portable enough.
1643 * lib/vfprintf.c: Deleted.
1644 * lib/_doprnt.c: Deleted.
1645 * lib/Makefile.in: Adjusted accordingly. Remove LIBOBJS.
1646 Reported by Joel Sherrill.
1648 * path.c (add_include_directory): Use xstrdup.
1650 * builtin.c (find_builtin_by_name): Declare static.
1652 * *.[ch]: Add const to a few "char *" declarations.
1654 * configure.in: Remove commented tests for fileno() and fstat().
1655 * debug.c: Remove comments about HAVE_FILENO and HAVE_FSTAT.
1657 * debug.c (debug_flush_files): New.
1658 * m4.h: Declares it.
1659 * builtin.c (m4_syscmd, m4_esyscmd): Use it.
1660 Reported by Nicolas Pioch.
1662 Fri Nov 12 10:02:26 1993 Francois Pinard (pinard@icule)
1664 * Makefile.in (m4.dvi): Use m4.texinfo instead of m4.texi.
1665 Reported by Joel Sherrill.
1667 * builtin.c (prefix_all_builtins): Instead of the table size, use
1668 the null entry at end for stopping the loop. It was overwritten.
1669 Reported by Andreas Schwab and Jim Meyering.
1671 * builtin.c (prefix_all_builtins): Cast xmalloc to (char *).
1672 Reported by Kaveh R. Ghazi.
1674 * macro.c (call_macro): Add * in (*SYMBOL_FUNC (sym)) (...).
1675 Reported by Karl Vogel.
1677 Tue Nov 9 09:31:47 1993 Francois Pinard (pinard@icule)
1679 * m4.h: Do not define volatile if already defined.
1680 Reported by Rene' Seindal.
1682 * lib/Makefile.in: Add a forgotten ALLOCA=@ALLOCA@. Grrr!
1684 Reported by Bernhard Daeubler, Eric Backus, Hal Peterson, Hoang
1685 Uong, Ian Taylor, Kaveh R. Ghazi, Tom McConnell and Walter Wong.
1687 Mon Nov 8 21:11:44 1993 Francois Pinard (pinard@icule)
1689 * m4.h: Define strchr and strrchr in terms of index and rindex,
1690 instead of the other way around.
1691 * builtin.c, m4.c, path.c: Use strchr instead of index.
1693 * input.c (next_char): Remove a "break;" after a "return ...;".
1694 Reported by Tom McConnell.
1696 Mon Nov 8 12:45:34 1993 Francois Pinard (pinard@icule)
1700 * configure.in: Do not copy check files in the build hierarchy.
1701 * checks/check-them: Identify the m4 version being checked. For
1702 finding m4, look in $PATH instead of in the parent directory.
1703 * Makefile.in (check): Prepend `pwd` to $PATH before checking.
1704 * checks/Makefile.in (.all-stamp): Always create check files in
1705 the source hierarchy, not anymore in the build hierarchy.
1706 (check): cd to the source hierarchy before performing checks.
1707 Do not copy nor clean COPYING anymore, take it from `..'.
1708 Reported by Tom McConnell.
1710 * Makefile.in (Makefile): Use $(SHELL).
1711 (config.status): Use $(SHELL). Use "config.status --recheck"
1712 instead of "configure --no-create", which is obsolete.
1713 Reported by Tom McConnell.
1715 Fri Nov 5 09:49:30 1993 Francois Pinard (pinard@compy.IRO.UMontreal.CA)
1717 * m4.c (usage): Use "%s" instead of "m4" in format string.
1718 Reported by Jim Meyering.
1720 * Makefile.in: Distribute mkinstalldirs.
1721 Reported by Pierre Gaumond.
1722 Reported by Jim Meyering.
1723 Reported by Tom McConnell.
1724 Reported by Andreas Gustafsson.
1726 * checks/check-them: Renamed from checks/check_them.
1727 * checks/get-them: Renamed from checks/get_them.
1728 * checks/.all-stamp: Renamed from checks/.all_stamp.
1729 * checks/Makefile.in: Changed accordingly.
1730 Reported by Jim Meyering.
1732 Thu Nov 4 13:50:52 1993 Francois Pinard (pinard@lagrande.IRO.UMontreal.CA)
1734 * lib/Makefile.in (dist): Correct permissions on files.
1736 * output.c: Declare tmpfile, some systems don't.
1738 Wed Nov 3 09:09:16 1993 Francois Pinard (pinard@icule)
1740 * checks/Makefile.in (dist): Correct permissions on files.
1742 * Makefile.in (dist): Ensure recursive linking for subdirectory
1743 `examples', also set read/write permissions on all its files.
1745 * mkinstalldirs: New, from elsewhere.
1746 * Makefile.in: Use it.
1748 * debug.c: Synchronize debug messages and regular output when
1749 the debug file and stdout are redirected to the same file.
1750 * configure.in: Add (commented) checks for fileno and fstat.
1751 Reported by Jim Avera.
1753 * builtin.c (m4_ifelse): Diagnose excess arguments if 5, 8, 11,
1754 etc., arguments, then ignore the superfluous one. m4 used to
1755 diagnose missing arguments and return the empty string.
1756 Reported by Nick S. Kanakakorn.
1758 Tue Nov 2 00:55:41 1993 Francois Pinard (pinard@icule)
1760 * m4.c (main): At end of all input, ensure all undiverted text
1761 goes to the main output stream.
1762 Reported by Andreas Gustafsson.
1764 * m4.c (main): exit (0), instead of return 0.
1766 * m4.c: Implement -P and --prefix-builtins.
1767 * builtin.c: Delete const specifier on builtin_tab.
1768 (prefix_all_builtins): New.
1769 Reported by Noah Friedman.
1770 Reported by Scott Bartram.
1772 * c-boxes.el: New, from elsewhere.
1773 * Makefile.in: Distribute it.
1775 * m4.h: Do not define bcopy if <string.h> defines it.
1776 Reported by Stephen Perkins.
1778 * builtin.c (define_macro): Allow a missing second argument, in
1779 which case it is implied empty. Affects define and pushdef.
1780 Reported by Eric Allman.
1782 Mon Nov 1 07:45:24 1993 Francois Pinard (pinard@icule)
1784 * m4.h: Add blind_if_no_args in struct builtin, blind_no_args in
1785 struct symbol adn SYMBOL_BLIND_NO_ARGS macro.
1786 * builtin.c: Initialize all the blindness fields in builtin_tab.
1787 (define_builtin): Copy the blindness of a builtin into its symbol.
1788 * macro.c (expand_token): Avoid processing a blind builtin if the
1789 next character is not an opening parenthesis.
1790 Reported by David MacKenzie.
1791 Reported by Noah Friedman.
1793 * configure.in: Ensure an exit status of 0 on completion.
1794 Reported by Vivek P. Singhal.
1796 * eval.c (eval_lex): Admit both lower and upper case letters for
1797 bases greater than 10. Only lower case letters were accepted.
1799 * eval.c (eval_lex): Recognize 0bDIGITS and 0rRADIX:DIGITS syntax.
1800 Reported by Krste Asanovic.
1802 * eval.c: Rename NOT to LNOT. Add XOR, NOT, LSHIFT and RSHIFT.
1803 * eval.c (logical_not_term): New name for not_term.
1804 * eval.c (xor_term): New, between or_term and and_term.
1805 * eval.c (not_term): New, between and_term and logical_not_term.
1806 * eval.c (shift_term): New, between cmp_term and add_term.
1807 Reported by Krste Asanovic: ~, ^, <<, >>.
1808 Reported by Ben A. Mesander: ** vs ^.
1810 * m4.c: Delete xmalloc.c, xrealloc.c, xstrdup.c.
1811 * m4.h: Delete xrealloc.c.
1812 * lib/xmalloc.c: New, from elsewhere.
1813 * lib/xstrdup.c: New, from elsewhere.
1814 * lib/Makefile.in: Distribute and compile them.
1816 * m4.c: Change progname to program_name.
1817 * builtin.c, eval.c, m4.c, m4.h: Rename error to m4error.
1818 * lib/error.c: New, from elsewhere.
1819 * lib/Makefile.in: Distribute and compile error.c.
1820 * configure.in: Check AC_VPRINTF and for strerror.
1821 * m4.c: Delete cmd_error. Use error instead.
1822 * m4.c: Change label capitalisation to "ERROR", "Warning", etc.
1824 * m4.h: Delete #define const, let Autoconf takes care of this.
1826 * m4.c: Remove all code conditionalized by IMPLEMENT_M4OPTS.
1827 Merge parse_args into main. Declare argv to be `char *const *',
1828 then remove superfluous casts.
1830 * m4.c: Rename --no-gnu-extensions to --traditional.
1831 Reported by Ben A. Mesander.
1833 * m4.c (usage): Add a status parameter. Supply one in various
1834 calls. Add --help processing. Remove -V for --version.
1836 * lib/Makefile.in: Put $(CFLAGS) last in .c.o rule.
1838 * lib/Makefile.in: Have an AR=ar declaration.
1839 Reported by Eric Backus.
1840 Reported by Bjorn R. Bjornsson.
1841 Reported by Tom Tromey.
1842 Reported by Kristine Lund.
1843 Reported by Marion Hakanson.
1845 Sat Oct 30 12:51:47 1993 Francois Pinard (pinard@icule)
1847 * Makefile.in (m4.info): Use -I$(srcdir) on $(MAKEINFO).
1848 Reported by Noah Friedman.
1850 Mon Oct 25 14:58:48 1993 Francois Pinard (pinard@icule)
1852 * Makefile.in: Remove MDEFINES and cleanup.
1854 Wed Jun 9 14:59:46 1993 Francois Pinard (pinard@icule)
1856 * Makefile.in (dist): Replace "echo `pwd`" by a mere "pwd".
1859 Sat Feb 6 14:59:22 1993 Francois Pinard (pinard@icule)
1861 * Makefile.in, lib/Makefile.in, check/Makefile.in: In dist goals,
1862 ensure 777 mode for directories, so older tar's will restore file
1865 Sun Jan 17 15:38:05 1993 Francois Pinard (pinard@icule)
1867 * Makefile.in, lib/Makefile.in: Put $(CFLAGS) after $(CPPFLAGS),
1868 so the installer can override automatically configured choices.
1869 Reported by Karl Berry.
1871 Fri Jan 15 16:07:00 1993 Francois Pinard (pinard@icule)
1873 * lib/vfprintf.c: Stolen from Oleo distribution and adapted. The
1874 previous version was not working properly on m68k-hp-bsd4.3.
1875 Reported by Roland McGrath.
1877 * lib/_doprnt.c: Stolen from Oleo distribution.
1878 * configure.in: Check for _doprnt.c if vfprintf.c selected.
1879 * lib/Makefile.in: Distribute _doprnt.c.
1880 Do not distribute regex.[ch].old anymore.
1882 Fri Jan 1 19:42:23 1993 Francois Pinard (pinard at icule)
1884 * Makefile.in, lib/Makefile.in: Reinstate $(CPPFLAGS), use it.
1885 Richard wants it there.
1887 Sun Dec 27 07:01:54 1992 Francois Pinard (pinard at icule)
1889 * Makefile.in: Add DEFS to MDEFINES.
1890 * lib/Makefile.in (.c.o): Remove $(CPPFLAGS).
1891 (libm4.a): Remove the library before creating it.
1892 (distclean): Remove tags and TAGS too.
1894 Wed Dec 23 12:46:55 1992 Francois Pinard (pinard at icule)
1896 * Makefile.in (dvi, m4.dvi): New goals.
1898 * builtin.c, eval.c, format.c, input.c, m4.[ch], m4.texinfo,
1899 macro.c, output.c, path.c, symtab.c: Change Copyright from
1900 1989-1992 to the explicit enumeration 1989, 1990, 1991, 1992.
1902 * examples/divert.m4: Deleted, this bug has been corrected.
1904 * Makefile.in (texclean, mostlyclean): New goals.
1906 * Makefile.in (clean): Remove clutter from ansi2knr.
1907 Reported by Pierre Gaumond.
1908 Reported by Greg A. Woods.
1910 Sun Dec 20 10:40:20 1992 Francois Pinard (pinard at icule)
1912 * Makefile.in: Remove $(CPPFLAGS) from the .c.o rule. The user
1913 might well use CFLAGS is s/he needs it.
1915 * Makefile.in: Allow installation of info files from a separate
1917 Reported by Jason Merrill.
1918 Reported by David MacKenzie.
1919 Reported by Skip Montanaro.
1920 Reported by Erez Zadok.
1921 Reported by Assar Westerlund.
1923 Sat Dec 19 08:21:34 1992 Francois Pinard (pinard at icule)
1926 This is still a beta release for the future GNU m4 version 1.1.
1928 * lib/alloca.c: New, from elsewhere.
1929 * lib/Makefile.in: Distribute it. Define and use $(ALLOCA).
1931 * m4.h: Do not define index/rindex if already defined. If
1932 FALSE/TRUE are already defined, do not redefine them, but merely
1933 define boolean typedef to int.
1935 * Makefile.in: Use $(DEFS) while compiling ansi2knr.
1936 * ansi2knr.c: Rewrite #ifdef HAVE_STRING_H || STDC_HEADERS,
1937 because some C compilers do not like connectives with #ifdef.
1938 * m4.h: Define `volatile' only if __GNUC__, instead of once for
1939 __GNUC__ and once for __STDC__.
1940 * lib/regex.h: Leave const alone, AC_CONST will take care of it.
1942 * checks/Makefile.in: Use .all_stamp instead of $(CHECKS) for
1943 Makefile dependencies. Without it, make keeps destroying and
1944 remaking $(CHECKS) in a loop (why?). Distribute .all_stamp.
1946 * m4.h, m4.c, builtin.c, output.c: Change all divertion/DIVERTION
1947 to diversion/DIVERSION, this was a spelling error.
1949 * m4.c: Declare version[], remove #include "version.h".
1950 * version.h: Deleted.
1951 * Makefile.in: Remove references to version.h.
1953 * output.c (shipout_text): Centralize all `#line NUM ["FILE"]'
1954 production, by using a simpler and more robust algorithm. This
1955 solves the problem of synclines sometimes written in the middle of
1956 an output line. Delete sync_line() and output_lines variable.
1957 * m4.h: Remove sync_line prototype and output_lines declaration.
1958 * input.c (next_char), output.c (shipout_text): Remove references
1960 * input.c (push_file, pop_file): Merely put the value -1 in
1961 output_current_line instead of calling sync_line, for delaying a
1962 single `#line NUM FILE' before next output line. Do not test
1963 for sync_output, because this is unnecessary clutter.
1964 * output.c (make_divertion, insert_divertion): Idem.
1965 * input.c: Rename must_advance_line to start_of_input_line, for
1968 * debug.c (trace_header): Select a new debug line format, which
1969 better complies with GNU standards for formatting error messages.
1970 With option `-dfl', M-x next-error might be used on the output.
1971 * m4.c (vmesg): Adjust format of error output to GNU standards.
1972 * m4.texinfo: Adjust examples for `make check' to work.
1974 * m4.h, builtin.c, debug.c, input.c, macro.c, path.c: Use upper
1975 case for enum debug_info constants, which were all lower case.
1977 * builtin.c (m4_regexp, m4_patsubst): Use re_search instead of
1979 * lib/regex.[ch]: Use new version from textutils 1.3.6, with some
1980 collected patches. I tried a few times using newer regex.[ch], it
1981 mysteriously stopped aborting with this one. Insecure feeling...
1982 * lib/Makefile.in: Distribute regex.[ch].old, just in case!
1984 Fri Dec 18 11:08:03 1992 Francois Pinard (pinard at icule)
1986 * m4.c: Change `--no-warnings' to `--silent'.
1987 Reported by David MacKenzie.
1989 * m4.c: Put all M4OPTS code upon IMPLEMENT_M4OPTS control, and
1990 leave it off for now. See comment in m4.c for justification.
1991 Reported by David MacKenzie.
1993 * configure.in: Replace AC_USG by AC_HAVE_HEADERS(string.h).
1994 * m4.h, ansi2knr.c, lib/regex.h: Replace USG by HAVE_STRING_H.
1996 * Makefile.in: Add a new `info' goal. Use macro MAKEINFO.
1998 * Makefile.in: Ensure recursive cleaning is done before local
1999 cleaning for all clean goals.
2001 * builtin.c (ntoa): Ensure the value is always interpreted as a
2002 signed quantity, whatever the radix is.
2004 Wed Nov 18 07:57:19 1992 Jim Meyering (meyering@idefix)
2006 * builtin.c, format.c, input.c: Split long lines.
2007 * m4.c: Use typedef macro_definition instead of struct
2009 * symtab.c: Use typedef symbol instead of struct symbol.
2011 Tue Nov 17 01:58:40 1992 Francois Pinard (pinard at icule)
2013 * *.[ch]: Remove all trailing whitespace, in code and comments.
2015 * configure.in: Find some awk.
2016 * Makefile.in: Add $(AWK) to MDEFINES.
2017 * checks/Makefile.in: Transmit $(AWK) to get_them.
2018 * checks/get_them: Use $AWK instead of gawk. Add a close in the
2019 awk script when switching files, because without this, mawk runs
2020 out of file descriptors.
2022 Mon Nov 16 20:42:56 1992 Francois Pinard (pinard at icule)
2024 * Makefile.in (realclean): Delete m4.info*.
2025 Reported by Jim Meyering.
2027 * Makefile.in: Adjust and link with checks/Makefile.
2028 * checks/Makefile.in: New.
2029 * configure.in: Output checks/Makefile.
2031 * checks/get_them: Have the dnl header of each test more
2032 recognizable by next-error, also use a better message.
2034 Mon Nov 16 07:48:52 1992 Jim Meyering (meyering@idefix)
2036 * m4.h [__GNUC__]: Use __volatile__ instead of `volatile.'
2037 And use that only if __GNUC__ since we're using it's GCC-specific
2038 semantics that tell the compiler the associated function doesn't
2041 * builtin.c (substitute): Don't use character as an array index.
2042 (dumpdef_cmp): Make formal arguments `const void *' to avoid
2043 warnings with gcc -W -Wall on systems with qsort prototype.
2044 (m4_errprint): Cast obstack_finish to `char *' to avoid warnings
2047 * eval.c (most functions): Add parentheses to assignments used
2048 as truth values go avoid warnings from gcc -Wall.
2050 * input.c, m4.c, output.c, path.c, symtab.c: Declare static
2051 any functions that don't need external scope.
2053 * builtin.c, debug.c, format.c, m4.c, m4.h, macro.c, symtab.c
2054 (many functions and arrays): Declare `const'.
2056 Sun Nov 15 09:42:09 1992 Francois Pinard (pinard at icule)
2058 * *.[ch]: Rename nil to NULL, using the declaration from <stdio.h>,
2059 removing the declaration from m4.h. Also rename false to FALSE
2062 * lib/Makefile.in (Makefile): New goal.
2064 * Makefile.in, lib/Makefile.in: Add a .c.o rule, so CFLAGS is not
2065 so heavily loaded. It gets more easily overridable, calling make.
2066 Reported by Jim Meyering.
2068 * Makefile.in (dist): Get .fname from the current directory name,
2069 instead of from version.h. I need updating many files manually,
2070 when the version changes, version.h is just one of them.
2072 Sat Nov 14 11:01:20 1992 Francois Pinard (pinard at icule)
2074 * m4.h: Remove the tag `boolean' on the enum introducing typedef
2075 `boolean'. This tag conflicts with <sys/types.h> on SVR4.
2076 Reported by Tom McConnell.
2078 Fri Nov 13 00:12:50 1992 Francois Pinard (pinard at icule)
2080 * m4.texinfo: Correct the examples for 33.divert, 38.divnum,
2081 39.cleardiv, which were describing missing or spurious newlines.
2082 Modify examples 52.eval, 53.esyscmd and 54.sysval so the results
2083 do not depend on machine word size, `/bin/false' implementation,
2084 or `wc' output format. `make check' is more dependable, now.
2086 * checks/check_them: Summarize the failed tests by listing their
2087 name, at end. If none, issue `All checks successful'. Output
2088 `Checking' instead of `Input file:'.
2090 * checks/get_them, checks/check_them: Reindented.
2092 * Makefile.in (dist): chmod a+r before making the tar file.
2094 Thu Nov 12 14:42:57 1992 Francois Pinard (pinard at icule)
2096 * builtin.c (m4_dnl): Diagnose any parameter to `dnl'.
2098 * input.c (next_token): Reinitialize token_buttom just after using
2099 it as a watermark with obstack_free. Or else, a future token, big
2100 enough for triggering reallocation of the obstack chunk, could
2101 void the initialized value of token_buttom, later causing panic in
2102 obstack_free. Rename token_buttom to token_bottom everywhere.
2104 * m4.h: Before declaring errno, first include <errno.h> and
2105 ensure that it does not define errno.
2106 Reported by Richard Stallman.
2108 Wed Nov 11 17:40:35 1992 Francois Pinard (pinard at icule)
2110 * builtin.c: Define and use DECLARE macro for builtins.
2112 * builtin.c (m4_ifelse): Avoid any diagnostic when exactly one
2113 argument, this is a common idiom for introducing long comments.
2115 * builtin.c (m4_ifelse): If 3n + 2 arguments, diagnose missing
2116 arguments. The last argument was silently ignored.
2118 * m4.c (cmd_error): Add a missing semicolon before va_end().
2120 Tue Nov 10 08:57:05 1992 Francois Pinard (pinard at icule)
2122 * Makefile.in: Now handle protoized sources. Define and use U.
2123 Compile and use ansi2knr with old compilers. Update DISTFILES.
2124 Add `aclocal.m4' to `configure' dependencies.
2125 * ansi2knr.c: New, from Ghostscript distribution.
2126 * configure.in: Define U through FP_PROTOTYPES for old compilers.
2127 Add AC_ISC_POSIX, AC_CONST, AC_SIZE_T.
2128 * aclocal.m4: New, provide FP_PROTOTYPES.
2129 * m4.h: Conditionnaly protoized through Args, save for varags.
2130 * builtin.c: Protoized. Then:
2131 Include <sys/types.h> if size_t is not defined, before "regex.h".
2132 (m4_ifelse): Fetch built-in name properly for diagnostic.
2133 (m4_dumpdef): Remove wrong (char *) cast calling dump_symbol.
2134 (m4_regexp): Add const to `msg' declaration.
2135 (m4_patsubst): Add const to `msg' declaration.
2136 * debug.c: Protoized, save for varargs.
2137 * eval.c: Protoized.
2138 * format.c: Protoized.
2139 * input.c: Protoized.
2140 * m4.c: Protoized, save for varargs. Then:
2141 (xfree): Accept void * instead of char *.
2142 (xmalloc): Return void * instead of char *.
2143 (xrealloc): Accept and return void * instead of char *.
2144 * macro.c: Protoized.
2145 * output.c: Protoized.
2146 * path.c: Protoized. Then cast some (char *) over xmalloc's.
2147 * symtab.c: Protoized.
2149 Fri Nov 6 02:05:21 1992 Francois Pinard (pinard at icule)
2151 * m4.texinfo: Remove directory from diagnostics in 30.include,
2152 51.eval, 56.errprint and 57.m4exit tests.
2154 * m4.h: Remove declarations for int or void system functions, they
2155 cause more conflicting trouble than they make good.
2157 * configure.in: Avoid configuration header file. Add some tests.
2158 * m4.h: Remove #include "config.h".
2159 * Makefile.in, lib/Makefile.in: Implement Autoconf interface.
2160 Then, rewritten for better compliance with GNU standards.
2162 Thu Nov 5 12:37:13 1992 Francois Pinard (pinard at icule)
2164 * format.c (format): Avoid syntax error if not HAVE_EFGCVT,
2165 because of a misplaced #endif.
2167 * Many *.[hc] files: Correct intra-line spacing here and there,
2168 according to GNU indent 1.6 advice.
2170 * configure.in: New, using Autoconf 1.2.
2171 * m4.h: Reverse NO_MEMORY_H to NEED_MEMORY_H.
2172 * Delete old configure.in, configure, etc/configure.in,
2173 etc/configure, lib/configure.in, lib/configure and config/*.
2174 Reported by Jason Merrill.
2176 * symtab.c (hash): Change (char) NULL to '\0'.
2177 Reported by Jason Merrill.
2179 * Delete .vers, etc/newdist.sh, etc/newvers.sh and
2180 etc/nextvers.sh. Release numbers will be edited `by hand'.
2181 * version.h: De-automatize, force value in.
2183 * m4.c: Changes in order to use a newer getopt.h.
2184 Reported by David MacKenzie.
2186 * checks/: New name for examples/.
2187 * checks/get_them: New location for etc/get_examples.
2188 * checks/check_them: New location for etc/check_examples.
2189 * Makefile.in, checks/get_them, checks/check_them: Adjust.
2190 * lib/vfprintf.c: New location for etc/vfprintf.c.
2191 * Delete empty etc/.
2192 * examples/: New name for test/.
2194 Tue Mar 10 00:29:46 1992 Francois Pinard (pinard at icule)
2196 * Makefile.in (check): Add m4 as dependency.
2198 * m4.c: Accept --no-warnings instead of --no_warnings, and
2199 --no-gnu-extensions instead of --no_gnu_extensions. Make the
2200 usage message more informative.
2201 Reported by David MacKenzie.
2203 Mon Mar 9 14:53:40 1992 Francois Pinard (pinard at icule)
2205 * etc/check_examples: New name for check_examples.sh.
2206 * etc/get_examples: New name for get_examples.sh.
2207 * Makefile.in, etc/Makefile.in: Use new names.
2209 * Makefile.in: Transmit $(CC) while making in lib.
2211 * Many *.[hc] files: GNU indent'ed, with further fine tuning of
2212 code disposition by hand.
2214 Sun Mar 8 11:01:55 1992 Francois Pinard (pinard at icule)
2216 * m4.h: Delete definitions for abort() and exit().
2217 Reported by Richard Stallman.
2219 * config/hmake-unicos, config/s-unicos.h: New files.
2220 Reported by Hal Peterson.
2222 * eval.c (exp_term): Have N^0 return 1.
2223 Reported by Michael Fetterman.
2225 * eval.c, input.c, m4.h: Remove last comma in enums.
2226 Reported by Mike Lijewski.
2228 * Transfer of maintenance duties from Rene' to Franc,ois.
2230 Thu Oct 24 15:18:46 1991 Rene' Seindal (seindal at diku.dk)
2232 * Release 1.0. Many thanks to those, who provided me with bug
2233 reports and feedback.
2235 * Uses GNU configure, taken from the gdb distribution.
2237 * Uses GNU getopt(), with long option names.
2239 * The -Q/+quiet option is added, which suppresses warnings about
2240 missing or superflous arguments to built-in macros.
2242 * Added default options via the M4OPTS environment variable.
2244 * The built-in format can now be configured to use sprintf as
2245 the formatting engine, for systems without [efg]cvt(3).
2247 * GNU library code is moved to the ./lib subdirectory; other
2248 utility files are now in ./etc.
2250 * Several minor bugs have been fixed.
2252 Fri Jul 26 15:28:42 1991 Rene' Seindal (seindal at diku.dk)
2254 * Fixed various bugs. Release 0.99, manual 0.09. Many thanks to
2255 Francois Pinard and Roland H. Pesch for providing me with reports.
2257 * The builtins incr and decr are now implemented without use of
2260 * The builtin indir is added, to allow for indirect macro calls
2261 (allows use of "illegal" macro names).
2263 * The debugging and tracing facilities has been enhanced
2264 considerably. See the manual for details.
2266 * The -tMACRO option is added, marks MACRO for tracing as soon
2269 * Builtins are traced after renaming iff they were before.
2271 * Named files can now be undiverted.
2273 * The -Nnum option can be used to increase the number of
2274 divertions available.
2276 * Calling changecom without arguments now disables all comment
2279 * The function m4_patsubst() is now consistently declared
2282 * A bug in dnl is fixed.
2284 * A bug in the multi-character quoting code is fixed.
2286 * Several typos in the manual has been corrected. More probably
2289 * The m4.info file is now installed along with the program.
2291 Thu Nov 15 21:51:06 1990 Rene' Seindal (seindal at diku.dk)
2293 * Updated and enhanced version. Release 0.75, manual 0.07.
2295 * Implemented search path for include files (-I option and
2296 M4PATH envronment variable).
2298 * Implemented builtin "format" for printf-like formatting.
2300 * Implemented builtin "regexp" for searching for regular
2303 * Implemented builtin "patsubst" for substitution with regular
2306 * Implemented builtin "esyscmd", which expands to a shell
2309 * Implemented "__file__" and "__line__" for use in error
2312 * Implemented character ranges in "translit".
2314 * Implemented control over debugging output.
2316 * Implemented multi-character quotes.
2318 * Implemented multi-character comment delimiters.
2320 * Changed predefined macro "gnu" to "__gnu__".
2322 * Changed predefined macro "unix" to "__unix__", when the -G
2323 option is not used. With -G, "unix" is still defined.
2325 * Changed "shift", "$@" and "$*" to not insert spaces afters
2328 * Added program name to error messages.
2330 * Fixed two missing null bytes bugs.
2332 Mon Jan 22 21:08:52 1990 Rene' Seindal (seindal at diku.dk)
2334 * Initial beta release. Release 0.50, manual 0.05.
2336 $Revision: 1.1.1.1.2.27 $ $Date: 2005/10/18 11:29:12 $