The FSF are moving offices today. Changed their contact address
[m4.git] / ChangeLog
blob045d52ba56bc44f713cfe99c5f4cb6e2dc3e2092
1 2005-05-01  Gary V. Vaughan  <gary@gnu.org>
3         The FSF are moving offices today.  Changed their contact address
4         in all files from `59 Temple Place, Suite 330, MA 02111-1307' to
5         `51 Franklin Street, Fifth Floor, MA 02110-1301'.
7 2005-03-31  Mike Frysinger  <vapier@gentoo.org>
9         * Makefile.in (bindir, infodir): Substitute from configure rather
10         than hardcode.
11         * doc/Makefile.in (infodir): Ditto.
12         * src/Makefile.in (bindir): Ditto.
13         * NEWS: Updated.
15 2005-03-31  Gary V. Vaughan  <gary@gnu.org>
17         Changes needed to automate the release process for 1.4.3:
19         * Makefile.in (dist): Make .tar.bz2 tarball too.
20         * Makefile.maint (TSDEPS_DIST): Remove m4/libtool.m4.
21         (cvs-news): Look 1 line further down for NEWS release number.
22         (cvs-dist): We don't use automake, so make dist is fine.
23         Remove double . before suffixes.
24         (cvs-release): Don't mention manual.html.
25         (fetch): Get latest gendocs files.
26         (web-manual): Rewritten to use gendoc for multiformat manuals.
27         * doc/gendocs.sh: Don't save an old version in m4 CVS!
28         * doc/m4.texinfo (Index): HFS+ (the file system on my Mac) is case
29         preserving, but case insensitive, so generating html docs per node
30         clashes between Index.html, the node file, and index.html, the
31         top-level of the document tree...
32         (Index macro): ...so renamed to this.  Changed all references.
34 2005-03-31  Gary V. Vaughan  <gary@gnu.org>  (tiny change)
36         * configure.ac (AC_INIT): Bump to 1.4.3a.
38 2005-03-31  Gary V. Vaughan  <gary@gnu.org>  (tiny change)
40         Release 1.4.3:
42         * configure.in (AC_INIT): Bump to 1.4.3.
43         * NEWS: Describe 1.4.3's changes.
45 2005-03-31  Gary V. Vaughan  <gary@gnu.org>
47         * Makefile.maint: New file with release rules, from CVS libtool.
48         * Makefile.in (DISTFILES): Add Makefile.maint.
49         * INSTALL, install-sh, doc/texinfo.tex: Updated to latest
50         canonical versions.
52 2005-03-31  Eric Blake  <ebb9@byu.net>  (tiny change)
54         * doc/m4.texinfo (Patsubst): Re-add trailing space required by
55         checks/47.patsubst, with a redundant @comment to prevent emacs
56         from removing it accidentally again.
57         * checks/get-them: Allow for trailing spaces tucked behind
58         @comment marks.
60 2005-03-31  Eric Blake  <ebb9@byu.net>  (tiny change)
62         * doc/Makefile.in (install, uninstall): Accomodate DESTDIR.
63         * src/Makefile.in (install, uninstall): Likewise.
65 2005-02-07  Gary V. Vaughan  <gary@gnu.org>
67         * lib/regex.c, lib/regex.h:  Reverted gnulib update, which broke
68         on Cygwin.
69         Reported by Eric Blake <ebb9@byu.net>
71 2005-02-04  Gary V. Vaughan  <gary@gnu.org>
73         * lib/regex.c, lib/regex.h: Updated from gnulib.
74         * src/input.c (set_word_regexp):  Don't change the word_regexp
75         unless it compiles correctly.
76         * NEWS: Updated.
77         Reported by Frank Schwidom <schwidom@impernet.de>
79         * Makefile.in (stamp-h): Regenerate config.h properly.
81 2005-02-03  Gary V. Vaughan  <gary@gnu.org>
83         * configure.ac (AC_DEFINE): Fix overquoting of description
84         argument.
86         * src/m4.h (__CYGWIN__, WIN32): Canonicalise Windows and Cygwin
87         recognition macros.
88         * src/freeze.c (produce_frozen_state): Use \n line-endings even
89         on Windows, so that the frozen file reader will work.
90         Reported by Josef T. Burger <bolo@bolo.com>
92         * src/m4.c (main): Modernise the --version output.
94 2005-02-03  Gary V. Vaughan  <gary@gnu.org>
96         Modernise the configury a little to prevent spurious errors from
97         Autoconf-2.59's autoreconf:
99         * config.h.in: Renamed to...
100         * config-h.in: ...this to better support DOS 8.3 file systems.
101         * acconfig.h: Removed.
102         * configure.in: Renamed to...
103         * configure.ac: ...this, and AC_DEFINE used to declare config.h
104         entry comments.  Slight reorganisation and reformatting.
105         * aclocal.m4: Use third argument to AC_DEFINE to declare config.h
106         entry comments.
107         (AC_INIT): Use a modern 3 argument call.
108         * Makefile.in, checks/Makefile.in, doc/Makefile.in,
109         examples/Makefile.in, lib/Makefile.in, src/Makefile.in:
110         s/PRODUCT/PACKAGE/g.
111         * Makefile.in (DISTFILES): Removed acconfig.h, configure.in,
112         config.h.in.  Added configure.ac, config-h.in.
113         (stamp-h.in): Removed acconfig.h from dependencies.
114         (configure): Depends on configure.ac, not configure.in.
115         * doc/Makefile.in (stamp-vti): Ditto.
116         * src/freeze.c (produce_frozen_state), src/m4.c (main): Adjust for
117         difference between PRODUCT="m4" and PACKAGE="GNU M4".
118         * configure: Regenerated.
120 2005-02-03  Noah Misch  <noah@cs.caltech.edu>
122         * src/output.c (mkstemp): Make non-static, and build regardless of
123         HAVE_TMPFILE; src/builtin.c also needs this replacement.
124         * NEWS: Update.
126 2004-09-09  Vincent Lonngren  <Vincent.lonngren.759@student.lu.se>
128         * configure.in (AC_CHECK_HEADERS): Commit works best when you save
129         changes from your editor buffer first.
131         * configure.in (AC_CHECK_HEADERS):  Add signal.h, sys/signal.h.
132         * src/m4.c: And include them as appropriate.
133         * NEWS: Updated.
135 2004-09-09  Andreas Schwab  <schwab@suse.de>
137         Refactoring of the string read case in next_char provides about a
138         20% speedup of M4 as typically used by autoconf:
140         * src/input.c (next_char_1): Renamed from next_char.
141         (next_char): New macro.
142         * NEWS: Updated.
144 2004-08-21  Gary V. Vaughan  <gary@gnu.org>
146         * configure.in (VERSION): Bump to 1.4.2a.
148 2004-08-19  Paul Eggert  <eggert@twinsun.com>
150         * Release 1.4.2.
152         * configure.in (VERSION): Bump to 1.4.2.
153         * News: Describe 1.4.2's changes.
155         * src/m4.c (reference_error): Preserve errno, since M4ERROR
156         relies on this.
157         * src/builtin.c (m4_esyscmd): Clear errno before calling popen.
158         (m4_maketemp): Clear errno before calling mkstemp.
159         * src/path.c (path_search): Don't let "free" trash errno when
160         returning NULL.
161         * src/output.c (insert_file): Don't assume errno has a valid
162         value simply because fread returns zero.  This fixes a
163         portability bug reported by Marion Hakanson in
164         <http://lists.gnu.org/archive/html/bug-m4/2004-07/msg00029.html>.
166 2004-06-09  Gary V. Vaughan  <gary@gnu.org>
168         * configure.in (VERSION): Bump to 1.4.1a.
169         * NEWS: Place holder for next stable release.
171 2004-06-03  Paul Eggert  <eggert@cs.ucla.edu>
173         * Release 1.4.1.
175         * configure.in (VERSION): Bump to 1.4.1.
176         * NEWS: Describe 1.4.1's changes.
178         * aclocal.m4 (fp_PROG_CC_STDC): Use AC_DEFUN, not define, to
179         pacify Autoconf 2.59.
181         * doc/m4.texinfo: Insert commas after @xref's that lack them,
182         to pacify Texinfo 4.7.
183         * doc/Makefile.in (info): Remove info-1, info-2, info-3.
185         * src/m4.h, src/debug.c: Use #ifdef __STDC__, not #if __STDC__, to
186         pacify Sun C compilers.
188 2003-09-28  Akim Demaille  <akim@epita.fr>
190         * src/symtab.c (lookup_symbol): Fix an uninitialized-variable
191         botch.
193 2003-09-03  Santiago Vila  <sanvila@debian.org>
195         * examples/stackovf.sh: Use tempfile if available.
197 2001-04-02  Robert Bihlmeyer  <robbe@orcus.priv.at>
199         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92629
200         * src/output.c (m4_insert_file): Do not mix buffered and
201         unbuffered I/O, as this breaks on the Hurd.  (trivial change)
203 2001-02-01  Santiago Vila  <sanvila@debian.org>
205         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84451
206         * src/m4.c (main): Fix format vulnerabilities.  (trivial change)
208 2001-02-01  Matt Kraai  <kraai@debian.org>
210         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84416
211         * doc/m4.texinfo (Maketemp): Change maketemp to refer to a new,
212         empty file rather than to a nonexistent file.  This closes a common
213         security hole.
214         * src/builtin.c (m4_maketemp): Implement the above, by using
215         mkstemp rather than mktemp.  (trivial change)
217 2000-01-09  Akim Demaille  <demaille@inf.enst.fr>
219         * src/builtin.c (expand_ranges): Added break after trailing dash.
220         This caused misbehaviors on some systems.
222 Sat Nov  5 15:52:47 1994  Francois Pinard  (pinard@icule)
224         * Release 1.4.
226         * doc/Makefile.in (realclean): Also remove stamp-vti.
227         Reported by Eric Backus.
229 Wed Nov  2 00:47:53 1994  Francois Pinard  (pinard@icule)
231         * src/freeze.c (produce_frozen_state): If the frozen file cannot
232         be opened, return immediately after producing the error message.
233         Reported by Andreas Schwab.
235         * configure.in: Check for const only after having found possible
236         ANSIfying compiler flags, this is of no use to check it before.
237         Reported by Alexander Lehmann.
239 Tue Nov  1 22:02:37 1994  Francois Pinard  (pinard@icule)
241         * src/macro.c (collect_arguments): Cast obstack arguments to
242         (voidstar), so avoiding compiler warnings.
243         Reported by Joseph E. Sacco.
245         * src/freeze.c (produce_frozen_state): Cast printed lengths to
246         (int) so they correspond to %d format items.
247         Reported by Joseph E. Sacco.
249         * src/m4.c (main): Cast the argument to xfree to (voidstar).
250         * src/symtab.c (free_symbol): Idem.
251         Reported by Karl Vogel.
253 Mon Oct 31 02:11:19 1994  Francois Pinard  (pinard@icule)
255         * Makefile.in (DISTFILES): Distribute BACKLOG.
257         * configure.in: Define PRODUCT and VERSION.
258         * acconfig.h: Document PRODUCT and VERSION.
259         * src/m4.c, src/freeze.c: Use PRODUCT and VERSION instead of the
260         constant string m4 and variable or parameter named version.
262 Sun Oct 30 08:13:03 1994  Francois Pinard  (pinard@icule)
264         * src/m4.h, src/debug.c: Replace all #ifdef __STDC__ by #if
265         __STDC__.  Alliant FX/2800 Concentrix 2.2 (i860-BSD4.3) compiler
266         defines __STDC__ to 0, for indicating it is *not* ANSI!
267         Reported by Kaveh R. Ghazi.
269         * configure.in: Added obsolescent tests for AIX and Minix.
271         * doc/Makefile.in (mostlyclean): Remove texclean in dependencies,
272         which texclean does not exist anymore.
273         Reported by Eric Backus, Jim Meyering, John David Anglin and
274         Joseph E. Sacco.
276 Sat Oct 29 05:10:03 1994  Francois Pinard  (pinard@icule)
278         * aclocal.m4 (fp_C_PROTOTYPES): Force -D_HPUX_SOURCE with -Aa.
279         Reported by John David Anglin.
281         * src/ansi2knr.c: New version, sent by Peter Deutsch.
282         * aclocal.m4 (fp_C_PROTOTYPES): Substitute empty or ansi2knr for
283         ANSI2KNR, depending on the fact the compiler is ANSI or not.
284         * src/Makefile.in: Use -Ovarargs=convert on ansi2knr calls.
285         Remove the sed filter after ansi2knr for debug.c.  Use $O instead
286         of $U, put underline in extensions rather than in basenames.  Use
287         implicit rules, now that regularity makes this possible.
288         Have $(OBJECTS) depend on $(ANSI2KNR), so to trigger compilation
289         of ansi2knr whenever it is needed.
290         * configure.in: Adjusted for correct STACKOVF substitution.
291         * src/debug.c (trace_format): When not __STDC__, use (...) as a
292         parameter list, so ansi2knr will convert it to (va_alist) va_dcl.
293         Reported by David MacKenzie.
295         * Makefile.in: Remove binprefix.  Use transform_name instead.
296         Reported by David MacKenzie.
298         * doc/Makefile.in: Create version.texi, use it, clean it.
299         Reported by Jim Meyering.
301 Fri Oct 28 20:33:55 1994  Francois Pinard  (pinard@icule)
303         * Makefile.in (all, install, uninstall): Depend on Makefile.
305         * Makefile.in: For actions invoking $(MAKE) from within compound
306         sh statements, exit non-zero if the sub-make fails.  Otherwise,
307         the top-level make may exit successfully when it should fail.
308         Reported by Jim Kingdon.
310         * {,/*}Makefile.in: Use && after all cd, in case they fail.
312         * {,*/}Makefile.in: Declare PRODUCT and VERSION macros.
313         (dist): Use PRODUCT and VERSION instead of tricks on .fname.
314         * configure.in: Substitute PRODUCT and VERSION.
316         * {,*/}Makefile.in (dist): Always try a hard link before a copy.
318 Thu Oct 27 22:32:58 1994  Francois Pinard  (pinard@icule)
320         * Makefile.in (mostlyclean-local): Do not remove *~.
321         * */Makefile.in (mostlyclean): Idem.
322         Reported by Robert E. Brown and Richard Stallman.
324 Sun Oct  9 08:30:13 1994  Francois Pinard  (pinard@icule)
326         * src/m4.h: Get rid of CONFIG_BROKETS.
328 Sun Oct  2 16:48:10 1994  Francois Pinard  (pinard@icule)
330         * configure.in: Use AC_ARG_PROGRAM.
331         * aclocal.m4 (fp_C_PROTOTYPES): Substitute @kr@ by kr or empty.
332         Reported by David MacKenzie.
334 Sat Oct  1 11:22:42 1994  Francois Pinard  (pinard@icule)
336         * configure.in: Do not add -O to CFLAGS for GNU C, now that
337         configure does it automatically.
338         Reported by Jim Meyering.
340 Fri Sep 23 08:16:58 1994  Francois Pinard  (pinard@icule)
342         * src/stackovf.c: Declare the handler_t typedef earlier in the
343         code, use it for stackovf_handler.
344         (setup_stackovf_trap): Use RETSIGTYPE instead of void while
345         casting sigsegv_handler.
346         Reported by Robert Bernstein.
348         * src/m4.c (main): Initialize program_name to argv[0] without
349         basename'ing it.
350         Reported by Karl Berry.
352 Sun Sep 18 11:42:50 1994  Francois Pinard  (pinard@icule)
354         * src/Makefile.in (TAGS): Include a ../lib/TAGS reference.
355         Reported by Karl Berry.
357 Wed Sep 14 10:00:22 1994  Francois Pinard  (pinard@icule)
359         * lib/Makefile.in (mostlyclean): Added.
360         (TAGS): Make in $(srcdir).
362         * configure.in: Use `choke me' in test, like everywhere!
364         * {doc,examples,lib,src}/Makefile.in (check): Deleted, as
365         unreacheable and useless.
367         * doc/Makefile.in (texclean): Deleted, merged in mostlyclean.
369         * lib/Makefile.in (DISTFILES): Distribute TAGS.
370         (distclean): Do not remove TAGS.
371         (realclean): Remove it.
372         * Makefile.in: Make TAGS in lib also, not just in src.
373         Reported by Karl Berry.
375         * Makefile.in (distclean, realclean): Instead of recursively
376         calling $(MAKE) for the -local part, allow parallel execution of
377         -recursive and -local, only delay the removal of config.status,
378         which is repeated in both goals.
380 Tue Sep 13 19:21:05 1994  Francois Pinard  (pinard@icule)
382         * Release 1.3.
384         * Makefile.in: Group all *clean-recursive goals in one, using sed
385         to remove `-recursive' while calling make recursively.  Also, use
386         a subshell for each recursive $(MAKE).
387         Reported by Jim Meyering.
389         * src/m4.h (memcpy): Define with bcopy for BSD systems.
390         Reported by Kaveh R. Ghazi.
392         * src/Makefile.in (ansi2knr): Use $(LIBS) while linking, for SunOS
393         4.1.3 requires -ldl to link even ansik2nr, and we need a way to
394         specify it.
396         * configure.in: Use date instead of touch for stamp-h.
397         * Makefile.in (stamp-h.in): Idem.
399         * Makefile.in (distclean, realclean): Force serial execution of
400         both goals, in case parallel makes are being used.
401         Reported by Jim Meyering.
403         * src/Makefile.in (DISTFILES): Distribute TAGS.
404         (distclean): Do not remove TAGS.
405         (realclean): Remove it.
406         Reported by Karl Berry.
408 Sat Sep 10 12:34:04 1994  Francois Pinard  (pinard@icule)
410         * configure.in: Use fp_ to match aclocal.m4.  Revert _OS_ macros
411         to old names, for following Autoconf.
413 Thu Sep  8 15:07:27 1994  Francois Pinard  (pinard@icule)
415         * Makefile.in (MDEFINES): Remove INSTALL substitutions, for
416         ./install.sh will not be correctly referred to in sub-Makefiles.
417         Reported by John David Anglin.
419         * doc/Makefile.in (texclean): Remove *.cps and *.fns too.
420         Reported by Eric Backus.
422         * Makefile.in, checks/Makefile.in, doc/Makefile.in,
423         examples/Makefile.in, lib/Makefile.in, src/Makefile.in: Limit
424         config.status into remaking this directory's Makefile only.
425         * Makefile.in (stamp-h): Do not check nor touch stamp-h.
426         * configure.in (AC_OUTPUT): Touch stamp-h if CONFIG_HEADERS.
427         Reported by Jim Meyering.
429 Tue Sep  6 12:07:33 1994  Francois Pinard  (pinard@icule)
431         * configure.in: Correct stack overflow detection logic, taking
432         care of systems having only incomplete implementations (like for
433         Pyramid 9820 OSx 5.0d).
434         Reported by Kaveh R. Ghazi.
436         * src/Makefile.in (TAGS): Remote -t from etags call.
438 Fri Sep  2 10:37:10 1994  Francois Pinard  (pinard@icule)
440         * lib/Makefile.in (install): Depend on all.
442 Wed Aug 31 11:17:21 1994  Francois Pinard  (pinard@icule)
444         * examples/Makefile.in (mostlyclean): Do not depend on texclean.
445         Reported by Jim Meyering and John David Anglin.
447         * Makefile.in (distclean-local): Delete config.log.
448         Reported by Jim Meyering.
450         Solidify frozen files with respect to -P:
451         * src/m4.c: Have -P set prefix_all_buitins variable instead of
452         calling a function by that name.  Declare the variable.
453         * src/m4.h: Adjust declaration for prefix_all_buitins.
454         * src/builtin.c (builtin_init): Merge in functionality from
455         previous prefix_all_buitins function, while making entries in the
456         symbol table, but not modifying the builtin description itself.
458         * src/freeze.c (reload_frozen_state): Add a useless `break;',
459         because *many* compilers do not accept an empty `default:'.
460         Reported by Akiko Matsushita, Eric Backus, John David Anglin,
461         Joseph E. Sacco, Kaveh R. Ghazi, Tom McConnell and Ulrich Drepper.
463         * configure.in: Use AC_TYPE_SIGNAL.
464         * src/stackovf.c (setup_stackovf_trap): Use RETSIGTYPE.
465         Reported by Robert Bernstein.
467         * checks/Makefile.in (check): Modify PATH so check-them will find
468         m4 in the src directory.
469         * Makefile.in (check): Don't.
470         Reported by Akiko Matsushita and Jim Meyering.
472         * src/output.c (make_room_for, output_character_helper): New
473         functions, for implementing a global MAXIMUM_TOTAL_SIZE instead of
474         a per buffer MAXIMUM_BUFFER_SIZE.
476         * src/output.c (output_text): New function, for optimizing the
477         output of strings of characters.  Use it.
479 Tue Aug 30 01:44:29 1994  Francois Pinard  (pinard@icule)
481         * doc, src: New directories reorganizing the distribution.
482         * doc/Makefile.in, src/Makefile.in, examples/Makefile.in: New
483         files.
484         * Makefile.in: Adjusted.
485         * configure.in: Configure new Makefiles.
487         * m4.h: Declare STRING typedef.  Use it for comment and quote
488         strings, adjusting all references.  (This is the rudiments of a
489         beginning for the eventual withdrawal of NUL terminated strings.)
490         * output.c (shipout_text): Accept a length parameter, and use it.
491         All callers adjusted.
493 Mon Aug 29 12:27:19 1994  Francois Pinard  (pinard@icule)
495         * m4.h: Include <unistd.h> if it exists.
496         * stackovf.c: Don't.
498         Clean up for current_diversion variable:
499         * output.c: Move current_diversion from builtin.c.
500         * m4.h: Declare current_diversion so builtin.c can access it.
501         * output.c (output_init, make_diversion): Initialize or update
502         current_diversion.
503         * builtin.c (builtin_init, m4_divert): Leave current_diversion
504         alone.
506         Remove limit on number of diversions:
507         * output.c: Replace ndiversion by diversions, declare it.
508         (output_init): Allocate only diversion 0.
509         (make_diversion): Allocate new diversions as needed.
510         * m4.h, m4.c: Remove NDIVERSIONS and ndiversion related stuff.
511         * m4.c: Still accept -N, but do nothing with it.
512         Reported by David MacKenzie.
514         Freeze diversions:
515         * output.c (freeze_diversions): New function.
516         * m4.h: Declare freeze_diversions.
517         * freeze.c: Document frozen file format, revise it, call
518         freeze_diversions to add diversions to frozen format, and code to
519         reload them properly.
520         * m4.c: Do not undivert automatically at end when status being
521         frozen.  Do not call builtin_init when reloading frozen state.
523         Speed up diversion processing:
524         * output.c: Add INITIAL_BUFFER_SIZE, MAXIMUM_BUFFER_SIZE,
525         COPY_BUFFER_SIZE, in-memory diversion buffers, struct diversion
526         structure and variables, cached variables out of output_diversion,
527         reallocate_diversion_for and OUTPUT_CHARACTER.
528         (shipout_text, make_diversion, insert_diversion): Adapted to new
529         structures.
530         (insert_file): Use better buffering.
531         Reported by David MacKenzie.
533 Sun Aug 28 05:20:02 1994  Francois Pinard  (pinard@icule)
535         * Makefile.in, lib/Makefile.in, checks/Makefile.in: Arrange so
536         dist works from another build directory.
538 Sat Aug 27 14:32:45 1994  Francois Pinard  (pinard@icule)
540         * symtab.c (hack_all_symbols): Use hash_table_size instead of
541         constant HASHMAX, for -H option to work better.
543         * builtin.c (DECLARE): Simplify by using _ ().
545         * freeze.c: New file.
546         * Makefile.in: Compile it, distribute it.
547         * m4.c: Recognize, document and process --freeze-state (-F) and
548         --reload-state (-R) options.  Pass a true flag to builtin_init
549         only if no reloading some state.
550         * builtin.c (define_builtin): Remove static specifier.
551         (find_builtin_by_name): Remove static specifier.
552         (builtin_init): Accept and obey a flag argument.
553         * m4.h: Add declarations for freeze.c, changes for builtin.c.
555 Wed Aug 24 16:14:19 1994  Francois Pinard  (pinard@icule)
557         * builtin.c (dumpdef_cmp): Rewrite so the cast protect the const
558         specifier.
560         * configure.in: Implement --with-dmalloc.
561         * acconfig.h: Document WITH_DMALLOC.
562         * m4.h: Add code for when WITH_DMALLOC.
564 Mon Aug 15 12:38:05 1994  Francois Pinard  (pinard@icule)
566         * m4.c (long_options): Use "error-output", the dash was missing.
567         Reported by Akiko Matsushita.
569 Fri Aug 12 16:38:01 1994  Francois Pinard  (pinard@icule)
571         * m4.h: Include <sys/types.h>.
572         * builtin.c, debug.c, m4.c, output.c, stackovf.c: Don't.
573         * m4.h: Declare len_lquote and len_rquote as size_t, not int.
574         int.
575         * input.c: Declare len_lquote, len_rquote, len_bcomm and len_ecomm
576         as size_t, not int.
577         * builtin.c (dump_args): Declare len as size_t, not int.
579         * debug.c: Prototype the forward declaration of debug_set_file.
581         * builtin.c (m4_undivert):  Replace div by file, for avoiding the
582         shadowing of this variable.
583         * output.c (insert_diversion): Idem.
585         * input.c: Delete def_rquote, def_lquote, def_bcomm and def_ecomm.
586         (input_init): Duplicate default quote and comment strings.
587         (set_quotes): Free previous quote strings in all cases.  Duplicate
588         even default quote strings.
589         (set_comment): Free previous comment strings in all cases.
590         Duplicate even default comment strings.
592         * configure.in: Updated for Autoconf 2.0.
593         * Makefile.in (distclean-local): Also delete config.cache.
595         * m4.c (usage): Reorganize the --help output by topic.  Include a
596         description for debugging flags.
598 Fri Jul 29 10:15:52 1994  Francois Pinard  (pinard@icule)
600         * configure.in: If sigaction is available and SA_ONSTACK defined,
601         use sigaction.  Otherwise, if sigvec is available and SV_ONSTACK
602         defined, use sigvec.  Else don't compile stackovf.c.
603         * stackovf.c (setup_stackovf_trap): Idem.
604         Reported by Jim Avera, Karl Berry, Kaveh R. Ghazi, Matthias Rabe
605         and Simon Leinen.
607 Thu Jul 21 22:43:17 1994  Francois Pinard  (pinard@icule)
609         * m4.c (usage): Replace printf par fputs.
611 Mon Jul 18 23:48:23 1994  Francois Pinard  (pinard@icule)
613         * Release 1.2
615 Sun Jul 17 08:08:25 1994  Francois Pinard  (pinard@icule)
617         * configure.in: Check for sigaction and sigvec.  Add a new delayed
618         check for RLIMIT_STACK, combine in the checking for getrlimit.
619         All those things are not universally available.
620         * stackovf.c: Split setting up the trap handler and catching
621         signals, for better taking care of various configure outcomes.
622         * examples/stackovf.sh: Correct a typo.
623         Reported by Eric Backus, Jim Avera and Jim Meyering.
625 Sat Jul 16 20:36:19 1994  Francois Pinard  (pinard@icule)
627         * ansi2knr.c: New version sent by its author, Peter Deutsch.
629 Fri Jul 15 14:36:21 1994  Francois Pinard  (pinard@icule)
631         * Makefile.in: Modify so parallel make will not try making
632         lib/libm4.a twice simultaneously.
633         Reported by Jim Meyering.
635 Thu Jul 14 17:23:17 1994  Francois Pinard  (pinard@icule)
637         * stackovf.c (setup_stackovf_trap): Replace "Don't" by "Do not" in
638         error message, for when no code possibility exists.  Even if this
639         line is completely #ifdef'ed out, it brings a syntax error.
640         Reported by Andreas Schwab, Jim Meyering and Joseph E. Sacco.
642         * Makefile.in (install): Have install depend on all too, for lib
643         to be remade as needed.
645         * examples/stackovf.sh: Try ksh, bsh and bash for shells
646         providing ulimit, instead of using only ksh.
647         Reported by Jim Avera and Joseph E. Sacco.
649 Tue Jul 12 06:54:31 1994  Francois Pinard  (pinard@icule)
651         * Makefile.in (check): Have it depend on all instead of m4.  In
652         this way, a change in lib will be detected and processed.
654         * builtin.c (numeric_arg): Use strtol and verify the conversion,
655         instead of using sscanf which stops as soon as there is a
656         non-digit in the input.  Previously, incr(1xyzzy), eval(1,2xyzzy)
657         and divert(1xyzzy) were all accepted without any warning or error
658         messages.
659         * m4.h: Declare strtol as long if not including stdlib.h.
660         * configure.in: Check for limits.h, and replace strtol if missing.
661         * lib/Makefile.in: Substitute LIBOBJS.  Distribute strtol.c.
662         * lib/strtol.c: New file, from elsewhere.
663         Reported by Andreas Schwab.
665 Thu Jul  7 22:38:10 1994  Francois Pinard  (pinard@icule)
667         * macro.c (expand_macro): Cast value to (boolean) prior to
668         assigning it to traced.
669         Reported by Tom McConnell.
671         * Makefile.in (m4): Always make all in lib first.
672         Reported by Jim Meyering.
674 Wed Jul  6 13:16:31 1994  Jim Avera (jima@netcom.com)
676         * stackovf.c: Isolated OS-dependent sections; Improved portability,
677         adding support for SunOS/BSD (sigvec, sigstack, and 4-parameter signal
678         handlers), and a default error message if the fault address is not
679         available (when neither siginfo.h nor BSD sigcontext are supported).
680         * configure.in: Changes for stackovf.h: Check for sigcontext,
681         sigaction, sigstack, and define rlim_t as int if necessary.
682         * acconfig.h: Added HAVE_SIGCONTEXT and rlim_t.
683         * examples/stackovf.sh: Run m4 -L99999999 to allow stack overflow.
684         * ansi2knr.c: Fix for func-ptr args; convert "..." to varargs syntax.
686 Tue Jul  5 19:13:54 1994  Francois Pinard  (pinard@icule)
688         * configure.in: Use AC_SET_MAKE.
689         * Makefile.in: Use @SET_MAKE@.
690         Reported by Jim Meyering.
692         * checks/check-them: Do not trap on SIGQUIT or SIGALRM.
693         Reported by Ian Taylor.
695 Sat Jul  2 00:58:47 1994  Francois Pinard  (pinard@icule)
697         * configure.in: Remove dependency of USE_STACKOVF on STDC_HEADERS,
698         because siginfo.h is unrelated to standard headers, and siginfo.h
699         is already checked for.
700         Reported by Joseph E. Sacco.
702         * acconfig.h, aclocal.m4, m4.h: Replace HAVE_PROTOTYPES by
703         PROTOTYPES.
704         * aclocal.m4, configure.in: Replace AC_HAVE_PROTOTYPES by
705         AC_PROTOTYPES.
707 Wed Jun 29 22:41:53 1994  Francois Pinard  (pinard@icule)
709         * builtin.c (substitute): Use \& to represent this part of the
710         string which was matched by the whole regexp, instead of
711         representing the whole string.  Any usage of \0 issues a warning
712         and acts like \&, it will disappear in some subsequent release.
714 Mon Jun 27 14:24:23 1994  Francois Pinard  (pinard@icule)
716         * m4.c: Complete prototype for forwarded declaration of usage.
718         * input.c (init_macro_token): Correct own reference in error
719         message.  Previous name get_macro_func was referred to instead.
720         (next_char):  Correct own reference in error message.  Previous
721         name advance_input was referred to instead.
723         * m4.h: Declare eval_t and unsigned_eval_t typedefs to 32 bits.
724         * eval.c (logical_or_term, logical_and_term, or_term, xor_term,
725         and_term, not_term, logical_not_term, cmp_term, shift_term,
726         add_term, mult_term, exp_term, unary_term, simple_term): Add
727         prototype to forwarded declarations.  Declare parameter v1 as
728         eval_t * instead of int *.  Same for local variable v2 in dyadic
729         functions.  Same for result in exp_term.
730         * builtin.c (m4_eval): Declare value as eval_t instead of int.
731         (ntoa): Declare value as eval_t instead of int.  Declare uvalue as
732         unsigned_eval_t instead of unsigned int.  Change casts accordingly.
733         (shipout_int): Cast first argument of ntoa to eval_t.
734         Reported by Thorsten Ohl.
736         * macro.c: Complete the prototypes of forwarded expand_macro and
737         expand_token.
738         Reported by Thorsten Ohl.
740         * m4.h: Define voidstar as void * or char * depending on __STDC__.
741         The Ultrix 3.1 compiler cannot do much with void pointers.
743         * builtin.c (dumpdef_cmp): Replace void * by voidstar.
744         * m4.c (xfree):  Replace void * by voidstar.
745         Reported by Tom McConnell.
747         * ansi2knr.1: New, from elsewhere.
748         * Makefile.in (DISTFILES): Distribute ansi2knr.1
750         * Makefile.in (stamp-h.in): Avoid running ./config.status if
751         stamp-h does not exist yet.  This avoids running it a second time
752         just after the initial ./configure.
753         Reported by David MacKenzie and Tom McConnell.
755         * m4.h: Replace the enum debug_info declaration with a series of
756         #define's.  The Ultrix 3.1 compiler would otherwise need casting
757         (int) to most references, when used in expressions.
758         Reported by Tom McConnell.
760 Sat Jun 25 00:10:05 1994  Francois Pinard  (pinard@icule)
762         * aclocal.m4: Replace FP_PROTOTYPES by AC_HAVE_PROTOTYPES,
763         following an idea from Brook G. Milligan.  AC_HAVE_PROTOTYPES
764         calls the compiler.  Previously, FP_PROTOTYPES was only calling
765         the preprocessor; by not being subject to CFLAGS, this was
766         discouraging those flags asking for ANSI compilation.
767         * acconfig.h: Document HAVE_PROTOTYPES.
768         * configure.in: Use AC_HAVE_PROTOTYPES instead of FP_PROTOTYPES.
769         * m4.h: Define _() according to HAVE_PROTOTYPES, not __STDC__.
770         Reported by Eric Backus.
772         * configure.in: Substitute CFLAGS and LDFLAGS, taking their value
773         from the environment.  Default CFLAGS to -g if not set.
774         * Makefile.in: Have CFLAGS and LDFLAGS substituted from configure.
775         * lib/Makefile.in: Have CFLAGS substituted from configure.
776         Reported by Eric Backus and Tom McConnell.
778         * configure.in: m4_undefine changeword before using AC_ENABLE.
780         * m4.h: Declare prototypes for error (for ANSI compilers only),
781         prefix_all_builtins and reference_error.
782         Reported by Tom McConnell.
784         * input.c (set_word_regexp): Do not try to initialize the array
785         test from a string, this does not work with non-ANSI compilers.
786         Reported by Eric Backus.
788         * Makefile.in (dist): Clean examples/ before saving it.
789         (distclean-local): Also remove stamp-h.
790         Reported by Eric Backus.
792         * Makefile.in (_stackovf.c): Goal for compiling stacokovf.c with
793         non ANSI compilers.
794         Reported by Tom McConnell.
796         * checks/Makefile.in (clean): Depends on mostlyclean.
797         (mostlyclean): New goal.
799 Fri Jun 24 23:30:31 1994  Francois Pinard  (pinard@icule)
801         * Makefile.in (DISTFILES): Distribute install.sh.
802         * install.sh: New file, copied from elsewhere.
803         Reported by Assar Westerlund and Kaveh R. Ghazi.
805 Thu Jun 23 00:00:30 1994  Francois Pinard  (pinard@icule)
807         * configure.in: Define ENABLE_CHANGEWORD if --enable-changeword.
808         * acconfig.h: Explain ENABLE_CHANGEWORD.
810         [These modifs all depend upon ENABLE_CHANGEWORD and are adapted
811         from code provided by Pete Chown]
812         * m4.h: Add original_text field to u_t variant of union u.
813         Declare TOKEN_DATA_FUNC macro.
814         * builtin.c: Declare changeword.
815         (m4_changeword): New function.
816         * input.c: Include "regex.h", define variables with word regexps.
817         (input_init): Initialize the word regexp.
818         (set_word_regexp): New.
819         (next_token): Declare local variables, use the previous code if
820         default_word_regexp is true.  Else, match using a new code.  Save
821         the original text.
822         * macro.c (expand_token): Ship out original text if not a macro
823         name.
824         Reported by Krste Asanovic and Pete Chown.
826         [These modifs all depend upon ENABLE_CHANGEWORD]
827         * m4.h: Declare external user_word_regexp.
828         * m4.c: Declare user_word_regexp, and initialize it from
829         --word-regexp or -W, or NULL if not specified.
830         * input.c: Use user_word_regexp if specified, instead of
831         DEFAULT_WORD_REGEXP.
833         * Makefile.in (m4): Revert Jan 3 1994 change.  I'm unable to
834         agree with it.
836         * Makefile.in, lib/Makefile.in: Limit suffixes to .c and .o.
837         * checks/Makefile.in: Empty the suffix list.
838         Reported by Geoff Russell, Joel Sherrill and Roland McGrath.
840         * m4.c: Declare nesting_limit and initialize it to 250.
841         Implement -LNUMBER or --nesting-limit=NUMBER to change its
842         value.
843         * m4.h: Declare nesting_limit as external.
844         * macro.c (expand_macro): Stop execution whenever nesting limit
845         is exceeded.
846         Reported by Bengt Mertensson.
848         * eval.c (evaluate): Diagnose excess characters in eval input.
849         Things like `eval(08)' used to return 0 with no diagnostic.
851         * m4.h: Capitalize first letter of all macro arguments in
852         definitions.
854         * m4.c: Declare warning_status, initialize it to 0.  Add new
855         option -E, or --fatal-warnings, which sets warning_status to
856         EXIT_FAILURE instead.
857         * m4.h: Declare external warning_status.  Define EXIT_SUCCESS and
858         EXIT_FAILURE if not otherwise done by header files.
859         * m4.c: Delete declarations for EXIT_SUCCESS and EXIT_FAILURE.
860         * m4.c, input.c, output.c, symtab.c, builtin.c, macro.c, debug.c,
861         eval.c: Replace 0 by warning_status and 1 by EXIT_FAILURE in first
862         argument of all M4ERROR calls.
863         Reported by Noah Friedman.
865         * examples/incl-test.m4: Renamed from incl_test.m4.
866         * examples/include.m4: Include incl-test.m4 instead of
867         incl_test.m4.
868         * examples/multiquotes.m4: Renamed from multi-quotes.m.
870 Wed Jun 22 21:58:54 1994  Francois Pinard  (pinard@icule)
872         * configure.in: Avoid USE_STACKOVF if <siginfo.h> not found.  Note
873         that Jim developped stackovf.c on a 486 running SVR4.0 (ESIX), and
874         also tested it on a Sun Sparc workstation running SunOS 4.x.
876         * format.c (format): When not HAVE_EFGCVT, m4 was failing the
877         49.format check, abusing a `union values' argument with sprintf
878         without selecting the proper field.  Now, save the formatting type
879         first, delaying the fetch of the corresponding argument.
880         Reported by Joseph E. Sacco and Tom Quinn.
882         * format.c (format): Remove const from char *fmt declaration when
883         not HAVE_EFGCVT, because a NUL may be forced into it.
885         * m4.h: Declare atof() when not STDC_HEADERS.
886         Reported by Joseph E. Sacco.
888         * Regenerate configure using Autoconf 1.11, this corrects a
889         problem about an incorrect cpp seting on NeXT 3.1.
890         Reported by Alexander Lehmann.
892 Sun Jun  5 16:25:19 1994  Francois Pinard  (pinard@icule)
894         * m4.h (_): Change argument from `x' to `Args'.
896 Wed May  4 23:59:39 1994  Francois Pinard  (pinard@icule)
898         * Makefile.in: Remove all occurrences of $(MFLAGS), which were
899         bringing more evil than good on a few systems.
900         Reported by Greg A. Woods.
902 Fri Apr 22 15:59:35 1994  Francois Pinard  (pinard@icule)
904         * m4.h: Rename Args() to _().
905         * m4.h: Remove extern specifier from all function declarations.
907 Fri Apr 22 15:51:21 1994  Jim Avera (jima@netcom.com)
909         * stackovf.c: New file implementing stack-overflow detection.
910         * configure.in: Check for getrlimit, sigaction.  If all of
911         standard headers, getrlimit and sigaction, define USE_STACKOVF and
912         substitute ${U}stackovf.o for STACKOVF.
913         * acconfig.h: Declare USE_STACKOVF.
914         * Makefile.in: Distribute stackovf.c, link with $(STACKOVF).
915         * m4.h: Declare setup_stackovf_trap().
916         * m4.c: Call setup_stackovf_trap().
917         * tests/stackovf_test.sh: New file.
919 Wed Apr 13 14:10:30 1994  Francois Pinard  (pinard@icule)
921         * checks/Makefile.in: Rename .all-stamp to stamp-checks.
923         * Makefile.in (Makefile, etc.): Adapt for Autoconf 1.8.
925 Sun Jan 30 14:24:19 1994    (pinard at icule)
927         * m4.h: Remove definition of volatile, not used anymore.
928         Reported by Jim Meyering and Joseph E. Sacco.
930         * m4.h: Consistently use `do { ... } while (0)' in macros, instead
931         of `if ... else /* nothing */' for if macros.
932         Reported by Jim Meyering.
934         * builtin.c (m4_regexp): Reorganize the code for avoiding a
935         warning from gcc about `repl' possibly used before defined.
936         Reported by Jim Meyering.
938         * m4.h: Avoid a pre-ANSI <memory.h> together with <string.h>.
939         Reported by Jim Meyering.
941 Tue Jan 25 18:39:37 1994  Francois Pinard  (pinard at icule)
943         * m4.h: Move the conditional definition of volatile after the
944         inclusion of system files, because they may define it first.
946 Tue Jan  4 19:46:50 1994  Francois Pinard  (pinard@icule)
948         * checks/Makefile.in (CHECKS): Add a useless `*' before `[', to
949         get around a problem with Alpha make seeing a syntax error, there.
950         Reported by Vern Paxson.
952 Mon Jan  3 00:21:45 1994  Francois Pinard  (pinard@icule)
954         * Makefile.in: Do not define LDFLAGS, use CFLAGS on link calls.
955         Reported by Richard Stallman.
957 Sat Dec 25 08:06:05 1993  Francois Pinard  (pinard@icule)
959         * configure.in: Correct test for strerror, AC_FUNC_CHECK was used
960         instead of AC_HAVE_FUNCS.
961         Reported by Noah Friedman.
963 Wed Dec  1 09:37:53 1993  Francois Pinard  (pinard@icule)
965         * m4.c: Initialize show_help and show_version to zero.
967         * m4.c: Ensure EXIT_SUCCESS and EXIT_FAILURE are defined.
968         Use them in exit() and usage() calls.
970 Sat Nov 27 10:43:24 1993  Francois Pinard  (pinard@icule)
972         * m4.h: Delete extern sys_nerr, sys_errlist declarations, and
973         syserr() macro.  Delete errref, add reference_error and M4ERROR.
974         * m4.c: Replace errref, which was returning an input reference
975         string, with reference_error, which prints it on standard error.
976         * builtin.c, output.c: Use errno as second parameter to error,
977         instead of using syserr() with %s.
978         * *.c: Use M4ERROR instead of error: no more errref() with %s.
979         Doing so, the program name appears after the input reference
980         instead of before, which eases M-x next-error processing.
982 Wed Nov 24 22:16:15 1993  Francois Pinard  (pinard@icule)
984         * checks/get-them: Escape braces with backslashes in patterns,
985         because HPUX-9.01 awk needs this.
986         Reported by Jim Meyering.
988 Mon Nov 22 10:55:52 1993  Francois Pinard  (pinard@icule)
990         * builtin.c: Declare "FILE *popen ();".
992         * m4.h: Remove MESSAGE{,1,2}, WARNING1, FATAL{,1}, INTERNAL_ERROR
993         macros, replace error_message_prefix() declaration by errref()'s.
994         Declare xrealloc, for use in errref().
995         * m4.c: Delete error_message_prefix() function, add errref().
996         * *.c: Use error() systematically in place of all error macros,
997         now that error() flushes stdout first.  Make needed adjustments.
999         * m4.h: Remove const in sys_errlist[] declaration, it creates
1000         conflicts on SGI and Alpha.
1001         Reported by Kaveh R. Ghazi.
1003 Sat Nov 20 08:26:15 1993  Francois Pinard  (pinard@icule)
1005         * m4.c: Include <getopt.h> instead of "getopt.h".
1007         * configure.in: Output to config.h.  Use HAVE_FUNCS preferably.
1008         * acconfig.h: New, for documenting HAVE_EFGCVT.
1009         * Makefile.in: Distribute acconfig.h, .stamp-h.in and config.h.in,
1010         use them wherever appropriate.  Also use -I. for compilations.
1011         * lib/Makefile.in: Use -I.. for compilations.
1012         * *.c: Include <config.h> or "config.h".
1014         * m4.h: Test for HAVE_MEMORY_H instead of NEED_MEMORY_H.
1015         * configure.in: Use AC_HAVE_HEADERS(memory.h), delete AC_MEMORY_H.
1017 Wed Nov 17 09:34:55 1993  Francois Pinard  (pinard@icule)
1019         * builtin.c (m4_eval): Cast strlen to (int) before comparing.
1021         * input.c (input_init): Initialize quote and comment strings
1022         explicitely instead of calling set_quotes and set_comment: by
1023         doing so, we ensure we do not free uninitialized variables.
1025         * checks/check-them: Reverse arguments to both diff, so the
1026         expected is on the left and the obtained on the right.
1028         * m4.h: Add MESSAGE{,1,2}, WARNING1, FATAL{,1} and INTERNAL_ERROR
1029         macros. Delete declarations for m4error, warning, fatal and
1030         internal_error, add declaration for error_message_prefix.
1031         * m4.c:  Delete m4error, warning, fatal and internal_error
1032         routines, add error_message_prefix routine.
1033         * *.c: Replace m4error routine calls with MESSAGE* macro calls,
1034         warning with WARNING*, fatal with FATAL* and internal_error with
1035         INTERNAL_ERROR*.
1036         * Makefile.in (_m4.c): Do not adjust ansi2knr output for va_alist,
1037         this is not needed anymore.
1039         * m4.h: Declare extern FILE *debug.  Add DEBUG_PRINT{1,3} and
1040         DEBUG_MESSAGE{,1,2} macros.  Delete declarations for debug_print
1041         and debug_message, add declaration for debug_message_prefix.
1042         * debug.c: Remove static specifier for FILE *debug declaration.
1043         Delete debug_print and debug_message routines, add
1044         debug_message_prefix routine.
1045         * builtin.c, debug.c: Replace debug_print routine calls with
1046         DEBUG_PRINT* macro calls.
1047         * input.c, path.c: Replace debug_message routine calls with
1048         DEBUG_MESSAGE* macro calls.
1050         * m4.h: Remove inclusion of <varargs.h>.
1051         * debug.c: Include <stdarg.h> or <varargs.h>.
1052         (trace_format): Use stdarg instead of varargs if __STDC__.
1054         * configure.in: Remove checks for vfprintf and _doprnt.  These
1055         implementations use varargs tricks which are not portable enough.
1056         * lib/vfprintf.c: Deleted.
1057         * lib/_doprnt.c: Deleted.
1058         * lib/Makefile.in: Adjusted accordingly.  Remove LIBOBJS.
1059         Reported by Joel Sherrill.
1061         * path.c (add_include_directory): Use xstrdup.
1063         * builtin.c (find_builtin_by_name): Declare static.
1065         * *.[ch]: Add const to a few "char *" declarations.
1067         * configure.in: Remove commented tests for fileno() and fstat().
1068         * debug.c: Remove comments about HAVE_FILENO and HAVE_FSTAT.
1070         * debug.c (debug_flush_files): New.
1071         * m4.h: Declares it.
1072         * builtin.c (m4_syscmd, m4_esyscmd): Use it.
1073         Reported by Nicolas Pioch.
1075 Fri Nov 12 10:02:26 1993  Francois Pinard  (pinard@icule)
1077         * Makefile.in (m4.dvi): Use m4.texinfo instead of m4.texi.
1078         Reported by Joel Sherrill.
1080         * builtin.c (prefix_all_builtins): Instead of the table size, use
1081         the null entry at end for stopping the loop.  It was overwritten.
1082         Reported by Andreas Schwab and Jim Meyering.
1084         * builtin.c (prefix_all_builtins): Cast xmalloc to (char *).
1085         Reported by Kaveh R. Ghazi.
1087         * macro.c (call_macro): Add * in (*SYMBOL_FUNC (sym)) (...).
1088         Reported by Karl Vogel.
1090 Tue Nov  9 09:31:47 1993  Francois Pinard  (pinard@icule)
1092         * m4.h: Do not define volatile if already defined.
1093         Reported by Rene' Seindal.
1095         * lib/Makefile.in: Add a forgotten ALLOCA=@ALLOCA@.  Grrr!
1097         Reported by Bernhard Daeubler, Eric Backus, Hal Peterson, Hoang
1098         Uong, Ian Taylor, Kaveh R. Ghazi, Tom McConnell and Walter Wong.
1100 Mon Nov  8 21:11:44 1993  Francois Pinard  (pinard@icule)
1102         * m4.h: Define strchr and strrchr in terms of index and rindex,
1103         instead of the other way around.
1104         * builtin.c, m4.c, path.c: Use strchr instead of index.
1106         * input.c (next_char): Remove a "break;" after a "return ...;".
1107         Reported by Tom McConnell.
1109 Mon Nov  8 12:45:34 1993  Francois Pinard  (pinard@icule)
1111         * Release 1.1
1113         * configure.in: Do not copy check files in the build hierarchy.
1114         * checks/check-them: Identify the m4 version being checked.  For
1115         finding m4, look in $PATH instead of in the parent directory.
1116         * Makefile.in (check): Prepend `pwd` to $PATH before checking.
1117         * checks/Makefile.in (.all-stamp): Always create check files in
1118         the source hierarchy, not anymore in the build hierarchy.
1119         (check): cd to the source hierarchy before performing checks.
1120         Do not copy nor clean COPYING anymore, take it from `..'.
1121         Reported by Tom McConnell.
1123         * Makefile.in (Makefile): Use $(SHELL).
1124         (config.status): Use $(SHELL).  Use "config.status --recheck"
1125         instead of "configure --no-create", which is obsolete.
1126         Reported by Tom McConnell.
1128 Fri Nov  5 09:49:30 1993  Francois Pinard  (pinard@compy.IRO.UMontreal.CA)
1130         * m4.c (usage): Use "%s" instead of "m4" in format string.
1131         Reported by Jim Meyering.
1133         * Makefile.in: Distribute mkinstalldirs.
1134         Reported by Pierre Gaumond.
1135         Reported by Jim Meyering.
1136         Reported by Tom McConnell.
1137         Reported by Andreas Gustafsson.
1139         * checks/check-them: Renamed from checks/check_them.
1140         * checks/get-them: Renamed from checks/get_them.
1141         * checks/.all-stamp: Renamed from checks/.all_stamp.
1142         * checks/Makefile.in: Changed accordingly.
1143         Reported by Jim Meyering.
1145 Thu Nov  4 13:50:52 1993  Francois Pinard  (pinard@lagrande.IRO.UMontreal.CA)
1147         * lib/Makefile.in (dist): Correct permissions on files.
1149         * output.c: Declare tmpfile, some systems don't.
1151 Wed Nov  3 09:09:16 1993  Francois Pinard  (pinard@icule)
1153         * checks/Makefile.in (dist): Correct permissions on files.
1155         * Makefile.in (dist): Ensure recursive linking for subdirectory
1156         `examples', also set read/write permissions on all its files.
1158         * mkinstalldirs: New, from elsewhere.
1159         * Makefile.in: Use it.
1161         * debug.c: Synchronize debug messages and regular output when
1162         the debug file and stdout are redirected to the same file.
1163         * configure.in: Add (commented) checks for fileno and fstat.
1164         Reported by Jim Avera.
1166         * builtin.c (m4_ifelse): Diagnose excess arguments if 5, 8, 11,
1167         etc., arguments, then ignore the superfluous one.  m4 used to
1168         diagnose missing arguments and return the empty string.
1169         Reported by Nick S. Kanakakorn.
1171 Tue Nov  2 00:55:41 1993  Francois Pinard  (pinard@icule)
1173         * m4.c (main): At end of all input, ensure all undiverted text
1174         goes to the main output stream.
1175         Reported by Andreas Gustafsson.
1177         * m4.c (main): exit (0), instead of return 0.
1179         * m4.c: Implement -P and --prefix-builtins.
1180         * builtin.c: Delete const specifier on builtin_tab.
1181         (prefix_all_builtins): New.
1182         Reported by Noah Friedman.
1183         Reported by Scott Bartram.
1185         * c-boxes.el: New, from elsewhere.
1186         * Makefile.in: Distribute it.
1188         * m4.h: Do not define bcopy if <string.h> defines it.
1189         Reported by Stephen Perkins.
1191         * builtin.c (define_macro): Allow a missing second argument, in
1192         which case it is implied empty.  Affects define and pushdef.
1193         Reported by Eric Allman.
1195 Mon Nov  1 07:45:24 1993  Francois Pinard  (pinard@icule)
1197         * m4.h: Add blind_if_no_args in struct builtin, blind_no_args in
1198         struct symbol adn SYMBOL_BLIND_NO_ARGS macro.
1199         * builtin.c: Initialize all the blindness fields in builtin_tab.
1200         (define_builtin): Copy the blindness of a builtin into its symbol.
1201         * macro.c (expand_token): Avoid processing a blind builtin if the
1202         next character is not an opening parenthesis.
1203         Reported by David MacKenzie.
1204         Reported by Noah Friedman.
1206         * configure.in: Ensure an exit status of 0 on completion.
1207         Reported by Vivek P. Singhal.
1209         * eval.c (eval_lex): Admit both lower and upper case letters for
1210         bases greater than 10.  Only lower case letters were accepted.
1212         * eval.c (eval_lex): Recognize 0bDIGITS and 0rRADIX:DIGITS syntax.
1213         Reported by Krste Asanovic.
1215         * eval.c:  Rename NOT to LNOT.  Add XOR, NOT, LSHIFT and RSHIFT.
1216         * eval.c (logical_not_term): New name for not_term.
1217         * eval.c (xor_term): New, between or_term and and_term.
1218         * eval.c (not_term): New, between and_term and logical_not_term.
1219         * eval.c (shift_term): New, between cmp_term and add_term.
1220         Reported by Krste Asanovic: ~, ^, <<, >>.
1221         Reported by Ben A. Mesander: ** vs ^.
1223         * m4.c: Delete xmalloc.c, xrealloc.c, xstrdup.c.
1224         * m4.h: Delete xrealloc.c.
1225         * lib/xmalloc.c: New, from elsewhere.
1226         * lib/xstrdup.c: New, from elsewhere.
1227         * lib/Makefile.in: Distribute and compile them.
1229         * m4.c: Change progname to program_name.
1230         * builtin.c, eval.c, m4.c, m4.h: Rename error to m4error.
1231         * lib/error.c: New, from elsewhere.
1232         * lib/Makefile.in: Distribute and compile error.c.
1233         * configure.in: Check AC_VPRINTF and for strerror.
1234         * m4.c: Delete cmd_error.  Use error instead.
1235         * m4.c: Change label capitalisation to "ERROR", "Warning", etc.
1237         * m4.h: Delete #define const, let Autoconf takes care of this.
1239         * m4.c: Remove all code conditionalized by IMPLEMENT_M4OPTS.
1240         Merge parse_args into main.  Declare argv to be `char *const *',
1241         then remove superfluous casts.
1243         * m4.c: Rename --no-gnu-extensions to --traditional.
1244         Reported by Ben A. Mesander.
1246         * m4.c (usage): Add a status parameter.  Supply one in various
1247         calls.  Add --help processing.  Remove -V for --version.
1249         * lib/Makefile.in: Put $(CFLAGS) last in .c.o rule.
1251         * lib/Makefile.in: Have an AR=ar declaration.
1252         Reported by Eric Backus.
1253         Reported by Bjorn R. Bjornsson.
1254         Reported by Tom Tromey.
1255         Reported by Kristine Lund.
1256         Reported by Marion Hakanson.
1258 Sat Oct 30 12:51:47 1993  Francois Pinard  (pinard@icule)
1260         * Makefile.in (m4.info): Use -I$(srcdir) on $(MAKEINFO).
1261         Reported by Noah Friedman.
1263 Mon Oct 25 14:58:48 1993  Francois Pinard  (pinard@icule)
1265         * Makefile.in: Remove MDEFINES and cleanup.
1267 Wed Jun  9 14:59:46 1993  Francois Pinard  (pinard@icule)
1269         * Makefile.in (dist): Replace "echo `pwd`" by a mere "pwd".
1270         Create a gzip file.
1272 Sat Feb  6 14:59:22 1993  Francois Pinard  (pinard@icule)
1274         * Makefile.in, lib/Makefile.in, check/Makefile.in: In dist goals,
1275         ensure 777 mode for directories, so older tar's will restore file
1276         modes properly.
1278 Sun Jan 17 15:38:05 1993  Francois Pinard  (pinard@icule)
1280         * Makefile.in, lib/Makefile.in: Put $(CFLAGS) after $(CPPFLAGS),
1281         so the installer can override automatically configured choices.
1282         Reported by Karl Berry.
1284 Fri Jan 15 16:07:00 1993  Francois Pinard  (pinard@icule)
1286         * lib/vfprintf.c: Stolen from Oleo distribution and adapted.  The
1287         previous version was not working properly on m68k-hp-bsd4.3.
1288         Reported by Roland McGrath.
1290         * lib/_doprnt.c: Stolen from Oleo distribution.
1291         * configure.in: Check for _doprnt.c if vfprintf.c selected.
1292         * lib/Makefile.in: Distribute _doprnt.c.
1293         Do not distribute regex.[ch].old anymore.
1295 Fri Jan  1 19:42:23 1993  Francois Pinard  (pinard at icule)
1297         * Makefile.in, lib/Makefile.in: Reinstate $(CPPFLAGS), use it.
1298         Richard wants it there.
1300 Sun Dec 27 07:01:54 1992  Francois Pinard  (pinard at icule)
1302         * Makefile.in: Add DEFS to MDEFINES.
1303         * lib/Makefile.in (.c.o): Remove $(CPPFLAGS).
1304         (libm4.a): Remove the library before creating it.
1305         (distclean): Remove tags and TAGS too.
1307 Wed Dec 23 12:46:55 1992  Francois Pinard  (pinard at icule)
1309         * Makefile.in (dvi, m4.dvi): New goals.
1311         * builtin.c, eval.c, format.c, input.c, m4.[ch], m4.texinfo,
1312         macro.c, output.c, path.c, symtab.c: Change Copyright from
1313         1989-1992 to the explicit enumeration 1989, 1990, 1991, 1992.
1315         * examples/divert.m4: Deleted, this bug has been corrected.
1317         * Makefile.in (texclean, mostlyclean): New goals.
1319         * Makefile.in (clean): Remove clutter from ansi2knr.
1320         Reported by Pierre Gaumond.
1321         Reported by Greg A. Woods.
1323 Sun Dec 20 10:40:20 1992  Francois Pinard  (pinard at icule)
1325         * Makefile.in: Remove $(CPPFLAGS) from the .c.o rule.  The user
1326         might well use CFLAGS is s/he needs it.
1328         * Makefile.in: Allow installation of info files from a separate
1329         build directory.
1330         Reported by Jason Merrill.
1331         Reported by David MacKenzie.
1332         Reported by Skip Montanaro.
1333         Reported by Erez Zadok.
1334         Reported by Assar Westerlund.
1336 Sat Dec 19 08:21:34 1992  Francois Pinard  (pinard at icule)
1338         * Release 1.0.3
1339         This is still a beta release for the future GNU m4 version 1.1.
1341         * lib/alloca.c: New, from elsewhere.
1342         * lib/Makefile.in: Distribute it.  Define and use $(ALLOCA).
1344         * m4.h: Do not define index/rindex if already defined.  If
1345         FALSE/TRUE are already defined, do not redefine them, but merely
1346         define boolean typedef to int.
1348         * Makefile.in: Use $(DEFS) while compiling ansi2knr.
1349         * ansi2knr.c: Rewrite #ifdef HAVE_STRING_H || STDC_HEADERS,
1350         because some C compilers do not like connectives with #ifdef.
1351         * m4.h: Define `volatile' only if __GNUC__, instead of once for
1352         __GNUC__ and once for __STDC__.
1353         * lib/regex.h: Leave const alone, AC_CONST will take care of it.
1355         * checks/Makefile.in: Use .all_stamp instead of $(CHECKS) for
1356         Makefile dependencies.  Without it, make keeps destroying and
1357         remaking $(CHECKS) in a loop (why?).  Distribute .all_stamp.
1359         * m4.h, m4.c, builtin.c, output.c: Change all divertion/DIVERTION
1360         to diversion/DIVERSION, this was a spelling error.
1362         * m4.c: Declare version[], remove #include "version.h".
1363         * version.h: Deleted.
1364         * Makefile.in: Remove references to version.h.
1366         * output.c (shipout_text): Centralize all `#line NUM ["FILE"]'
1367         production, by using a simpler and more robust algorithm.  This
1368         solves the problem of synclines sometimes written in the middle of
1369         an output line.  Delete sync_line() and output_lines variable.
1370         * m4.h: Remove sync_line prototype and output_lines declaration.
1371         * input.c (next_char), output.c (shipout_text): Remove references
1372         to output_lines.
1373         * input.c (push_file, pop_file): Merely put the value -1 in
1374         output_current_line instead of calling sync_line, for delaying a
1375         single `#line NUM FILE' before next output line.  Do not test
1376         for sync_output, because this is unnecessary clutter.
1377         * output.c (make_divertion, insert_divertion): Idem.
1378         * input.c: Rename must_advance_line to start_of_input_line, for
1379         consistency.
1381         * debug.c (trace_header): Select a new debug line format, which
1382         better complies with GNU standards for formatting error messages.
1383         With option `-dfl', M-x next-error might be used on the output.
1384         * m4.c (vmesg): Adjust format of error output to GNU standards.
1385         * m4.texinfo: Adjust examples for `make check' to work.
1387         * m4.h, builtin.c, debug.c, input.c, macro.c, path.c: Use upper
1388         case for enum debug_info constants, which were all lower case.
1390         * builtin.c (m4_regexp, m4_patsubst): Use re_search instead of
1391         re_search_2.
1392         * lib/regex.[ch]: Use new version from textutils 1.3.6, with some
1393         collected patches.  I tried a few times using newer regex.[ch], it
1394         mysteriously stopped aborting with this one.  Insecure feeling...
1395         * lib/Makefile.in: Distribute regex.[ch].old, just in case!
1397 Fri Dec 18 11:08:03 1992  Francois Pinard  (pinard at icule)
1399         * m4.c: Change `--no-warnings' to `--silent'.
1400         Reported by David MacKenzie.
1402         * m4.c: Put all M4OPTS code upon IMPLEMENT_M4OPTS control, and
1403         leave it off for now.  See comment in m4.c for justification.
1404         Reported by David MacKenzie.
1406         * configure.in: Replace AC_USG by AC_HAVE_HEADERS(string.h).
1407         * m4.h, ansi2knr.c, lib/regex.h: Replace USG by HAVE_STRING_H.
1409         * Makefile.in: Add a new `info' goal.  Use macro MAKEINFO.
1411         * Makefile.in: Ensure recursive cleaning is done before local
1412         cleaning for all clean goals.
1414         * builtin.c (ntoa): Ensure the value is always interpreted as a
1415         signed quantity, whatever the radix is.
1417 Wed Nov 18 07:57:19 1992  Jim Meyering  (meyering@idefix)
1419         * builtin.c, format.c, input.c: Split long lines.
1420         * m4.c: Use typedef macro_definition instead of struct
1421         macro_definition.
1422         * symtab.c: Use typedef symbol instead of struct symbol.
1424 Tue Nov 17 01:58:40 1992  Francois Pinard  (pinard at icule)
1426         * *.[ch]: Remove all trailing whitespace, in code and comments.
1428         * configure.in: Find some awk.
1429         * Makefile.in: Add $(AWK) to MDEFINES.
1430         * checks/Makefile.in: Transmit $(AWK) to get_them.
1431         * checks/get_them: Use $AWK instead of gawk.  Add a close in the
1432         awk script when switching files, because without this, mawk runs
1433         out of file descriptors.
1435 Mon Nov 16 20:42:56 1992  Francois Pinard  (pinard at icule)
1437         * Makefile.in (realclean): Delete m4.info*.
1438         Reported by Jim Meyering.
1440         * Makefile.in: Adjust and link with checks/Makefile.
1441         * checks/Makefile.in: New.
1442         * configure.in: Output checks/Makefile.
1444         * checks/get_them: Have the dnl header of each test more
1445         recognizable by next-error, also use a better message.
1447 Mon Nov 16 07:48:52 1992  Jim Meyering  (meyering@idefix)
1449         * m4.h [__GNUC__]: Use __volatile__ instead of `volatile.'
1450         And use that only if __GNUC__ since we're using it's GCC-specific
1451         semantics that tell the compiler the associated function doesn't
1452         return.
1454         * builtin.c (substitute): Don't use character as an array index.
1455         (dumpdef_cmp): Make formal arguments `const void *' to avoid
1456         warnings with gcc -W -Wall on systems with qsort prototype.
1457         (m4_errprint): Cast obstack_finish to `char *' to avoid warnings
1458         from gcc -W -Wall.
1460         * eval.c (most functions): Add parentheses to assignments used
1461         as truth values go avoid warnings from gcc -Wall.
1463         * input.c, m4.c, output.c, path.c, symtab.c: Declare static
1464         any functions that don't need external scope.
1466         * builtin.c, debug.c, format.c, m4.c, m4.h, macro.c, symtab.c
1467         (many functions and arrays): Declare `const'.
1469 Sun Nov 15 09:42:09 1992  Francois Pinard  (pinard at icule)
1471         * *.[ch]: Rename nil to NULL, using the declaration from <stdio.h>,
1472         removing the declaration from m4.h.  Also rename false to FALSE
1473         and true to TRUE.
1475         * lib/Makefile.in (Makefile): New goal.
1477         * Makefile.in, lib/Makefile.in: Add a .c.o rule, so CFLAGS is not
1478         so heavily loaded.  It gets more easily overridable, calling make.
1479         Reported by Jim Meyering.
1481         * Makefile.in (dist): Get .fname from the current directory name,
1482         instead of from version.h.  I need updating many files manually,
1483         when the version changes, version.h is just one of them.
1485 Sat Nov 14 11:01:20 1992  Francois Pinard  (pinard at icule)
1487         * m4.h: Remove the tag `boolean' on the enum introducing typedef
1488         `boolean'.  This tag conflicts with <sys/types.h> on SVR4.
1489         Reported by Tom McConnell.
1491 Fri Nov 13 00:12:50 1992  Francois Pinard  (pinard at icule)
1493         * m4.texinfo: Correct the examples for 33.divert, 38.divnum,
1494         39.cleardiv, which were describing missing or spurious newlines.
1495         Modify examples 52.eval, 53.esyscmd and 54.sysval so the results
1496         do not depend on machine word size, `/bin/false' implementation,
1497         or `wc' output format.  `make check' is more dependable, now.
1499         * checks/check_them: Summarize the failed tests by listing their
1500         name, at end.  If none, issue `All checks successful'.  Output
1501         `Checking' instead of `Input file:'.
1503         * checks/get_them, checks/check_them: Reindented.
1505         * Makefile.in (dist): chmod a+r before making the tar file.
1507 Thu Nov 12 14:42:57 1992  Francois Pinard  (pinard at icule)
1509         * builtin.c (m4_dnl): Diagnose any parameter to `dnl'.
1511         * input.c (next_token): Reinitialize token_buttom just after using
1512         it as a watermark with obstack_free.  Or else, a future token, big
1513         enough for triggering reallocation of the obstack chunk, could
1514         void the initialized value of token_buttom, later causing panic in
1515         obstack_free.  Rename token_buttom to token_bottom everywhere.
1517         * m4.h: Before declaring errno, first include <errno.h> and
1518         ensure that it does not define errno.
1519         Reported by Richard Stallman.
1521 Wed Nov 11 17:40:35 1992  Francois Pinard  (pinard at icule)
1523         * builtin.c: Define and use DECLARE macro for builtins.
1525         * builtin.c (m4_ifelse): Avoid any diagnostic when exactly one
1526         argument, this is a common idiom for introducing long comments.
1528         * builtin.c (m4_ifelse): If 3n + 2 arguments, diagnose missing
1529         arguments.  The last argument was silently ignored.
1531         * m4.c (cmd_error): Add a missing semicolon before va_end().
1533 Tue Nov 10 08:57:05 1992  Francois Pinard  (pinard at icule)
1535         * Makefile.in: Now handle protoized sources.  Define and use U.
1536         Compile and use ansi2knr with old compilers.  Update DISTFILES.
1537         Add `aclocal.m4' to `configure' dependencies.
1538         * ansi2knr.c: New, from Ghostscript distribution.
1539         * configure.in: Define U through FP_PROTOTYPES for old compilers.
1540         Add AC_ISC_POSIX, AC_CONST, AC_SIZE_T.
1541         * aclocal.m4: New, provide FP_PROTOTYPES.
1542         * m4.h: Conditionnaly protoized through Args, save for varags.
1543         * builtin.c: Protoized.  Then:
1544         Include <sys/types.h> if size_t is not defined, before "regex.h".
1545         (m4_ifelse): Fetch built-in name properly for diagnostic.
1546         (m4_dumpdef): Remove wrong (char *) cast calling dump_symbol.
1547         (m4_regexp): Add const to `msg' declaration.
1548         (m4_patsubst): Add const to `msg' declaration.
1549         * debug.c: Protoized, save for varargs.
1550         * eval.c: Protoized.
1551         * format.c: Protoized.
1552         * input.c: Protoized.
1553         * m4.c: Protoized, save for varargs.  Then:
1554         (xfree): Accept void * instead of char *.
1555         (xmalloc): Return void * instead of char *.
1556         (xrealloc): Accept and return void * instead of char *.
1557         * macro.c: Protoized.
1558         * output.c: Protoized.
1559         * path.c: Protoized.  Then cast some (char *) over xmalloc's.
1560         * symtab.c: Protoized.
1562 Fri Nov  6 02:05:21 1992  Francois Pinard  (pinard at icule)
1564         * m4.texinfo: Remove directory from diagnostics in 30.include,
1565         51.eval, 56.errprint and 57.m4exit tests.
1567         * m4.h: Remove declarations for int or void system functions, they
1568         cause more conflicting trouble than they make good.
1570         * configure.in: Avoid configuration header file.  Add some tests.
1571         * m4.h: Remove #include "config.h".
1572         * Makefile.in, lib/Makefile.in: Implement Autoconf interface.
1573         Then, rewritten for better compliance with GNU standards.
1575 Thu Nov  5 12:37:13 1992  Francois Pinard  (pinard at icule)
1577         * format.c (format): Avoid syntax error if not HAVE_EFGCVT,
1578         because of a misplaced #endif.
1580         * Many *.[hc] files: Correct intra-line spacing here and there,
1581         according to GNU indent 1.6 advice.
1583         * configure.in: New, using Autoconf 1.2.
1584         * m4.h: Reverse NO_MEMORY_H to NEED_MEMORY_H.
1585         * Delete old configure.in, configure, etc/configure.in,
1586         etc/configure, lib/configure.in, lib/configure and config/*.
1587         Reported by Jason Merrill.
1589         * symtab.c (hash): Change (char) NULL to '\0'.
1590         Reported by Jason Merrill.
1592         * Delete .vers, etc/newdist.sh, etc/newvers.sh and
1593         etc/nextvers.sh.  Release numbers will be edited `by hand'.
1594         * version.h: De-automatize, force value in.
1596         * m4.c: Changes in order to use a newer getopt.h.
1597         Reported by David MacKenzie.
1599         * checks/: New name for examples/.
1600         * checks/get_them: New location for etc/get_examples.
1601         * checks/check_them: New location for etc/check_examples.
1602         * Makefile.in, checks/get_them, checks/check_them: Adjust.
1603         * lib/vfprintf.c: New location for etc/vfprintf.c.
1604         * Delete empty etc/.
1605         * examples/: New name for test/.
1607 Tue Mar 10 00:29:46 1992  Francois Pinard  (pinard at icule)
1609         * Makefile.in (check): Add m4 as dependency.
1611         * m4.c: Accept --no-warnings instead of --no_warnings, and
1612         --no-gnu-extensions instead of --no_gnu_extensions.  Make the
1613         usage message more informative.
1614         Reported by David MacKenzie.
1616 Mon Mar  9 14:53:40 1992  Francois Pinard  (pinard at icule)
1618         * etc/check_examples: New name for check_examples.sh.
1619         * etc/get_examples: New name for get_examples.sh.
1620         * Makefile.in, etc/Makefile.in: Use new names.
1622         * Makefile.in: Transmit $(CC) while making in lib.
1624         * Many *.[hc] files: GNU indent'ed, with further fine tuning of
1625         code disposition by hand.
1627 Sun Mar  8 11:01:55 1992  Francois Pinard  (pinard at icule)
1629         * m4.h: Delete definitions for abort() and exit().
1630         Reported by Richard Stallman.
1632         * config/hmake-unicos, config/s-unicos.h: New files.
1633         Reported by Hal Peterson.
1635         * eval.c (exp_term): Have N^0 return 1.
1636         Reported by Michael Fetterman.
1638         * eval.c, input.c, m4.h: Remove last comma in enums.
1639         Reported by Mike Lijewski.
1641         * Transfer of maintenance duties from Rene' to Franc,ois.
1643 Thu Oct 24 15:18:46 1991  Rene' Seindal (seindal at diku.dk)
1645         * Release 1.0.  Many thanks to those, who provided me with bug
1646         reports and feedback.
1648         * Uses GNU configure, taken from the gdb distribution.
1650         * Uses GNU getopt(), with long option names.
1652         * The -Q/+quiet option is added, which suppresses warnings about
1653         missing or superflous arguments to built-in macros.
1655         * Added default options via the M4OPTS environment variable.
1657         * The built-in format can now be configured to use sprintf as
1658         the formatting engine, for systems without [efg]cvt(3).
1660         * GNU library code is moved to the ./lib subdirectory; other
1661         utility files are now in ./etc.
1663         * Several minor bugs have been fixed.
1665 Fri Jul 26 15:28:42 1991  Rene' Seindal (seindal at diku.dk)
1667         * Fixed various bugs.  Release 0.99, manual 0.09.  Many thanks to
1668         Francois Pinard and Roland H. Pesch for providing me with reports.
1670         * The builtins incr and decr are now implemented without use of
1671         eval.
1673         * The builtin indir is added, to allow for indirect macro calls
1674         (allows use of "illegal" macro names).
1676         * The debugging and tracing facilities has been enhanced
1677         considerably.  See the manual for details.
1679         * The -tMACRO option is added, marks MACRO for tracing as soon
1680         as it is defined.
1682         * Builtins are traced after renaming iff they were before.
1684         * Named files can now be undiverted.
1686         * The -Nnum option can be used to increase the number of
1687         divertions available.
1689         * Calling changecom without arguments now disables all comment
1690         handling.
1692         * The function m4_patsubst() is now consistently declared
1693         static.
1695         * A bug in dnl is fixed.
1697         * A bug in the multi-character quoting code is fixed.
1699         * Several typos in the manual has been corrected.  More probably
1700         persist.
1702         * The m4.info file is now installed along with the program.
1704 Thu Nov 15 21:51:06 1990  Rene' Seindal (seindal at diku.dk)
1706         * Updated and enhanced version.  Release 0.75, manual 0.07.
1708         * Implemented search path for include files (-I option and
1709         M4PATH envronment variable).
1711         * Implemented builtin "format" for printf-like formatting.
1713         * Implemented builtin "regexp" for searching for regular
1714         expressions.
1716         * Implemented builtin "patsubst" for substitution with regular
1717         expressions.
1719         * Implemented builtin "esyscmd", which expands to a shell
1720         commands output.
1722         * Implemented "__file__" and "__line__" for use in error
1723         messages.
1725         * Implemented character ranges in "translit".
1727         * Implemented control over debugging output.
1729         * Implemented multi-character quotes.
1731         * Implemented multi-character comment delimiters.
1733         * Changed predefined macro "gnu" to "__gnu__".
1735         * Changed predefined macro "unix" to "__unix__", when the -G
1736         option is not used.  With -G, "unix" is still defined.
1738         * Changed "shift", "$@" and "$*" to not insert spaces afters
1739         commas.
1741         * Added program name to error messages.
1743         * Fixed two missing null bytes bugs.
1745 Mon Jan 22 21:08:52 1990  Rene' Seindal (seindal at diku.dk)
1747         * Initial beta release.  Release 0.50, manual 0.05.
1749         $Revision$ $Date$