History log of /freebsd-10.0-release/usr.bin/m4/eval.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 250226 03-May-2013 jkim

Reduce diff with upstream.


# 234310 15-Apr-2012 bapt

Improve m4 compatibility with GNU m4 extension ** (exponent)

Submitted by: Marc Espie (espie@OpenBSD.org)
Approved by: des@ (mentor)


# 228701 19-Dec-2011 bz

Unbreak the build after r228697 adding the { } block to make clear which
if the else belongs to.


# 228697 18-Dec-2011 bapt

Reimplement support for the ** (exponent) gnu extension, make it available thought the -g (mimic gnu) option

Reviewed by: cognet
Approved by: cognet
Discussed with: espie@OpenBSD.org (upstream)


# 228063 28-Nov-2011 bapt

Synchronize with laster version of m4 from OpenBSD and NetBSD
This bring better compatibility with gnum4

Reviewed by: cognet
Approved by: cognet
Obtained from: OpenBSD, NetBSD


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 133858 16-Aug-2004 tjr

Store a pointer to "null" in struct ndblock's defn member instead of a
duplicate allocated on the heap; the address defn points to is significant,
and is checked against the address of "null" in certain conditionals.

PR: 59883
MFC after: 1 week


# 114368 01-May-2003 tjr

Flush streams before calling system() so that the output appears in the
right place in the output stream when redirected to a file (when full
buffering is enabled). Noticed by schweikh on freebsd-standards.


# 100014 15-Jul-2002 jmallett

Kill extraneous whitespace.


# 95982 03-May-2002 jmallett

Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.

Add __FBSDID() properly.

Requested by: bde, mike


# 95887 01-May-2002 jmallett

Merge local changes again, against ANSIfied m4(1).


# 95095 19-Apr-2002 jmallett

Crank WARNS.

Cast sizeof() to (int), as it's being compared against an int, not a size_t.
If i is changed to a size_t, it means the logic must be slightly changed later
in the flow, where --i is checked to be >= 0. I am not sure I want to make a
logic change to account for clearing up a warning, when an aesthetic one will
keep from modifying the logic.

Other harmless casts, that I think I've made in the right directions.

Make gpbc() an inline function, rather than an obfuscated macro, make its
scratch space local, rather than global. The previous macro used a dirty
hack (logical AND in place of a conditional) which would lead GCC to throw
a fit (rightly so) as the logical check, as well as the incrementation of
a variable, were not used for anything.

const'ify a few places where gcc3 yells. xstrdup() some global consts in
places where we xstrdup() when not using consts, but tried to assign them
to non-consts before.

Don't use execv(2) if we don't have the kind of arguments it wants.

Reviewed by: asmodai obrien tjr
Submitted by: tjr (a gcc3 build log)


# 95060 19-Apr-2002 jmallett

Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option,
$FreeBSD$ identifiers, and fix initialisation to stderr to happen in a function
as stderr is not the same in CURRENT as in OpenBSD.

Reviewed by: obrien


# 94957 17-Apr-2002 jmallett

This adds support for -s to the m4(1) utility, which causes #line directives
to be emitted as per the C preprocessor. It updates the manual page in
regards to standards accordingly.

PR: standards/36075
Submitted by: tjr
Reviewed by: mike
MFC after: 1 week


# 80289 24-Jul-2001 obrien

Remove the local basename in favor of the libc version.
Remove xmalloc and xstrdup and do the error checking at the place of use.


# 77378 29-May-2001 gshapiro

Make sure the len() builtin always returns an answer. Previously,
len(`') didn't return an answer. Now it returns 0.

PR: bin/12942
MFC after: 5 days


# 76822 18-May-2001 gshapiro

String operations could silently truncate long strings, leaving the output
corrupted. Mark's patch fixes this be removing the MAXTOK limitation on
substring operations and allowing the putback buffer size to be the limiting
factor. If the putback buffer size if reached, m4 gives an error instead of
silently truncating the string.

PR: bin/26619
Submitted by: Mark Peek <mark-ml@whistle.com>
MFC after: 5 days


# 69246 27-Nov-2000 kris

Fix format string warnings.

Submitted by: nra
Obtained from: NetBSD


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 38926 07-Sep-1998 steve

Make the builtin unix macro work as it should (well like Solaris's,
GNU's, and OSF1's).


# 28386 18-Aug-1997 jlemon

divnum is no longer silently restricted to the range 0..9. (cf: 4098)

changequote(,) is now a synonym for changequote(). (cf: 803)

buffer size for translit() enlarged to handle a full string

PR: 803, 4098


# 27625 23-Jul-1997 charnier

Use err(3) instead of local redefinition. Remove progname.


# 24901 13-Apr-1997 joerg

Make the $@ macro behave as described in the man page.

This patch has been submitted by Andreas Burmester (i think) on the
German Usenet long ago. Andreas told me that our m4 has quite more
subtle bugs, so we might consider using NGU m4 instead.


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 7896 16-Apr-1995 ache

1) kill temp diver upon exit
2) add logical ops, fix ! precedence, implement unary +, fix exp
Obtained from: NetBSD


# 7004 11-Mar-1995 ache

Fix syscmd() output out of sync
Submitted by: smp@clem.systemsix.com


# 5165 18-Dec-1994 ache

Make m4 more 8bit clean.
Don't use is*(EOF)
This fix core dump when LANG setted to 8bit wide charset
and ENABLE_STARTUP_LOCALE


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources