* lib/regex.c (regex_compile): Kill compiler warnings.
[m4/ericb.git] / ChangeLog
blobb8391c8d9b4f6c2f3bb20e5d0352d11d93b4c49b
1 2006-05-27  Eric Blake  <ebb9@byu.net>
3         * lib/regex.c (regex_compile): Kill compiler warnings.
4         * lib/getopt.c: Likewise.
5         * lib/obstack.c: Likewise.
6         * src/builtin.c (builtin_init): Likewise.
7         * src/path.c (path_search): Likewise.
9         * doc/m4.texinfo: Fix usage of a vs. an.
10         (Loops, Include, Cleardiv, Patsubst, Format, M4exit): Kill
11         overfull hbox warnings.
12         (Inhibiting Invocation, Divert, Maketemp, M4exit): Add new tests.
14         * configure.ac: Update to autoconf 2.59.  Forbid ^M4_.  Fix
15         quoting.
16         * aclocal.m4 (fp_PROG_CC_STDC): Delete; now covered by autoconf.
17         (fp_C_PROTOTYPES): Delete, GNU Coding Standards state we can now
18         assume C89.
19         (M4_WITH_DMALLOC): Rename from fp_WITH_DMALLOC. Fix quoting.
20         * src/m4.h (_): PROTOTYPES is no longer provided, assume C89.
21         * src/Makefile.in: Delete remains of ansi2knr.
22         * src/ansi2knr.1: Delete.
23         * src/ansi2knr.c: Delete.
25 2006-05-25  Eric Blake  <ebb9@byu.net>
27         * doc/m4.texinfo: Fix spelling errors.  Use `invalid' instead of
28         `illegal'.
30         * doc/m4.texinfo (Francois): No longer needed as a tex variable.
31         Reported by Karl Berry.
33 2006-05-24  Eric Blake  <ebb9@byu.net>
35         * Makefile.in (html): New target.
36         * doc/Makefile.in (html, m4.html): Likewise.
37         (MAKEINFOHTML): New macro.
38         * doc/m4.texinfo (Francois) [ifnottex]: Use newer texinfo
39         rendering.
40         (Regexp) [ifhtml]: Make cross-reference to emacs manual an
41         absolute URL.
42         Reported by Bob Badour.
44         * THANKS: Update.  Move reporter's email addresses here, instead
45         of in ChangeLog.
47 2006-05-11  Eric Blake  <ebb9@byu.net>
49         * THANKS: Update.
50         * doc/m4.texinfo (Changequote): Give testsuite exposure to bug
51         patched on 2005-12-04.
52         Reported by Ilya N. Golubev.
54         * bootstrap: New file, so that generated files need not be stored
55         in CVS.
56         * Makefile.in (DISTFILES): Add bootstrap.
58         Make testsuite less sensitive to doc changes.
59         * doc/m4.texinfo: Use m4.input instead of filename.
60         * checks/check-them (xerr): Turn m4.input into filename.
61         * checks/Makefile.in (dist): Depend on stamp-checks.
63         Portability updates for OS/2.
64         * src/Makefile.in (EXEEXT, OBJEXT): Define.
65         (LINK): Use CFLAGS.
66         (.c.obj): Define.
67         * lib/Makefile.in (OBJEXT): Define.
68         (.c.obj): Define.
69         * doc/Makefile.in (install, uninstall): Install info files into
70         the dir listing.
71         Reported by Andreas Buening.
73 2006-05-09  Eric Blake  <ebb9@byu.net>
75         * install-sh: Update to newer upstream version.
76         * mkinstalldirs: Likewise.
77         Reported by Andreas Buening.
79         * src/m4.c (main): Bump copyright year.
80         * Makefile.in (datarootdir): Define, for autoconf 2.59c.
81         * doc/Makefile.in (datarootdir): Likewise.
83 2006-05-08  Eric Blake  <ebb9@byu.net>
85         * THANKS: Update.
86         * doc/m4.texinfo (Bugs): Backport bug email address from head.
87         Reported by Stepan Kasal.
89 2005-12-04  Ilya N. Golubev  <gin@mo.msk.ru>  (tiny change)
91         * input.c (match_input): Do not pass expression with side effect
92         to `obstack_grow'.  Fix <INTERNAL ERROR: Recursive push_string!>.
93         * NEWS: Updated.
95 2005-12-04  Gary V. Vaughan  <gary@gnu.org>  (tiny change)
97         * doc/m4.texinfo (How to debug macros and input): s/woould/would/
98         Reported by Damian Menscher.
100 2005-10-19  Gary V. Vaughan  <gary@gnu.org>  (tiny change)
102         * configure.ac (AC_INIT): Bump to 1.4.4a.
104 2005-10-19  Gary V. Vaughan  <gary@gnu.org>  (tiny change)
106         Release 1.4.4:
108         * configure.ac (AC_INIT): Bump to 1.4.4.
109         * NEWS: Describe 1.4.4's changes.
110         * INSTALL, install-sh, doc/texinfo.tex: Updated from upstream.
112 2005-10-17  John Gatewood Ham  <zappaman@buraphalinux.org>  (tiny change)
114         * src/m4.c: fix return code when non-existent files are processed
116 2005-10-17  John Gatewood Ham  <zappaman@buraphalinux.org>  (tiny change)
118         * README: update email address for bug reports.
120 2005-10-17  Gary V. Vaughan  <gary@gnu.org>
122         * doc/m4.info: Generated files are not kept in the repository.
124 2005-05-01  Gary V. Vaughan  <gary@gnu.org>
126         The FSF are moving offices today.  Changed their contact address
127         in all files from `59 Temple Place, Suite 330, MA 02111-1307' to
128         `51 Franklin Street, Fifth Floor, MA 02110-1301'.
130         Also, some of the files here were never updated from the previous
131         '675 Mass Ave, Cambridge, MA 02139', so changed those to the
132         '51 Franklin Street, Fifth Floor, MA 02110-1301' address too.
134 2005-03-31  Mike Frysinger  <vapier@gentoo.org>
136         * Makefile.in (bindir, infodir): Substitute from configure rather
137         than hardcode.
138         * doc/Makefile.in (infodir): Ditto.
139         * src/Makefile.in (bindir): Ditto.
140         * NEWS: Updated.
142 2005-03-31  Gary V. Vaughan  <gary@gnu.org>
144         Changes needed to automate the release process for 1.4.3:
146         * Makefile.in (dist): Make .tar.bz2 tarball too.
147         * Makefile.maint (TSDEPS_DIST): Remove m4/libtool.m4.
148         (cvs-news): Look 1 line further down for NEWS release number.
149         (cvs-dist): We don't use automake, so make dist is fine.
150         Remove double . before suffixes.
151         (cvs-release): Don't mention manual.html.
152         (fetch): Get latest gendocs files.
153         (web-manual): Rewritten to use gendoc for multiformat manuals.
154         * doc/gendocs.sh: Don't save an old version in m4 CVS!
155         * doc/m4.texinfo (Index): HFS+ (the file system on my Mac) is case
156         preserving, but case insensitive, so generating html docs per node
157         clashes between Index.html, the node file, and index.html, the
158         top-level of the document tree...
159         (Index macro): ...so renamed to this.  Changed all references.
161 2005-03-31  Gary V. Vaughan  <gary@gnu.org>  (tiny change)
163         * configure.ac (AC_INIT): Bump to 1.4.3a.
165 2005-03-31  Gary V. Vaughan  <gary@gnu.org>  (tiny change)
167         Release 1.4.3:
169         * configure.in (AC_INIT): Bump to 1.4.3.
170         * NEWS: Describe 1.4.3's changes.
172 2005-03-31  Gary V. Vaughan  <gary@gnu.org>
174         * Makefile.maint: New file with release rules, from CVS libtool.
175         * Makefile.in (DISTFILES): Add Makefile.maint.
176         * INSTALL, install-sh, doc/texinfo.tex: Updated to latest
177         canonical versions.
179 2005-03-31  Eric Blake  <ebb9@byu.net>  (tiny change)
181         * doc/m4.texinfo (Patsubst): Re-add trailing space required by
182         checks/47.patsubst, with a redundant @comment to prevent emacs
183         from removing it accidentally again.
184         * checks/get-them: Allow for trailing spaces tucked behind
185         @comment marks.
187 2005-03-31  Eric Blake  <ebb9@byu.net>  (tiny change)
189         * doc/Makefile.in (install, uninstall): Accomodate DESTDIR.
190         * src/Makefile.in (install, uninstall): Likewise.
192 2005-02-07  Gary V. Vaughan  <gary@gnu.org>
194         * lib/regex.c, lib/regex.h:  Reverted gnulib update, which broke
195         on Cygwin.
196         Reported by Eric Blake.
198 2005-02-04  Gary V. Vaughan  <gary@gnu.org>
200         * lib/regex.c, lib/regex.h: Updated from gnulib.
201         * src/input.c (set_word_regexp):  Don't change the word_regexp
202         unless it compiles correctly.
203         * NEWS: Updated.
204         Reported by Frank Schwidom.
206         * Makefile.in (stamp-h): Regenerate config.h properly.
208 2005-02-03  Gary V. Vaughan  <gary@gnu.org>
210         * configure.ac (AC_DEFINE): Fix overquoting of description
211         argument.
213         * src/m4.h (__CYGWIN__, WIN32): Canonicalise Windows and Cygwin
214         recognition macros.
215         * src/freeze.c (produce_frozen_state): Use \n line-endings even
216         on Windows, so that the frozen file reader will work.
217         Reported by Josef T. Burger.
219         * src/m4.c (main): Modernise the --version output.
221 2005-02-03  Gary V. Vaughan  <gary@gnu.org>
223         Modernise the configury a little to prevent spurious errors from
224         Autoconf-2.59's autoreconf:
226         * config.h.in: Renamed to...
227         * config-h.in: ...this to better support DOS 8.3 file systems.
228         * acconfig.h: Removed.
229         * configure.in: Renamed to...
230         * configure.ac: ...this, and AC_DEFINE used to declare config.h
231         entry comments.  Slight reorganisation and reformatting.
232         * aclocal.m4: Use third argument to AC_DEFINE to declare config.h
233         entry comments.
234         (AC_INIT): Use a modern 3 argument call.
235         * Makefile.in, checks/Makefile.in, doc/Makefile.in,
236         examples/Makefile.in, lib/Makefile.in, src/Makefile.in:
237         s/PRODUCT/PACKAGE/g.
238         * Makefile.in (DISTFILES): Removed acconfig.h, configure.in,
239         config.h.in.  Added configure.ac, config-h.in.
240         (stamp-h.in): Removed acconfig.h from dependencies.
241         (configure): Depends on configure.ac, not configure.in.
242         * doc/Makefile.in (stamp-vti): Ditto.
243         * src/freeze.c (produce_frozen_state), src/m4.c (main): Adjust for
244         difference between PRODUCT="m4" and PACKAGE="GNU M4".
245         * configure: Regenerated.
247 2005-02-03  Noah Misch  <noah@cs.caltech.edu>
249         * src/output.c (mkstemp): Make non-static, and build regardless of
250         HAVE_TMPFILE; src/builtin.c also needs this replacement.
251         * NEWS: Update.
253 2004-09-09  Vincent Lonngren  <Vincent.lonngren.759@student.lu.se>
255         * configure.in (AC_CHECK_HEADERS): Commit works best when you save
256         changes from your editor buffer first.
258         * configure.in (AC_CHECK_HEADERS):  Add signal.h, sys/signal.h.
259         * src/m4.c: And include them as appropriate.
260         * NEWS: Updated.
262 2004-09-09  Andreas Schwab  <schwab@suse.de>
264         Refactoring of the string read case in next_char provides about a
265         20% speedup of M4 as typically used by autoconf:
267         * src/input.c (next_char_1): Renamed from next_char.
268         (next_char): New macro.
269         * NEWS: Updated.
271 2004-08-21  Gary V. Vaughan  <gary@gnu.org>
273         * configure.in (VERSION): Bump to 1.4.2a.
275 2004-08-19  Paul Eggert  <eggert@twinsun.com>
277         * Release 1.4.2.
279         * configure.in (VERSION): Bump to 1.4.2.
280         * News: Describe 1.4.2's changes.
282         * src/m4.c (reference_error): Preserve errno, since M4ERROR
283         relies on this.
284         * src/builtin.c (m4_esyscmd): Clear errno before calling popen.
285         (m4_maketemp): Clear errno before calling mkstemp.
286         * src/path.c (path_search): Don't let "free" trash errno when
287         returning NULL.
288         * src/output.c (insert_file): Don't assume errno has a valid
289         value simply because fread returns zero.  This fixes a
290         portability bug reported by Marion Hakanson in
291         <http://lists.gnu.org/archive/html/bug-m4/2004-07/msg00029.html>.
293 2004-06-09  Gary V. Vaughan  <gary@gnu.org>
295         * configure.in (VERSION): Bump to 1.4.1a.
296         * NEWS: Place holder for next stable release.
298 2004-06-03  Paul Eggert  <eggert@cs.ucla.edu>
300         * Release 1.4.1.
302         * configure.in (VERSION): Bump to 1.4.1.
303         * NEWS: Describe 1.4.1's changes.
305         * aclocal.m4 (fp_PROG_CC_STDC): Use AC_DEFUN, not define, to
306         pacify Autoconf 2.59.
308         * doc/m4.texinfo: Insert commas after @xref's that lack them,
309         to pacify Texinfo 4.7.
310         * doc/Makefile.in (info): Remove info-1, info-2, info-3.
312         * src/m4.h, src/debug.c: Use #ifdef __STDC__, not #if __STDC__, to
313         pacify Sun C compilers.
315 2003-09-28  Akim Demaille  <akim@epita.fr>
317         * src/symtab.c (lookup_symbol): Fix an uninitialized-variable
318         botch.
320 2003-09-03  Santiago Vila  <sanvila@debian.org>
322         * examples/stackovf.sh: Use tempfile if available.
324 2001-04-02  Robert Bihlmeyer  <robbe@orcus.priv.at>
326         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92629
327         * src/output.c (m4_insert_file): Do not mix buffered and
328         unbuffered I/O, as this breaks on the Hurd.  (trivial change)
330 2001-02-01  Santiago Vila  <sanvila@debian.org>
332         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84451
333         * src/m4.c (main): Fix format vulnerabilities.  (trivial change)
335 2001-02-01  Matt Kraai  <kraai@debian.org>
337         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84416
338         * doc/m4.texinfo (Maketemp): Change maketemp to refer to a new,
339         empty file rather than to a nonexistent file.  This closes a common
340         security hole.
341         * src/builtin.c (m4_maketemp): Implement the above, by using
342         mkstemp rather than mktemp.  (trivial change)
344 2000-01-09  Akim Demaille  <demaille@inf.enst.fr>
346         * src/builtin.c (expand_ranges): Added break after trailing dash.
347         This caused misbehaviors on some systems.
349 Sat Nov  5 15:52:47 1994  Francois Pinard  (pinard@icule)
351         * Release 1.4.
353         * doc/Makefile.in (realclean): Also remove stamp-vti.
354         Reported by Eric Backus.
356 Wed Nov  2 00:47:53 1994  Francois Pinard  (pinard@icule)
358         * src/freeze.c (produce_frozen_state): If the frozen file cannot
359         be opened, return immediately after producing the error message.
360         Reported by Andreas Schwab.
362         * configure.in: Check for const only after having found possible
363         ANSIfying compiler flags, this is of no use to check it before.
364         Reported by Alexander Lehmann.
366 Tue Nov  1 22:02:37 1994  Francois Pinard  (pinard@icule)
368         * src/macro.c (collect_arguments): Cast obstack arguments to
369         (voidstar), so avoiding compiler warnings.
370         Reported by Joseph E. Sacco.
372         * src/freeze.c (produce_frozen_state): Cast printed lengths to
373         (int) so they correspond to %d format items.
374         Reported by Joseph E. Sacco.
376         * src/m4.c (main): Cast the argument to xfree to (voidstar).
377         * src/symtab.c (free_symbol): Idem.
378         Reported by Karl Vogel.
380 Mon Oct 31 02:11:19 1994  Francois Pinard  (pinard@icule)
382         * Makefile.in (DISTFILES): Distribute BACKLOG.
384         * configure.in: Define PRODUCT and VERSION.
385         * acconfig.h: Document PRODUCT and VERSION.
386         * src/m4.c, src/freeze.c: Use PRODUCT and VERSION instead of the
387         constant string m4 and variable or parameter named version.
389 Sun Oct 30 08:13:03 1994  Francois Pinard  (pinard@icule)
391         * src/m4.h, src/debug.c: Replace all #ifdef __STDC__ by #if
392         __STDC__.  Alliant FX/2800 Concentrix 2.2 (i860-BSD4.3) compiler
393         defines __STDC__ to 0, for indicating it is *not* ANSI!
394         Reported by Kaveh R. Ghazi.
396         * configure.in: Added obsolescent tests for AIX and Minix.
398         * doc/Makefile.in (mostlyclean): Remove texclean in dependencies,
399         which texclean does not exist anymore.
400         Reported by Eric Backus, Jim Meyering, John David Anglin and
401         Joseph E. Sacco.
403 Sat Oct 29 05:10:03 1994  Francois Pinard  (pinard@icule)
405         * aclocal.m4 (fp_C_PROTOTYPES): Force -D_HPUX_SOURCE with -Aa.
406         Reported by John David Anglin.
408         * src/ansi2knr.c: New version, sent by Peter Deutsch.
409         * aclocal.m4 (fp_C_PROTOTYPES): Substitute empty or ansi2knr for
410         ANSI2KNR, depending on the fact the compiler is ANSI or not.
411         * src/Makefile.in: Use -Ovarargs=convert on ansi2knr calls.
412         Remove the sed filter after ansi2knr for debug.c.  Use $O instead
413         of $U, put underline in extensions rather than in basenames.  Use
414         implicit rules, now that regularity makes this possible.
415         Have $(OBJECTS) depend on $(ANSI2KNR), so to trigger compilation
416         of ansi2knr whenever it is needed.
417         * configure.in: Adjusted for correct STACKOVF substitution.
418         * src/debug.c (trace_format): When not __STDC__, use (...) as a
419         parameter list, so ansi2knr will convert it to (va_alist) va_dcl.
420         Reported by David MacKenzie.
422         * Makefile.in: Remove binprefix.  Use transform_name instead.
423         Reported by David MacKenzie.
425         * doc/Makefile.in: Create version.texi, use it, clean it.
426         Reported by Jim Meyering.
428 Fri Oct 28 20:33:55 1994  Francois Pinard  (pinard@icule)
430         * Makefile.in (all, install, uninstall): Depend on Makefile.
432         * Makefile.in: For actions invoking $(MAKE) from within compound
433         sh statements, exit non-zero if the sub-make fails.  Otherwise,
434         the top-level make may exit successfully when it should fail.
435         Reported by Jim Kingdon.
437         * {,/*}Makefile.in: Use && after all cd, in case they fail.
439         * {,*/}Makefile.in: Declare PRODUCT and VERSION macros.
440         (dist): Use PRODUCT and VERSION instead of tricks on .fname.
441         * configure.in: Substitute PRODUCT and VERSION.
443         * {,*/}Makefile.in (dist): Always try a hard link before a copy.
445 Thu Oct 27 22:32:58 1994  Francois Pinard  (pinard@icule)
447         * Makefile.in (mostlyclean-local): Do not remove *~.
448         * */Makefile.in (mostlyclean): Idem.
449         Reported by Robert E. Brown and Richard Stallman.
451 Sun Oct  9 08:30:13 1994  Francois Pinard  (pinard@icule)
453         * src/m4.h: Get rid of CONFIG_BROKETS.
455 Sun Oct  2 16:48:10 1994  Francois Pinard  (pinard@icule)
457         * configure.in: Use AC_ARG_PROGRAM.
458         * aclocal.m4 (fp_C_PROTOTYPES): Substitute @kr@ by kr or empty.
459         Reported by David MacKenzie.
461 Sat Oct  1 11:22:42 1994  Francois Pinard  (pinard@icule)
463         * configure.in: Do not add -O to CFLAGS for GNU C, now that
464         configure does it automatically.
465         Reported by Jim Meyering.
467 Fri Sep 23 08:16:58 1994  Francois Pinard  (pinard@icule)
469         * src/stackovf.c: Declare the handler_t typedef earlier in the
470         code, use it for stackovf_handler.
471         (setup_stackovf_trap): Use RETSIGTYPE instead of void while
472         casting sigsegv_handler.
473         Reported by Robert Bernstein.
475         * src/m4.c (main): Initialize program_name to argv[0] without
476         basename'ing it.
477         Reported by Karl Berry.
479 Sun Sep 18 11:42:50 1994  Francois Pinard  (pinard@icule)
481         * src/Makefile.in (TAGS): Include a ../lib/TAGS reference.
482         Reported by Karl Berry.
484 Wed Sep 14 10:00:22 1994  Francois Pinard  (pinard@icule)
486         * lib/Makefile.in (mostlyclean): Added.
487         (TAGS): Make in $(srcdir).
489         * configure.in: Use `choke me' in test, like everywhere!
491         * {doc,examples,lib,src}/Makefile.in (check): Deleted, as
492         unreacheable and useless.
494         * doc/Makefile.in (texclean): Deleted, merged in mostlyclean.
496         * lib/Makefile.in (DISTFILES): Distribute TAGS.
497         (distclean): Do not remove TAGS.
498         (realclean): Remove it.
499         * Makefile.in: Make TAGS in lib also, not just in src.
500         Reported by Karl Berry.
502         * Makefile.in (distclean, realclean): Instead of recursively
503         calling $(MAKE) for the -local part, allow parallel execution of
504         -recursive and -local, only delay the removal of config.status,
505         which is repeated in both goals.
507 Tue Sep 13 19:21:05 1994  Francois Pinard  (pinard@icule)
509         * Release 1.3.
511         * Makefile.in: Group all *clean-recursive goals in one, using sed
512         to remove `-recursive' while calling make recursively.  Also, use
513         a subshell for each recursive $(MAKE).
514         Reported by Jim Meyering.
516         * src/m4.h (memcpy): Define with bcopy for BSD systems.
517         Reported by Kaveh R. Ghazi.
519         * src/Makefile.in (ansi2knr): Use $(LIBS) while linking, for SunOS
520         4.1.3 requires -ldl to link even ansik2nr, and we need a way to
521         specify it.
523         * configure.in: Use date instead of touch for stamp-h.
524         * Makefile.in (stamp-h.in): Idem.
526         * Makefile.in (distclean, realclean): Force serial execution of
527         both goals, in case parallel makes are being used.
528         Reported by Jim Meyering.
530         * src/Makefile.in (DISTFILES): Distribute TAGS.
531         (distclean): Do not remove TAGS.
532         (realclean): Remove it.
533         Reported by Karl Berry.
535 Sat Sep 10 12:34:04 1994  Francois Pinard  (pinard@icule)
537         * configure.in: Use fp_ to match aclocal.m4.  Revert _OS_ macros
538         to old names, for following Autoconf.
540 Thu Sep  8 15:07:27 1994  Francois Pinard  (pinard@icule)
542         * Makefile.in (MDEFINES): Remove INSTALL substitutions, for
543         ./install.sh will not be correctly referred to in sub-Makefiles.
544         Reported by John David Anglin.
546         * doc/Makefile.in (texclean): Remove *.cps and *.fns too.
547         Reported by Eric Backus.
549         * Makefile.in, checks/Makefile.in, doc/Makefile.in,
550         examples/Makefile.in, lib/Makefile.in, src/Makefile.in: Limit
551         config.status into remaking this directory's Makefile only.
552         * Makefile.in (stamp-h): Do not check nor touch stamp-h.
553         * configure.in (AC_OUTPUT): Touch stamp-h if CONFIG_HEADERS.
554         Reported by Jim Meyering.
556 Tue Sep  6 12:07:33 1994  Francois Pinard  (pinard@icule)
558         * configure.in: Correct stack overflow detection logic, taking
559         care of systems having only incomplete implementations (like for
560         Pyramid 9820 OSx 5.0d).
561         Reported by Kaveh R. Ghazi.
563         * src/Makefile.in (TAGS): Remote -t from etags call.
565 Fri Sep  2 10:37:10 1994  Francois Pinard  (pinard@icule)
567         * lib/Makefile.in (install): Depend on all.
569 Wed Aug 31 11:17:21 1994  Francois Pinard  (pinard@icule)
571         * examples/Makefile.in (mostlyclean): Do not depend on texclean.
572         Reported by Jim Meyering and John David Anglin.
574         * Makefile.in (distclean-local): Delete config.log.
575         Reported by Jim Meyering.
577         Solidify frozen files with respect to -P:
578         * src/m4.c: Have -P set prefix_all_buitins variable instead of
579         calling a function by that name.  Declare the variable.
580         * src/m4.h: Adjust declaration for prefix_all_buitins.
581         * src/builtin.c (builtin_init): Merge in functionality from
582         previous prefix_all_buitins function, while making entries in the
583         symbol table, but not modifying the builtin description itself.
585         * src/freeze.c (reload_frozen_state): Add a useless `break;',
586         because *many* compilers do not accept an empty `default:'.
587         Reported by Akiko Matsushita, Eric Backus, John David Anglin,
588         Joseph E. Sacco, Kaveh R. Ghazi, Tom McConnell and Ulrich Drepper.
590         * configure.in: Use AC_TYPE_SIGNAL.
591         * src/stackovf.c (setup_stackovf_trap): Use RETSIGTYPE.
592         Reported by Robert Bernstein.
594         * checks/Makefile.in (check): Modify PATH so check-them will find
595         m4 in the src directory.
596         * Makefile.in (check): Don't.
597         Reported by Akiko Matsushita and Jim Meyering.
599         * src/output.c (make_room_for, output_character_helper): New
600         functions, for implementing a global MAXIMUM_TOTAL_SIZE instead of
601         a per buffer MAXIMUM_BUFFER_SIZE.
603         * src/output.c (output_text): New function, for optimizing the
604         output of strings of characters.  Use it.
606 Tue Aug 30 01:44:29 1994  Francois Pinard  (pinard@icule)
608         * doc, src: New directories reorganizing the distribution.
609         * doc/Makefile.in, src/Makefile.in, examples/Makefile.in: New
610         files.
611         * Makefile.in: Adjusted.
612         * configure.in: Configure new Makefiles.
614         * m4.h: Declare STRING typedef.  Use it for comment and quote
615         strings, adjusting all references.  (This is the rudiments of a
616         beginning for the eventual withdrawal of NUL terminated strings.)
617         * output.c (shipout_text): Accept a length parameter, and use it.
618         All callers adjusted.
620 Mon Aug 29 12:27:19 1994  Francois Pinard  (pinard@icule)
622         * m4.h: Include <unistd.h> if it exists.
623         * stackovf.c: Don't.
625         Clean up for current_diversion variable:
626         * output.c: Move current_diversion from builtin.c.
627         * m4.h: Declare current_diversion so builtin.c can access it.
628         * output.c (output_init, make_diversion): Initialize or update
629         current_diversion.
630         * builtin.c (builtin_init, m4_divert): Leave current_diversion
631         alone.
633         Remove limit on number of diversions:
634         * output.c: Replace ndiversion by diversions, declare it.
635         (output_init): Allocate only diversion 0.
636         (make_diversion): Allocate new diversions as needed.
637         * m4.h, m4.c: Remove NDIVERSIONS and ndiversion related stuff.
638         * m4.c: Still accept -N, but do nothing with it.
639         Reported by David MacKenzie.
641         Freeze diversions:
642         * output.c (freeze_diversions): New function.
643         * m4.h: Declare freeze_diversions.
644         * freeze.c: Document frozen file format, revise it, call
645         freeze_diversions to add diversions to frozen format, and code to
646         reload them properly.
647         * m4.c: Do not undivert automatically at end when status being
648         frozen.  Do not call builtin_init when reloading frozen state.
650         Speed up diversion processing:
651         * output.c: Add INITIAL_BUFFER_SIZE, MAXIMUM_BUFFER_SIZE,
652         COPY_BUFFER_SIZE, in-memory diversion buffers, struct diversion
653         structure and variables, cached variables out of output_diversion,
654         reallocate_diversion_for and OUTPUT_CHARACTER.
655         (shipout_text, make_diversion, insert_diversion): Adapted to new
656         structures.
657         (insert_file): Use better buffering.
658         Reported by David MacKenzie.
660 Sun Aug 28 05:20:02 1994  Francois Pinard  (pinard@icule)
662         * Makefile.in, lib/Makefile.in, checks/Makefile.in: Arrange so
663         dist works from another build directory.
665 Sat Aug 27 14:32:45 1994  Francois Pinard  (pinard@icule)
667         * symtab.c (hack_all_symbols): Use hash_table_size instead of
668         constant HASHMAX, for -H option to work better.
670         * builtin.c (DECLARE): Simplify by using _ ().
672         * freeze.c: New file.
673         * Makefile.in: Compile it, distribute it.
674         * m4.c: Recognize, document and process --freeze-state (-F) and
675         --reload-state (-R) options.  Pass a true flag to builtin_init
676         only if no reloading some state.
677         * builtin.c (define_builtin): Remove static specifier.
678         (find_builtin_by_name): Remove static specifier.
679         (builtin_init): Accept and obey a flag argument.
680         * m4.h: Add declarations for freeze.c, changes for builtin.c.
682 Wed Aug 24 16:14:19 1994  Francois Pinard  (pinard@icule)
684         * builtin.c (dumpdef_cmp): Rewrite so the cast protect the const
685         specifier.
687         * configure.in: Implement --with-dmalloc.
688         * acconfig.h: Document WITH_DMALLOC.
689         * m4.h: Add code for when WITH_DMALLOC.
691 Mon Aug 15 12:38:05 1994  Francois Pinard  (pinard@icule)
693         * m4.c (long_options): Use "error-output", the dash was missing.
694         Reported by Akiko Matsushita.
696 Fri Aug 12 16:38:01 1994  Francois Pinard  (pinard@icule)
698         * m4.h: Include <sys/types.h>.
699         * builtin.c, debug.c, m4.c, output.c, stackovf.c: Don't.
700         * m4.h: Declare len_lquote and len_rquote as size_t, not int.
701         int.
702         * input.c: Declare len_lquote, len_rquote, len_bcomm and len_ecomm
703         as size_t, not int.
704         * builtin.c (dump_args): Declare len as size_t, not int.
706         * debug.c: Prototype the forward declaration of debug_set_file.
708         * builtin.c (m4_undivert):  Replace div by file, for avoiding the
709         shadowing of this variable.
710         * output.c (insert_diversion): Idem.
712         * input.c: Delete def_rquote, def_lquote, def_bcomm and def_ecomm.
713         (input_init): Duplicate default quote and comment strings.
714         (set_quotes): Free previous quote strings in all cases.  Duplicate
715         even default quote strings.
716         (set_comment): Free previous comment strings in all cases.
717         Duplicate even default comment strings.
719         * configure.in: Updated for Autoconf 2.0.
720         * Makefile.in (distclean-local): Also delete config.cache.
722         * m4.c (usage): Reorganize the --help output by topic.  Include a
723         description for debugging flags.
725 Fri Jul 29 10:15:52 1994  Francois Pinard  (pinard@icule)
727         * configure.in: If sigaction is available and SA_ONSTACK defined,
728         use sigaction.  Otherwise, if sigvec is available and SV_ONSTACK
729         defined, use sigvec.  Else don't compile stackovf.c.
730         * stackovf.c (setup_stackovf_trap): Idem.
731         Reported by Jim Avera, Karl Berry, Kaveh R. Ghazi, Matthias Rabe
732         and Simon Leinen.
734 Thu Jul 21 22:43:17 1994  Francois Pinard  (pinard@icule)
736         * m4.c (usage): Replace printf par fputs.
738 Mon Jul 18 23:48:23 1994  Francois Pinard  (pinard@icule)
740         * Release 1.2
742 Sun Jul 17 08:08:25 1994  Francois Pinard  (pinard@icule)
744         * configure.in: Check for sigaction and sigvec.  Add a new delayed
745         check for RLIMIT_STACK, combine in the checking for getrlimit.
746         All those things are not universally available.
747         * stackovf.c: Split setting up the trap handler and catching
748         signals, for better taking care of various configure outcomes.
749         * examples/stackovf.sh: Correct a typo.
750         Reported by Eric Backus, Jim Avera and Jim Meyering.
752 Sat Jul 16 20:36:19 1994  Francois Pinard  (pinard@icule)
754         * ansi2knr.c: New version sent by its author, Peter Deutsch.
756 Fri Jul 15 14:36:21 1994  Francois Pinard  (pinard@icule)
758         * Makefile.in: Modify so parallel make will not try making
759         lib/libm4.a twice simultaneously.
760         Reported by Jim Meyering.
762 Thu Jul 14 17:23:17 1994  Francois Pinard  (pinard@icule)
764         * stackovf.c (setup_stackovf_trap): Replace "Don't" by "Do not" in
765         error message, for when no code possibility exists.  Even if this
766         line is completely #ifdef'ed out, it brings a syntax error.
767         Reported by Andreas Schwab, Jim Meyering and Joseph E. Sacco.
769         * Makefile.in (install): Have install depend on all too, for lib
770         to be remade as needed.
772         * examples/stackovf.sh: Try ksh, bsh and bash for shells
773         providing ulimit, instead of using only ksh.
774         Reported by Jim Avera and Joseph E. Sacco.
776 Tue Jul 12 06:54:31 1994  Francois Pinard  (pinard@icule)
778         * Makefile.in (check): Have it depend on all instead of m4.  In
779         this way, a change in lib will be detected and processed.
781         * builtin.c (numeric_arg): Use strtol and verify the conversion,
782         instead of using sscanf which stops as soon as there is a
783         non-digit in the input.  Previously, incr(1xyzzy), eval(1,2xyzzy)
784         and divert(1xyzzy) were all accepted without any warning or error
785         messages.
786         * m4.h: Declare strtol as long if not including stdlib.h.
787         * configure.in: Check for limits.h, and replace strtol if missing.
788         * lib/Makefile.in: Substitute LIBOBJS.  Distribute strtol.c.
789         * lib/strtol.c: New file, from elsewhere.
790         Reported by Andreas Schwab.
792 Thu Jul  7 22:38:10 1994  Francois Pinard  (pinard@icule)
794         * macro.c (expand_macro): Cast value to (boolean) prior to
795         assigning it to traced.
796         Reported by Tom McConnell.
798         * Makefile.in (m4): Always make all in lib first.
799         Reported by Jim Meyering.
801 Wed Jul  6 13:16:31 1994  Jim Avera (jima@netcom.com)
803         * stackovf.c: Isolated OS-dependent sections; Improved portability,
804         adding support for SunOS/BSD (sigvec, sigstack, and 4-parameter signal
805         handlers), and a default error message if the fault address is not
806         available (when neither siginfo.h nor BSD sigcontext are supported).
807         * configure.in: Changes for stackovf.h: Check for sigcontext,
808         sigaction, sigstack, and define rlim_t as int if necessary.
809         * acconfig.h: Added HAVE_SIGCONTEXT and rlim_t.
810         * examples/stackovf.sh: Run m4 -L99999999 to allow stack overflow.
811         * ansi2knr.c: Fix for func-ptr args; convert "..." to varargs syntax.
813 Tue Jul  5 19:13:54 1994  Francois Pinard  (pinard@icule)
815         * configure.in: Use AC_SET_MAKE.
816         * Makefile.in: Use @SET_MAKE@.
817         Reported by Jim Meyering.
819         * checks/check-them: Do not trap on SIGQUIT or SIGALRM.
820         Reported by Ian Taylor.
822 Sat Jul  2 00:58:47 1994  Francois Pinard  (pinard@icule)
824         * configure.in: Remove dependency of USE_STACKOVF on STDC_HEADERS,
825         because siginfo.h is unrelated to standard headers, and siginfo.h
826         is already checked for.
827         Reported by Joseph E. Sacco.
829         * acconfig.h, aclocal.m4, m4.h: Replace HAVE_PROTOTYPES by
830         PROTOTYPES.
831         * aclocal.m4, configure.in: Replace AC_HAVE_PROTOTYPES by
832         AC_PROTOTYPES.
834 Wed Jun 29 22:41:53 1994  Francois Pinard  (pinard@icule)
836         * builtin.c (substitute): Use \& to represent this part of the
837         string which was matched by the whole regexp, instead of
838         representing the whole string.  Any usage of \0 issues a warning
839         and acts like \&, it will disappear in some subsequent release.
841 Mon Jun 27 14:24:23 1994  Francois Pinard  (pinard@icule)
843         * m4.c: Complete prototype for forwarded declaration of usage.
845         * input.c (init_macro_token): Correct own reference in error
846         message.  Previous name get_macro_func was referred to instead.
847         (next_char):  Correct own reference in error message.  Previous
848         name advance_input was referred to instead.
850         * m4.h: Declare eval_t and unsigned_eval_t typedefs to 32 bits.
851         * eval.c (logical_or_term, logical_and_term, or_term, xor_term,
852         and_term, not_term, logical_not_term, cmp_term, shift_term,
853         add_term, mult_term, exp_term, unary_term, simple_term): Add
854         prototype to forwarded declarations.  Declare parameter v1 as
855         eval_t * instead of int *.  Same for local variable v2 in dyadic
856         functions.  Same for result in exp_term.
857         * builtin.c (m4_eval): Declare value as eval_t instead of int.
858         (ntoa): Declare value as eval_t instead of int.  Declare uvalue as
859         unsigned_eval_t instead of unsigned int.  Change casts accordingly.
860         (shipout_int): Cast first argument of ntoa to eval_t.
861         Reported by Thorsten Ohl.
863         * macro.c: Complete the prototypes of forwarded expand_macro and
864         expand_token.
865         Reported by Thorsten Ohl.
867         * m4.h: Define voidstar as void * or char * depending on __STDC__.
868         The Ultrix 3.1 compiler cannot do much with void pointers.
870         * builtin.c (dumpdef_cmp): Replace void * by voidstar.
871         * m4.c (xfree):  Replace void * by voidstar.
872         Reported by Tom McConnell.
874         * ansi2knr.1: New, from elsewhere.
875         * Makefile.in (DISTFILES): Distribute ansi2knr.1
877         * Makefile.in (stamp-h.in): Avoid running ./config.status if
878         stamp-h does not exist yet.  This avoids running it a second time
879         just after the initial ./configure.
880         Reported by David MacKenzie and Tom McConnell.
882         * m4.h: Replace the enum debug_info declaration with a series of
883         #define's.  The Ultrix 3.1 compiler would otherwise need casting
884         (int) to most references, when used in expressions.
885         Reported by Tom McConnell.
887 Sat Jun 25 00:10:05 1994  Francois Pinard  (pinard@icule)
889         * aclocal.m4: Replace FP_PROTOTYPES by AC_HAVE_PROTOTYPES,
890         following an idea from Brook G. Milligan.  AC_HAVE_PROTOTYPES
891         calls the compiler.  Previously, FP_PROTOTYPES was only calling
892         the preprocessor; by not being subject to CFLAGS, this was
893         discouraging those flags asking for ANSI compilation.
894         * acconfig.h: Document HAVE_PROTOTYPES.
895         * configure.in: Use AC_HAVE_PROTOTYPES instead of FP_PROTOTYPES.
896         * m4.h: Define _() according to HAVE_PROTOTYPES, not __STDC__.
897         Reported by Eric Backus.
899         * configure.in: Substitute CFLAGS and LDFLAGS, taking their value
900         from the environment.  Default CFLAGS to -g if not set.
901         * Makefile.in: Have CFLAGS and LDFLAGS substituted from configure.
902         * lib/Makefile.in: Have CFLAGS substituted from configure.
903         Reported by Eric Backus and Tom McConnell.
905         * configure.in: m4_undefine changeword before using AC_ENABLE.
907         * m4.h: Declare prototypes for error (for ANSI compilers only),
908         prefix_all_builtins and reference_error.
909         Reported by Tom McConnell.
911         * input.c (set_word_regexp): Do not try to initialize the array
912         test from a string, this does not work with non-ANSI compilers.
913         Reported by Eric Backus.
915         * Makefile.in (dist): Clean examples/ before saving it.
916         (distclean-local): Also remove stamp-h.
917         Reported by Eric Backus.
919         * Makefile.in (_stackovf.c): Goal for compiling stacokovf.c with
920         non ANSI compilers.
921         Reported by Tom McConnell.
923         * checks/Makefile.in (clean): Depends on mostlyclean.
924         (mostlyclean): New goal.
926 Fri Jun 24 23:30:31 1994  Francois Pinard  (pinard@icule)
928         * Makefile.in (DISTFILES): Distribute install.sh.
929         * install.sh: New file, copied from elsewhere.
930         Reported by Assar Westerlund and Kaveh R. Ghazi.
932 Thu Jun 23 00:00:30 1994  Francois Pinard  (pinard@icule)
934         * configure.in: Define ENABLE_CHANGEWORD if --enable-changeword.
935         * acconfig.h: Explain ENABLE_CHANGEWORD.
937         [These modifs all depend upon ENABLE_CHANGEWORD and are adapted
938         from code provided by Pete Chown]
939         * m4.h: Add original_text field to u_t variant of union u.
940         Declare TOKEN_DATA_FUNC macro.
941         * builtin.c: Declare changeword.
942         (m4_changeword): New function.
943         * input.c: Include "regex.h", define variables with word regexps.
944         (input_init): Initialize the word regexp.
945         (set_word_regexp): New.
946         (next_token): Declare local variables, use the previous code if
947         default_word_regexp is true.  Else, match using a new code.  Save
948         the original text.
949         * macro.c (expand_token): Ship out original text if not a macro
950         name.
951         Reported by Krste Asanovic and Pete Chown.
953         [These modifs all depend upon ENABLE_CHANGEWORD]
954         * m4.h: Declare external user_word_regexp.
955         * m4.c: Declare user_word_regexp, and initialize it from
956         --word-regexp or -W, or NULL if not specified.
957         * input.c: Use user_word_regexp if specified, instead of
958         DEFAULT_WORD_REGEXP.
960         * Makefile.in (m4): Revert Jan 3 1994 change.  I'm unable to
961         agree with it.
963         * Makefile.in, lib/Makefile.in: Limit suffixes to .c and .o.
964         * checks/Makefile.in: Empty the suffix list.
965         Reported by Geoff Russell, Joel Sherrill and Roland McGrath.
967         * m4.c: Declare nesting_limit and initialize it to 250.
968         Implement -LNUMBER or --nesting-limit=NUMBER to change its
969         value.
970         * m4.h: Declare nesting_limit as external.
971         * macro.c (expand_macro): Stop execution whenever nesting limit
972         is exceeded.
973         Reported by Bengt Mertensson.
975         * eval.c (evaluate): Diagnose excess characters in eval input.
976         Things like `eval(08)' used to return 0 with no diagnostic.
978         * m4.h: Capitalize first letter of all macro arguments in
979         definitions.
981         * m4.c: Declare warning_status, initialize it to 0.  Add new
982         option -E, or --fatal-warnings, which sets warning_status to
983         EXIT_FAILURE instead.
984         * m4.h: Declare external warning_status.  Define EXIT_SUCCESS and
985         EXIT_FAILURE if not otherwise done by header files.
986         * m4.c: Delete declarations for EXIT_SUCCESS and EXIT_FAILURE.
987         * m4.c, input.c, output.c, symtab.c, builtin.c, macro.c, debug.c,
988         eval.c: Replace 0 by warning_status and 1 by EXIT_FAILURE in first
989         argument of all M4ERROR calls.
990         Reported by Noah Friedman.
992         * examples/incl-test.m4: Renamed from incl_test.m4.
993         * examples/include.m4: Include incl-test.m4 instead of
994         incl_test.m4.
995         * examples/multiquotes.m4: Renamed from multi-quotes.m.
997 Wed Jun 22 21:58:54 1994  Francois Pinard  (pinard@icule)
999         * configure.in: Avoid USE_STACKOVF if <siginfo.h> not found.  Note
1000         that Jim developped stackovf.c on a 486 running SVR4.0 (ESIX), and
1001         also tested it on a Sun Sparc workstation running SunOS 4.x.
1003         * format.c (format): When not HAVE_EFGCVT, m4 was failing the
1004         49.format check, abusing a `union values' argument with sprintf
1005         without selecting the proper field.  Now, save the formatting type
1006         first, delaying the fetch of the corresponding argument.
1007         Reported by Joseph E. Sacco and Tom Quinn.
1009         * format.c (format): Remove const from char *fmt declaration when
1010         not HAVE_EFGCVT, because a NUL may be forced into it.
1012         * m4.h: Declare atof() when not STDC_HEADERS.
1013         Reported by Joseph E. Sacco.
1015         * Regenerate configure using Autoconf 1.11, this corrects a
1016         problem about an incorrect cpp seting on NeXT 3.1.
1017         Reported by Alexander Lehmann.
1019 Sun Jun  5 16:25:19 1994  Francois Pinard  (pinard@icule)
1021         * m4.h (_): Change argument from `x' to `Args'.
1023 Wed May  4 23:59:39 1994  Francois Pinard  (pinard@icule)
1025         * Makefile.in: Remove all occurrences of $(MFLAGS), which were
1026         bringing more evil than good on a few systems.
1027         Reported by Greg A. Woods.
1029 Fri Apr 22 15:59:35 1994  Francois Pinard  (pinard@icule)
1031         * m4.h: Rename Args() to _().
1032         * m4.h: Remove extern specifier from all function declarations.
1034 Fri Apr 22 15:51:21 1994  Jim Avera (jima@netcom.com)
1036         * stackovf.c: New file implementing stack-overflow detection.
1037         * configure.in: Check for getrlimit, sigaction.  If all of
1038         standard headers, getrlimit and sigaction, define USE_STACKOVF and
1039         substitute ${U}stackovf.o for STACKOVF.
1040         * acconfig.h: Declare USE_STACKOVF.
1041         * Makefile.in: Distribute stackovf.c, link with $(STACKOVF).
1042         * m4.h: Declare setup_stackovf_trap().
1043         * m4.c: Call setup_stackovf_trap().
1044         * tests/stackovf_test.sh: New file.
1046 Wed Apr 13 14:10:30 1994  Francois Pinard  (pinard@icule)
1048         * checks/Makefile.in: Rename .all-stamp to stamp-checks.
1050         * Makefile.in (Makefile, etc.): Adapt for Autoconf 1.8.
1052 Sun Jan 30 14:24:19 1994    (pinard at icule)
1054         * m4.h: Remove definition of volatile, not used anymore.
1055         Reported by Jim Meyering and Joseph E. Sacco.
1057         * m4.h: Consistently use `do { ... } while (0)' in macros, instead
1058         of `if ... else /* nothing */' for if macros.
1059         Reported by Jim Meyering.
1061         * builtin.c (m4_regexp): Reorganize the code for avoiding a
1062         warning from gcc about `repl' possibly used before defined.
1063         Reported by Jim Meyering.
1065         * m4.h: Avoid a pre-ANSI <memory.h> together with <string.h>.
1066         Reported by Jim Meyering.
1068 Tue Jan 25 18:39:37 1994  Francois Pinard  (pinard at icule)
1070         * m4.h: Move the conditional definition of volatile after the
1071         inclusion of system files, because they may define it first.
1073 Tue Jan  4 19:46:50 1994  Francois Pinard  (pinard@icule)
1075         * checks/Makefile.in (CHECKS): Add a useless `*' before `[', to
1076         get around a problem with Alpha make seeing a syntax error, there.
1077         Reported by Vern Paxson.
1079 Mon Jan  3 00:21:45 1994  Francois Pinard  (pinard@icule)
1081         * Makefile.in: Do not define LDFLAGS, use CFLAGS on link calls.
1082         Reported by Richard Stallman.
1084 Sat Dec 25 08:06:05 1993  Francois Pinard  (pinard@icule)
1086         * configure.in: Correct test for strerror, AC_FUNC_CHECK was used
1087         instead of AC_HAVE_FUNCS.
1088         Reported by Noah Friedman.
1090 Wed Dec  1 09:37:53 1993  Francois Pinard  (pinard@icule)
1092         * m4.c: Initialize show_help and show_version to zero.
1094         * m4.c: Ensure EXIT_SUCCESS and EXIT_FAILURE are defined.
1095         Use them in exit() and usage() calls.
1097 Sat Nov 27 10:43:24 1993  Francois Pinard  (pinard@icule)
1099         * m4.h: Delete extern sys_nerr, sys_errlist declarations, and
1100         syserr() macro.  Delete errref, add reference_error and M4ERROR.
1101         * m4.c: Replace errref, which was returning an input reference
1102         string, with reference_error, which prints it on standard error.
1103         * builtin.c, output.c: Use errno as second parameter to error,
1104         instead of using syserr() with %s.
1105         * *.c: Use M4ERROR instead of error: no more errref() with %s.
1106         Doing so, the program name appears after the input reference
1107         instead of before, which eases M-x next-error processing.
1109 Wed Nov 24 22:16:15 1993  Francois Pinard  (pinard@icule)
1111         * checks/get-them: Escape braces with backslashes in patterns,
1112         because HPUX-9.01 awk needs this.
1113         Reported by Jim Meyering.
1115 Mon Nov 22 10:55:52 1993  Francois Pinard  (pinard@icule)
1117         * builtin.c: Declare "FILE *popen ();".
1119         * m4.h: Remove MESSAGE{,1,2}, WARNING1, FATAL{,1}, INTERNAL_ERROR
1120         macros, replace error_message_prefix() declaration by errref()'s.
1121         Declare xrealloc, for use in errref().
1122         * m4.c: Delete error_message_prefix() function, add errref().
1123         * *.c: Use error() systematically in place of all error macros,
1124         now that error() flushes stdout first.  Make needed adjustments.
1126         * m4.h: Remove const in sys_errlist[] declaration, it creates
1127         conflicts on SGI and Alpha.
1128         Reported by Kaveh R. Ghazi.
1130 Sat Nov 20 08:26:15 1993  Francois Pinard  (pinard@icule)
1132         * m4.c: Include <getopt.h> instead of "getopt.h".
1134         * configure.in: Output to config.h.  Use HAVE_FUNCS preferably.
1135         * acconfig.h: New, for documenting HAVE_EFGCVT.
1136         * Makefile.in: Distribute acconfig.h, .stamp-h.in and config.h.in,
1137         use them wherever appropriate.  Also use -I. for compilations.
1138         * lib/Makefile.in: Use -I.. for compilations.
1139         * *.c: Include <config.h> or "config.h".
1141         * m4.h: Test for HAVE_MEMORY_H instead of NEED_MEMORY_H.
1142         * configure.in: Use AC_HAVE_HEADERS(memory.h), delete AC_MEMORY_H.
1144 Wed Nov 17 09:34:55 1993  Francois Pinard  (pinard@icule)
1146         * builtin.c (m4_eval): Cast strlen to (int) before comparing.
1148         * input.c (input_init): Initialize quote and comment strings
1149         explicitely instead of calling set_quotes and set_comment: by
1150         doing so, we ensure we do not free uninitialized variables.
1152         * checks/check-them: Reverse arguments to both diff, so the
1153         expected is on the left and the obtained on the right.
1155         * m4.h: Add MESSAGE{,1,2}, WARNING1, FATAL{,1} and INTERNAL_ERROR
1156         macros. Delete declarations for m4error, warning, fatal and
1157         internal_error, add declaration for error_message_prefix.
1158         * m4.c:  Delete m4error, warning, fatal and internal_error
1159         routines, add error_message_prefix routine.
1160         * *.c: Replace m4error routine calls with MESSAGE* macro calls,
1161         warning with WARNING*, fatal with FATAL* and internal_error with
1162         INTERNAL_ERROR*.
1163         * Makefile.in (_m4.c): Do not adjust ansi2knr output for va_alist,
1164         this is not needed anymore.
1166         * m4.h: Declare extern FILE *debug.  Add DEBUG_PRINT{1,3} and
1167         DEBUG_MESSAGE{,1,2} macros.  Delete declarations for debug_print
1168         and debug_message, add declaration for debug_message_prefix.
1169         * debug.c: Remove static specifier for FILE *debug declaration.
1170         Delete debug_print and debug_message routines, add
1171         debug_message_prefix routine.
1172         * builtin.c, debug.c: Replace debug_print routine calls with
1173         DEBUG_PRINT* macro calls.
1174         * input.c, path.c: Replace debug_message routine calls with
1175         DEBUG_MESSAGE* macro calls.
1177         * m4.h: Remove inclusion of <varargs.h>.
1178         * debug.c: Include <stdarg.h> or <varargs.h>.
1179         (trace_format): Use stdarg instead of varargs if __STDC__.
1181         * configure.in: Remove checks for vfprintf and _doprnt.  These
1182         implementations use varargs tricks which are not portable enough.
1183         * lib/vfprintf.c: Deleted.
1184         * lib/_doprnt.c: Deleted.
1185         * lib/Makefile.in: Adjusted accordingly.  Remove LIBOBJS.
1186         Reported by Joel Sherrill.
1188         * path.c (add_include_directory): Use xstrdup.
1190         * builtin.c (find_builtin_by_name): Declare static.
1192         * *.[ch]: Add const to a few "char *" declarations.
1194         * configure.in: Remove commented tests for fileno() and fstat().
1195         * debug.c: Remove comments about HAVE_FILENO and HAVE_FSTAT.
1197         * debug.c (debug_flush_files): New.
1198         * m4.h: Declares it.
1199         * builtin.c (m4_syscmd, m4_esyscmd): Use it.
1200         Reported by Nicolas Pioch.
1202 Fri Nov 12 10:02:26 1993  Francois Pinard  (pinard@icule)
1204         * Makefile.in (m4.dvi): Use m4.texinfo instead of m4.texi.
1205         Reported by Joel Sherrill.
1207         * builtin.c (prefix_all_builtins): Instead of the table size, use
1208         the null entry at end for stopping the loop.  It was overwritten.
1209         Reported by Andreas Schwab and Jim Meyering.
1211         * builtin.c (prefix_all_builtins): Cast xmalloc to (char *).
1212         Reported by Kaveh R. Ghazi.
1214         * macro.c (call_macro): Add * in (*SYMBOL_FUNC (sym)) (...).
1215         Reported by Karl Vogel.
1217 Tue Nov  9 09:31:47 1993  Francois Pinard  (pinard@icule)
1219         * m4.h: Do not define volatile if already defined.
1220         Reported by Rene' Seindal.
1222         * lib/Makefile.in: Add a forgotten ALLOCA=@ALLOCA@.  Grrr!
1224         Reported by Bernhard Daeubler, Eric Backus, Hal Peterson, Hoang
1225         Uong, Ian Taylor, Kaveh R. Ghazi, Tom McConnell and Walter Wong.
1227 Mon Nov  8 21:11:44 1993  Francois Pinard  (pinard@icule)
1229         * m4.h: Define strchr and strrchr in terms of index and rindex,
1230         instead of the other way around.
1231         * builtin.c, m4.c, path.c: Use strchr instead of index.
1233         * input.c (next_char): Remove a "break;" after a "return ...;".
1234         Reported by Tom McConnell.
1236 Mon Nov  8 12:45:34 1993  Francois Pinard  (pinard@icule)
1238         * Release 1.1
1240         * configure.in: Do not copy check files in the build hierarchy.
1241         * checks/check-them: Identify the m4 version being checked.  For
1242         finding m4, look in $PATH instead of in the parent directory.
1243         * Makefile.in (check): Prepend `pwd` to $PATH before checking.
1244         * checks/Makefile.in (.all-stamp): Always create check files in
1245         the source hierarchy, not anymore in the build hierarchy.
1246         (check): cd to the source hierarchy before performing checks.
1247         Do not copy nor clean COPYING anymore, take it from `..'.
1248         Reported by Tom McConnell.
1250         * Makefile.in (Makefile): Use $(SHELL).
1251         (config.status): Use $(SHELL).  Use "config.status --recheck"
1252         instead of "configure --no-create", which is obsolete.
1253         Reported by Tom McConnell.
1255 Fri Nov  5 09:49:30 1993  Francois Pinard  (pinard@compy.IRO.UMontreal.CA)
1257         * m4.c (usage): Use "%s" instead of "m4" in format string.
1258         Reported by Jim Meyering.
1260         * Makefile.in: Distribute mkinstalldirs.
1261         Reported by Pierre Gaumond.
1262         Reported by Jim Meyering.
1263         Reported by Tom McConnell.
1264         Reported by Andreas Gustafsson.
1266         * checks/check-them: Renamed from checks/check_them.
1267         * checks/get-them: Renamed from checks/get_them.
1268         * checks/.all-stamp: Renamed from checks/.all_stamp.
1269         * checks/Makefile.in: Changed accordingly.
1270         Reported by Jim Meyering.
1272 Thu Nov  4 13:50:52 1993  Francois Pinard  (pinard@lagrande.IRO.UMontreal.CA)
1274         * lib/Makefile.in (dist): Correct permissions on files.
1276         * output.c: Declare tmpfile, some systems don't.
1278 Wed Nov  3 09:09:16 1993  Francois Pinard  (pinard@icule)
1280         * checks/Makefile.in (dist): Correct permissions on files.
1282         * Makefile.in (dist): Ensure recursive linking for subdirectory
1283         `examples', also set read/write permissions on all its files.
1285         * mkinstalldirs: New, from elsewhere.
1286         * Makefile.in: Use it.
1288         * debug.c: Synchronize debug messages and regular output when
1289         the debug file and stdout are redirected to the same file.
1290         * configure.in: Add (commented) checks for fileno and fstat.
1291         Reported by Jim Avera.
1293         * builtin.c (m4_ifelse): Diagnose excess arguments if 5, 8, 11,
1294         etc., arguments, then ignore the superfluous one.  m4 used to
1295         diagnose missing arguments and return the empty string.
1296         Reported by Nick S. Kanakakorn.
1298 Tue Nov  2 00:55:41 1993  Francois Pinard  (pinard@icule)
1300         * m4.c (main): At end of all input, ensure all undiverted text
1301         goes to the main output stream.
1302         Reported by Andreas Gustafsson.
1304         * m4.c (main): exit (0), instead of return 0.
1306         * m4.c: Implement -P and --prefix-builtins.
1307         * builtin.c: Delete const specifier on builtin_tab.
1308         (prefix_all_builtins): New.
1309         Reported by Noah Friedman.
1310         Reported by Scott Bartram.
1312         * c-boxes.el: New, from elsewhere.
1313         * Makefile.in: Distribute it.
1315         * m4.h: Do not define bcopy if <string.h> defines it.
1316         Reported by Stephen Perkins.
1318         * builtin.c (define_macro): Allow a missing second argument, in
1319         which case it is implied empty.  Affects define and pushdef.
1320         Reported by Eric Allman.
1322 Mon Nov  1 07:45:24 1993  Francois Pinard  (pinard@icule)
1324         * m4.h: Add blind_if_no_args in struct builtin, blind_no_args in
1325         struct symbol adn SYMBOL_BLIND_NO_ARGS macro.
1326         * builtin.c: Initialize all the blindness fields in builtin_tab.
1327         (define_builtin): Copy the blindness of a builtin into its symbol.
1328         * macro.c (expand_token): Avoid processing a blind builtin if the
1329         next character is not an opening parenthesis.
1330         Reported by David MacKenzie.
1331         Reported by Noah Friedman.
1333         * configure.in: Ensure an exit status of 0 on completion.
1334         Reported by Vivek P. Singhal.
1336         * eval.c (eval_lex): Admit both lower and upper case letters for
1337         bases greater than 10.  Only lower case letters were accepted.
1339         * eval.c (eval_lex): Recognize 0bDIGITS and 0rRADIX:DIGITS syntax.
1340         Reported by Krste Asanovic.
1342         * eval.c:  Rename NOT to LNOT.  Add XOR, NOT, LSHIFT and RSHIFT.
1343         * eval.c (logical_not_term): New name for not_term.
1344         * eval.c (xor_term): New, between or_term and and_term.
1345         * eval.c (not_term): New, between and_term and logical_not_term.
1346         * eval.c (shift_term): New, between cmp_term and add_term.
1347         Reported by Krste Asanovic: ~, ^, <<, >>.
1348         Reported by Ben A. Mesander: ** vs ^.
1350         * m4.c: Delete xmalloc.c, xrealloc.c, xstrdup.c.
1351         * m4.h: Delete xrealloc.c.
1352         * lib/xmalloc.c: New, from elsewhere.
1353         * lib/xstrdup.c: New, from elsewhere.
1354         * lib/Makefile.in: Distribute and compile them.
1356         * m4.c: Change progname to program_name.
1357         * builtin.c, eval.c, m4.c, m4.h: Rename error to m4error.
1358         * lib/error.c: New, from elsewhere.
1359         * lib/Makefile.in: Distribute and compile error.c.
1360         * configure.in: Check AC_VPRINTF and for strerror.
1361         * m4.c: Delete cmd_error.  Use error instead.
1362         * m4.c: Change label capitalisation to "ERROR", "Warning", etc.
1364         * m4.h: Delete #define const, let Autoconf takes care of this.
1366         * m4.c: Remove all code conditionalized by IMPLEMENT_M4OPTS.
1367         Merge parse_args into main.  Declare argv to be `char *const *',
1368         then remove superfluous casts.
1370         * m4.c: Rename --no-gnu-extensions to --traditional.
1371         Reported by Ben A. Mesander.
1373         * m4.c (usage): Add a status parameter.  Supply one in various
1374         calls.  Add --help processing.  Remove -V for --version.
1376         * lib/Makefile.in: Put $(CFLAGS) last in .c.o rule.
1378         * lib/Makefile.in: Have an AR=ar declaration.
1379         Reported by Eric Backus.
1380         Reported by Bjorn R. Bjornsson.
1381         Reported by Tom Tromey.
1382         Reported by Kristine Lund.
1383         Reported by Marion Hakanson.
1385 Sat Oct 30 12:51:47 1993  Francois Pinard  (pinard@icule)
1387         * Makefile.in (m4.info): Use -I$(srcdir) on $(MAKEINFO).
1388         Reported by Noah Friedman.
1390 Mon Oct 25 14:58:48 1993  Francois Pinard  (pinard@icule)
1392         * Makefile.in: Remove MDEFINES and cleanup.
1394 Wed Jun  9 14:59:46 1993  Francois Pinard  (pinard@icule)
1396         * Makefile.in (dist): Replace "echo `pwd`" by a mere "pwd".
1397         Create a gzip file.
1399 Sat Feb  6 14:59:22 1993  Francois Pinard  (pinard@icule)
1401         * Makefile.in, lib/Makefile.in, check/Makefile.in: In dist goals,
1402         ensure 777 mode for directories, so older tar's will restore file
1403         modes properly.
1405 Sun Jan 17 15:38:05 1993  Francois Pinard  (pinard@icule)
1407         * Makefile.in, lib/Makefile.in: Put $(CFLAGS) after $(CPPFLAGS),
1408         so the installer can override automatically configured choices.
1409         Reported by Karl Berry.
1411 Fri Jan 15 16:07:00 1993  Francois Pinard  (pinard@icule)
1413         * lib/vfprintf.c: Stolen from Oleo distribution and adapted.  The
1414         previous version was not working properly on m68k-hp-bsd4.3.
1415         Reported by Roland McGrath.
1417         * lib/_doprnt.c: Stolen from Oleo distribution.
1418         * configure.in: Check for _doprnt.c if vfprintf.c selected.
1419         * lib/Makefile.in: Distribute _doprnt.c.
1420         Do not distribute regex.[ch].old anymore.
1422 Fri Jan  1 19:42:23 1993  Francois Pinard  (pinard at icule)
1424         * Makefile.in, lib/Makefile.in: Reinstate $(CPPFLAGS), use it.
1425         Richard wants it there.
1427 Sun Dec 27 07:01:54 1992  Francois Pinard  (pinard at icule)
1429         * Makefile.in: Add DEFS to MDEFINES.
1430         * lib/Makefile.in (.c.o): Remove $(CPPFLAGS).
1431         (libm4.a): Remove the library before creating it.
1432         (distclean): Remove tags and TAGS too.
1434 Wed Dec 23 12:46:55 1992  Francois Pinard  (pinard at icule)
1436         * Makefile.in (dvi, m4.dvi): New goals.
1438         * builtin.c, eval.c, format.c, input.c, m4.[ch], m4.texinfo,
1439         macro.c, output.c, path.c, symtab.c: Change Copyright from
1440         1989-1992 to the explicit enumeration 1989, 1990, 1991, 1992.
1442         * examples/divert.m4: Deleted, this bug has been corrected.
1444         * Makefile.in (texclean, mostlyclean): New goals.
1446         * Makefile.in (clean): Remove clutter from ansi2knr.
1447         Reported by Pierre Gaumond.
1448         Reported by Greg A. Woods.
1450 Sun Dec 20 10:40:20 1992  Francois Pinard  (pinard at icule)
1452         * Makefile.in: Remove $(CPPFLAGS) from the .c.o rule.  The user
1453         might well use CFLAGS is s/he needs it.
1455         * Makefile.in: Allow installation of info files from a separate
1456         build directory.
1457         Reported by Jason Merrill.
1458         Reported by David MacKenzie.
1459         Reported by Skip Montanaro.
1460         Reported by Erez Zadok.
1461         Reported by Assar Westerlund.
1463 Sat Dec 19 08:21:34 1992  Francois Pinard  (pinard at icule)
1465         * Release 1.0.3
1466         This is still a beta release for the future GNU m4 version 1.1.
1468         * lib/alloca.c: New, from elsewhere.
1469         * lib/Makefile.in: Distribute it.  Define and use $(ALLOCA).
1471         * m4.h: Do not define index/rindex if already defined.  If
1472         FALSE/TRUE are already defined, do not redefine them, but merely
1473         define boolean typedef to int.
1475         * Makefile.in: Use $(DEFS) while compiling ansi2knr.
1476         * ansi2knr.c: Rewrite #ifdef HAVE_STRING_H || STDC_HEADERS,
1477         because some C compilers do not like connectives with #ifdef.
1478         * m4.h: Define `volatile' only if __GNUC__, instead of once for
1479         __GNUC__ and once for __STDC__.
1480         * lib/regex.h: Leave const alone, AC_CONST will take care of it.
1482         * checks/Makefile.in: Use .all_stamp instead of $(CHECKS) for
1483         Makefile dependencies.  Without it, make keeps destroying and
1484         remaking $(CHECKS) in a loop (why?).  Distribute .all_stamp.
1486         * m4.h, m4.c, builtin.c, output.c: Change all divertion/DIVERTION
1487         to diversion/DIVERSION, this was a spelling error.
1489         * m4.c: Declare version[], remove #include "version.h".
1490         * version.h: Deleted.
1491         * Makefile.in: Remove references to version.h.
1493         * output.c (shipout_text): Centralize all `#line NUM ["FILE"]'
1494         production, by using a simpler and more robust algorithm.  This
1495         solves the problem of synclines sometimes written in the middle of
1496         an output line.  Delete sync_line() and output_lines variable.
1497         * m4.h: Remove sync_line prototype and output_lines declaration.
1498         * input.c (next_char), output.c (shipout_text): Remove references
1499         to output_lines.
1500         * input.c (push_file, pop_file): Merely put the value -1 in
1501         output_current_line instead of calling sync_line, for delaying a
1502         single `#line NUM FILE' before next output line.  Do not test
1503         for sync_output, because this is unnecessary clutter.
1504         * output.c (make_divertion, insert_divertion): Idem.
1505         * input.c: Rename must_advance_line to start_of_input_line, for
1506         consistency.
1508         * debug.c (trace_header): Select a new debug line format, which
1509         better complies with GNU standards for formatting error messages.
1510         With option `-dfl', M-x next-error might be used on the output.
1511         * m4.c (vmesg): Adjust format of error output to GNU standards.
1512         * m4.texinfo: Adjust examples for `make check' to work.
1514         * m4.h, builtin.c, debug.c, input.c, macro.c, path.c: Use upper
1515         case for enum debug_info constants, which were all lower case.
1517         * builtin.c (m4_regexp, m4_patsubst): Use re_search instead of
1518         re_search_2.
1519         * lib/regex.[ch]: Use new version from textutils 1.3.6, with some
1520         collected patches.  I tried a few times using newer regex.[ch], it
1521         mysteriously stopped aborting with this one.  Insecure feeling...
1522         * lib/Makefile.in: Distribute regex.[ch].old, just in case!
1524 Fri Dec 18 11:08:03 1992  Francois Pinard  (pinard at icule)
1526         * m4.c: Change `--no-warnings' to `--silent'.
1527         Reported by David MacKenzie.
1529         * m4.c: Put all M4OPTS code upon IMPLEMENT_M4OPTS control, and
1530         leave it off for now.  See comment in m4.c for justification.
1531         Reported by David MacKenzie.
1533         * configure.in: Replace AC_USG by AC_HAVE_HEADERS(string.h).
1534         * m4.h, ansi2knr.c, lib/regex.h: Replace USG by HAVE_STRING_H.
1536         * Makefile.in: Add a new `info' goal.  Use macro MAKEINFO.
1538         * Makefile.in: Ensure recursive cleaning is done before local
1539         cleaning for all clean goals.
1541         * builtin.c (ntoa): Ensure the value is always interpreted as a
1542         signed quantity, whatever the radix is.
1544 Wed Nov 18 07:57:19 1992  Jim Meyering  (meyering@idefix)
1546         * builtin.c, format.c, input.c: Split long lines.
1547         * m4.c: Use typedef macro_definition instead of struct
1548         macro_definition.
1549         * symtab.c: Use typedef symbol instead of struct symbol.
1551 Tue Nov 17 01:58:40 1992  Francois Pinard  (pinard at icule)
1553         * *.[ch]: Remove all trailing whitespace, in code and comments.
1555         * configure.in: Find some awk.
1556         * Makefile.in: Add $(AWK) to MDEFINES.
1557         * checks/Makefile.in: Transmit $(AWK) to get_them.
1558         * checks/get_them: Use $AWK instead of gawk.  Add a close in the
1559         awk script when switching files, because without this, mawk runs
1560         out of file descriptors.
1562 Mon Nov 16 20:42:56 1992  Francois Pinard  (pinard at icule)
1564         * Makefile.in (realclean): Delete m4.info*.
1565         Reported by Jim Meyering.
1567         * Makefile.in: Adjust and link with checks/Makefile.
1568         * checks/Makefile.in: New.
1569         * configure.in: Output checks/Makefile.
1571         * checks/get_them: Have the dnl header of each test more
1572         recognizable by next-error, also use a better message.
1574 Mon Nov 16 07:48:52 1992  Jim Meyering  (meyering@idefix)
1576         * m4.h [__GNUC__]: Use __volatile__ instead of `volatile.'
1577         And use that only if __GNUC__ since we're using it's GCC-specific
1578         semantics that tell the compiler the associated function doesn't
1579         return.
1581         * builtin.c (substitute): Don't use character as an array index.
1582         (dumpdef_cmp): Make formal arguments `const void *' to avoid
1583         warnings with gcc -W -Wall on systems with qsort prototype.
1584         (m4_errprint): Cast obstack_finish to `char *' to avoid warnings
1585         from gcc -W -Wall.
1587         * eval.c (most functions): Add parentheses to assignments used
1588         as truth values go avoid warnings from gcc -Wall.
1590         * input.c, m4.c, output.c, path.c, symtab.c: Declare static
1591         any functions that don't need external scope.
1593         * builtin.c, debug.c, format.c, m4.c, m4.h, macro.c, symtab.c
1594         (many functions and arrays): Declare `const'.
1596 Sun Nov 15 09:42:09 1992  Francois Pinard  (pinard at icule)
1598         * *.[ch]: Rename nil to NULL, using the declaration from <stdio.h>,
1599         removing the declaration from m4.h.  Also rename false to FALSE
1600         and true to TRUE.
1602         * lib/Makefile.in (Makefile): New goal.
1604         * Makefile.in, lib/Makefile.in: Add a .c.o rule, so CFLAGS is not
1605         so heavily loaded.  It gets more easily overridable, calling make.
1606         Reported by Jim Meyering.
1608         * Makefile.in (dist): Get .fname from the current directory name,
1609         instead of from version.h.  I need updating many files manually,
1610         when the version changes, version.h is just one of them.
1612 Sat Nov 14 11:01:20 1992  Francois Pinard  (pinard at icule)
1614         * m4.h: Remove the tag `boolean' on the enum introducing typedef
1615         `boolean'.  This tag conflicts with <sys/types.h> on SVR4.
1616         Reported by Tom McConnell.
1618 Fri Nov 13 00:12:50 1992  Francois Pinard  (pinard at icule)
1620         * m4.texinfo: Correct the examples for 33.divert, 38.divnum,
1621         39.cleardiv, which were describing missing or spurious newlines.
1622         Modify examples 52.eval, 53.esyscmd and 54.sysval so the results
1623         do not depend on machine word size, `/bin/false' implementation,
1624         or `wc' output format.  `make check' is more dependable, now.
1626         * checks/check_them: Summarize the failed tests by listing their
1627         name, at end.  If none, issue `All checks successful'.  Output
1628         `Checking' instead of `Input file:'.
1630         * checks/get_them, checks/check_them: Reindented.
1632         * Makefile.in (dist): chmod a+r before making the tar file.
1634 Thu Nov 12 14:42:57 1992  Francois Pinard  (pinard at icule)
1636         * builtin.c (m4_dnl): Diagnose any parameter to `dnl'.
1638         * input.c (next_token): Reinitialize token_buttom just after using
1639         it as a watermark with obstack_free.  Or else, a future token, big
1640         enough for triggering reallocation of the obstack chunk, could
1641         void the initialized value of token_buttom, later causing panic in
1642         obstack_free.  Rename token_buttom to token_bottom everywhere.
1644         * m4.h: Before declaring errno, first include <errno.h> and
1645         ensure that it does not define errno.
1646         Reported by Richard Stallman.
1648 Wed Nov 11 17:40:35 1992  Francois Pinard  (pinard at icule)
1650         * builtin.c: Define and use DECLARE macro for builtins.
1652         * builtin.c (m4_ifelse): Avoid any diagnostic when exactly one
1653         argument, this is a common idiom for introducing long comments.
1655         * builtin.c (m4_ifelse): If 3n + 2 arguments, diagnose missing
1656         arguments.  The last argument was silently ignored.
1658         * m4.c (cmd_error): Add a missing semicolon before va_end().
1660 Tue Nov 10 08:57:05 1992  Francois Pinard  (pinard at icule)
1662         * Makefile.in: Now handle protoized sources.  Define and use U.
1663         Compile and use ansi2knr with old compilers.  Update DISTFILES.
1664         Add `aclocal.m4' to `configure' dependencies.
1665         * ansi2knr.c: New, from Ghostscript distribution.
1666         * configure.in: Define U through FP_PROTOTYPES for old compilers.
1667         Add AC_ISC_POSIX, AC_CONST, AC_SIZE_T.
1668         * aclocal.m4: New, provide FP_PROTOTYPES.
1669         * m4.h: Conditionnaly protoized through Args, save for varags.
1670         * builtin.c: Protoized.  Then:
1671         Include <sys/types.h> if size_t is not defined, before "regex.h".
1672         (m4_ifelse): Fetch built-in name properly for diagnostic.
1673         (m4_dumpdef): Remove wrong (char *) cast calling dump_symbol.
1674         (m4_regexp): Add const to `msg' declaration.
1675         (m4_patsubst): Add const to `msg' declaration.
1676         * debug.c: Protoized, save for varargs.
1677         * eval.c: Protoized.
1678         * format.c: Protoized.
1679         * input.c: Protoized.
1680         * m4.c: Protoized, save for varargs.  Then:
1681         (xfree): Accept void * instead of char *.
1682         (xmalloc): Return void * instead of char *.
1683         (xrealloc): Accept and return void * instead of char *.
1684         * macro.c: Protoized.
1685         * output.c: Protoized.
1686         * path.c: Protoized.  Then cast some (char *) over xmalloc's.
1687         * symtab.c: Protoized.
1689 Fri Nov  6 02:05:21 1992  Francois Pinard  (pinard at icule)
1691         * m4.texinfo: Remove directory from diagnostics in 30.include,
1692         51.eval, 56.errprint and 57.m4exit tests.
1694         * m4.h: Remove declarations for int or void system functions, they
1695         cause more conflicting trouble than they make good.
1697         * configure.in: Avoid configuration header file.  Add some tests.
1698         * m4.h: Remove #include "config.h".
1699         * Makefile.in, lib/Makefile.in: Implement Autoconf interface.
1700         Then, rewritten for better compliance with GNU standards.
1702 Thu Nov  5 12:37:13 1992  Francois Pinard  (pinard at icule)
1704         * format.c (format): Avoid syntax error if not HAVE_EFGCVT,
1705         because of a misplaced #endif.
1707         * Many *.[hc] files: Correct intra-line spacing here and there,
1708         according to GNU indent 1.6 advice.
1710         * configure.in: New, using Autoconf 1.2.
1711         * m4.h: Reverse NO_MEMORY_H to NEED_MEMORY_H.
1712         * Delete old configure.in, configure, etc/configure.in,
1713         etc/configure, lib/configure.in, lib/configure and config/*.
1714         Reported by Jason Merrill.
1716         * symtab.c (hash): Change (char) NULL to '\0'.
1717         Reported by Jason Merrill.
1719         * Delete .vers, etc/newdist.sh, etc/newvers.sh and
1720         etc/nextvers.sh.  Release numbers will be edited `by hand'.
1721         * version.h: De-automatize, force value in.
1723         * m4.c: Changes in order to use a newer getopt.h.
1724         Reported by David MacKenzie.
1726         * checks/: New name for examples/.
1727         * checks/get_them: New location for etc/get_examples.
1728         * checks/check_them: New location for etc/check_examples.
1729         * Makefile.in, checks/get_them, checks/check_them: Adjust.
1730         * lib/vfprintf.c: New location for etc/vfprintf.c.
1731         * Delete empty etc/.
1732         * examples/: New name for test/.
1734 Tue Mar 10 00:29:46 1992  Francois Pinard  (pinard at icule)
1736         * Makefile.in (check): Add m4 as dependency.
1738         * m4.c: Accept --no-warnings instead of --no_warnings, and
1739         --no-gnu-extensions instead of --no_gnu_extensions.  Make the
1740         usage message more informative.
1741         Reported by David MacKenzie.
1743 Mon Mar  9 14:53:40 1992  Francois Pinard  (pinard at icule)
1745         * etc/check_examples: New name for check_examples.sh.
1746         * etc/get_examples: New name for get_examples.sh.
1747         * Makefile.in, etc/Makefile.in: Use new names.
1749         * Makefile.in: Transmit $(CC) while making in lib.
1751         * Many *.[hc] files: GNU indent'ed, with further fine tuning of
1752         code disposition by hand.
1754 Sun Mar  8 11:01:55 1992  Francois Pinard  (pinard at icule)
1756         * m4.h: Delete definitions for abort() and exit().
1757         Reported by Richard Stallman.
1759         * config/hmake-unicos, config/s-unicos.h: New files.
1760         Reported by Hal Peterson.
1762         * eval.c (exp_term): Have N^0 return 1.
1763         Reported by Michael Fetterman.
1765         * eval.c, input.c, m4.h: Remove last comma in enums.
1766         Reported by Mike Lijewski.
1768         * Transfer of maintenance duties from Rene' to Franc,ois.
1770 Thu Oct 24 15:18:46 1991  Rene' Seindal (seindal at diku.dk)
1772         * Release 1.0.  Many thanks to those, who provided me with bug
1773         reports and feedback.
1775         * Uses GNU configure, taken from the gdb distribution.
1777         * Uses GNU getopt(), with long option names.
1779         * The -Q/+quiet option is added, which suppresses warnings about
1780         missing or superflous arguments to built-in macros.
1782         * Added default options via the M4OPTS environment variable.
1784         * The built-in format can now be configured to use sprintf as
1785         the formatting engine, for systems without [efg]cvt(3).
1787         * GNU library code is moved to the ./lib subdirectory; other
1788         utility files are now in ./etc.
1790         * Several minor bugs have been fixed.
1792 Fri Jul 26 15:28:42 1991  Rene' Seindal (seindal at diku.dk)
1794         * Fixed various bugs.  Release 0.99, manual 0.09.  Many thanks to
1795         Francois Pinard and Roland H. Pesch for providing me with reports.
1797         * The builtins incr and decr are now implemented without use of
1798         eval.
1800         * The builtin indir is added, to allow for indirect macro calls
1801         (allows use of "illegal" macro names).
1803         * The debugging and tracing facilities has been enhanced
1804         considerably.  See the manual for details.
1806         * The -tMACRO option is added, marks MACRO for tracing as soon
1807         as it is defined.
1809         * Builtins are traced after renaming iff they were before.
1811         * Named files can now be undiverted.
1813         * The -Nnum option can be used to increase the number of
1814         divertions available.
1816         * Calling changecom without arguments now disables all comment
1817         handling.
1819         * The function m4_patsubst() is now consistently declared
1820         static.
1822         * A bug in dnl is fixed.
1824         * A bug in the multi-character quoting code is fixed.
1826         * Several typos in the manual has been corrected.  More probably
1827         persist.
1829         * The m4.info file is now installed along with the program.
1831 Thu Nov 15 21:51:06 1990  Rene' Seindal (seindal at diku.dk)
1833         * Updated and enhanced version.  Release 0.75, manual 0.07.
1835         * Implemented search path for include files (-I option and
1836         M4PATH envronment variable).
1838         * Implemented builtin "format" for printf-like formatting.
1840         * Implemented builtin "regexp" for searching for regular
1841         expressions.
1843         * Implemented builtin "patsubst" for substitution with regular
1844         expressions.
1846         * Implemented builtin "esyscmd", which expands to a shell
1847         commands output.
1849         * Implemented "__file__" and "__line__" for use in error
1850         messages.
1852         * Implemented character ranges in "translit".
1854         * Implemented control over debugging output.
1856         * Implemented multi-character quotes.
1858         * Implemented multi-character comment delimiters.
1860         * Changed predefined macro "gnu" to "__gnu__".
1862         * Changed predefined macro "unix" to "__unix__", when the -G
1863         option is not used.  With -G, "unix" is still defined.
1865         * Changed "shift", "$@" and "$*" to not insert spaces afters
1866         commas.
1868         * Added program name to error messages.
1870         * Fixed two missing null bytes bugs.
1872 Mon Jan 22 21:08:52 1990  Rene' Seindal (seindal at diku.dk)
1874         * Initial beta release.  Release 0.50, manual 0.05.
1876         $Revision: 1.1.1.1.2.27 $ $Date: 2005/10/18 11:29:12 $