Home | History | Annotate | Download | only in m4
History log of /src/usr.bin/m4/eval.c
RevisionDateAuthorComments
 1.30  09-Feb-2024  andvar fix spelling mistakes, mainly in comments and log messages.
 1.29  24-May-2022  andvar fix various typos in comment, documentation and log messages.
 1.28  27-Jun-2020  uwe eval: Make radix optional even if minimum result width is specified.
This is what GNU m4 does too.
 1.27  30-Jul-2018  kre Avoid an infinite loop caused by a line accidentally dropped
in 1.22 (almost 30 months ago!)

[ Discovered by rhialto@ ]
 1.26  23-Oct-2017  christos branches: 1.26.2; 1.26.4;
remove the braces I accidentally added.
 1.25  22-Oct-2017  christos PR/52638: matthew green: missing argument check causes m4 to core in ifelse()
 1.24  16-Jan-2016  christos branches: 1.24.8;
More gnu compatibility:
- handle macros > $9
- handle character remapping the the gnu way.
Add a shortcut for the "fake freeze" files to not expand include macros
during thawing.
 1.23  29-Jan-2015  christos use strtoi instead of strtonum, since this is a tool.
 1.22  21-Aug-2011  dholland branches: 1.22.20;
Requires stdint.h.
 1.21  05-Mar-2011  christos add mimic_gnu for eval print.
 1.20  26-Oct-2009  christos resolve conflicts.
 1.19  06-Jul-2004  mycroft Fix a core dump.
 1.18  20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.17  07-Aug-2003  agc branches: 1.17.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.16  31-Jan-2002  tv Protect __RCSID and __COPYRIGHT from being invoked if not defined.
 1.15  21-Jan-2002  tv Make compilable from src/tools/m4 on non-NetBSD hosts.
 1.14  14-Nov-2001  tv Pull in various changes from OpenBSD, most from Marc Espie, including:
* Provide some GNUisms as extensions.
* Provide dynamically growable string space.
* Make define(defn(foo)) work correctly for builtins.
(The current version is supposed to be capable of satisfying autoconf.)

All still relevant NetBSD changes have been preserved in this version, and
formatting and style fixes have been applied in various places.

Thanks to Masao Uebayashi <uebayasi@soum.co.jp> for pointing this out.
 1.13  17-Oct-2000  jdolecek Fix unconsistent spacing/tabs. Adresses bin/11158 by Nathan Ahlstrom.
 1.12  11-Oct-2000  is More format string cleanup by sommerfeld.
 1.11  20-Apr-1999  mrg branches: 1.11.8;
use mkstemp.
 1.10  19-Oct-1997  lukem branches: 1.10.4;
WARNSify, fix .Nm usage, getopt returns -1 not EOF, deprecate register
 1.9  08-Feb-1997  cgd Simplify some push-back code (e.g. for left and right quotes) so that
it uses pbstr() instead of doing the characters individually (in
reverse order) with putback().
Fix dodiv() so that divert(<out-of-range stream>) doesn't cause "divnum" to
return 0, but rather the stream number specified to divert(). Macros
like PUSHDIVERT/POPDIVERT rely on this. The new behaviour is compatible
with vendor m4 implementations.
 1.8  09-Jan-1997  tls RCS ID police
 1.7  10-Nov-1996  pk Use COMMA in stead of ',' when pushing items back on the stack, for
consistency with the macro parsing routine. Suggested by Brian Grayson.
 1.6  06-Nov-1996  pk Implement `$@' macro, as promised by the manual page (PR#2914).
 1.5  13-Jan-1996  pk Handle multichar comment and quote delimiters (up to 5 characters, per the
manual page). Takes care of PR#485.
 1.4  28-Sep-1995  tls Sync with 4.4BSD-Lite2
 1.3  29-Aug-1994  mycroft branches: 1.3.2;
Remove temporary files on m4exit, from Thomas Eberhardt.
 1.2  19-Jun-1994  glass upgrade to 4.4-lite m4. no local changes of note
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  26-Oct-2009  christos Import new m4 from OpenBSD.
 1.1.1.2  28-Sep-1995  tls imported from 44lite2
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.2.2  29-Aug-1994  mycroft Remove temporary files on m4exit, from Thomas Eberhardt.
 1.3.2.1  29-Aug-1994  mycroft file eval.c was added on branch netbsd-1-0 on 1994-08-29 03:24:45 +0000
 1.10.4.1  19-Oct-2000  he Pull up revision 1.12 (requested by he):
Format string cleanup.
 1.11.8.1  18-Oct-2000  tv Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.17.2.2  10-Jul-2004  tron Pull up revision 1.19 (requested by mycroft in ticket #615):
Fix a core dump.
 1.17.2.1  22-Jun-2004  tron Pull up revision 1.18 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.22.20.1  21-Mar-2018  martin Pull up following revision(s) (requested by mrg in ticket #1587):
usr.bin/m4/eval.c: revision 1.25
usr.bin/m4/eval.c: revision 1.26
PR/52638: matthew green: missing argument check causes m4 to core in ifelse()

remove the braces I accidentally added.
 1.24.8.2  07-Aug-2018  martin Pull up following revision(s) (requested by kre in ticket #956):

usr.bin/m4/eval.c: revision 1.27

Avoid an infinite loop caused by a line accidentally dropped
in 1.22 (almost 30 months ago!)
[ Discovered by rhialto@ ]
 1.24.8.1  11-Apr-2018  martin Pull up following revision(s) (requested by mrg in ticket #732):

usr.bin/m4/eval.c: revision 1.25
usr.bin/m4/eval.c: revision 1.26

PR/52638: matthew green: missing argument check causes m4 to core in ifelse()

remove the braces I accidentally added.
 1.26.4.1  10-Jun-2019  christos Sync with HEAD
 1.26.2.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

RSS XML Feed