History log of /freebsd-10.0-release/usr.bin/m4/
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


251369 04-Jun-2013 joel

mdoc: convert .Fd to .In, which is much nicer.


250926 23-May-2013 jkim

Work around build breakages with GCC 4.2.

Reported by: tinderbox


250226 03-May-2013 jkim

Reduce diff with upstream.


249657 19-Apr-2013 ed

Add the Clang specific -Wmissing-variable-declarations to WARNS=6.

This compiler flag enforces that that people either mark variables
static or use an external declarations for the variable, similar to how
-Wmissing-prototypes works for functions.

Due to the fact that Yacc/Lex generate code that cannot trivially be
changed to not warn because of this (lots of yy* variables), add a
NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this
specific compiler warning.

Announced on: toolchain@


244927 01-Jan-2013 antoine

Add missing DPADD.


241797 21-Oct-2012 andreast

Fix build.


241777 20-Oct-2012 ed

More -Wmissing-variable-declarations fixes.

In addition to adding missing `static' keywords:
- bin/dd: Pull in `extern.h' to guarantee consistency with source file.
- libexec/rpc.rusersd: Move shared globals into an extern.h.
- libexec/talkd: Move `debug' and `hostname' into extern.h.
- usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree.
- usr.bin/m4: Move `end_result' into extern.h.
- usr.sbin/services_mkdb: Move shared globals into an extern.h.


241331 07-Oct-2012 joel

Remove contractions.


235789 22-May-2012 bapt

Fix world after byacc import:
- old yacc(1) use to magicially append stdlib.h, while new one don't
- new yacc(1) do declare yyparse by itself, fix redundant declaration of
'yyparse'

Approved by: des (mentor)


234850 30-Apr-2012 bapt

Respect mathematical operation order piority with the exponent gnu extension

Obtained from: OpenBSD
Approved by: des (mentor)


234310 15-Apr-2012 bapt

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

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


231564 12-Feb-2012 ed

Globally replace u_int*_t from (non-contributed) man pages.

The reasoning behind this, is that if we are consistent in our
documentation about the uint*_t stuff, people will be less tempted to
write new code that uses the non-standard types.

I am not going to bump the man page dates, as these changes can be
considered style nits. The meaning of the man pages is unaffected.

MFC after: 1 month


228701 19-Dec-2011 bz

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


228698 18-Dec-2011 dim

Repair breakage after r228697: since m4 now uses pow(3), it needs -lm.

Pointy hat to: bapt


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


227241 06-Nov-2011 ed

Mark global functions and/or variables in m4(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.


226422 16-Oct-2011 ed

Fix build of m4 with WARNS=6.

Change the parser; rename `exp' to `exponent' not to collide with exp(3).


218909 21-Feb-2011 brucec

Fix typos - remove duplicate "the".

PR: bin/154928
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after: 3 days


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


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


172261 21-Sep-2007 kevlo

Use NULL instead of 0 for the return value of fopen().

Approved by: re (kensmith)


140941 28-Jan-2005 ru

Let bsd.prog.mk set SRCS and MAN to their default values.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


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


132004 12-Jul-2004 tjr

Respect locale settings from the environment.


131511 03-Jul-2004 tjr

Document missing multibyte character support in utilities specified
by POSIX.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


129392 18-May-2004 stefanf

Don't depend on NULL's expansion being a pointer, cast it before it is passed
to variadic functions.

Approved by: das (mentor)


128789 01-May-2004 smkelly

Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
precedence. Add short-circuit evaluation.

PR: bin/60914
Reviewed by: petef
Discussed with: jeff, petef


128788 01-May-2004 smkelly

m4 script to test the functionality of math operators in eval().

Submitted by: K S Braunsdorf <sed@ksb.npcguild.org>


123380 10-Dec-2003 maxim

Use .St -susv2 rather than "The Single UNIX specification".

Submitted by: osa


116046 08-Jun-2003 charnier

The .Nm utility


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.


113898 23-Apr-2003 schweikh

Correct typo in COMPATIBILITY section: s/esycmd/esyscmd


108317 27-Dec-2002 schweikh

english(4) police.


106210 30-Oct-2002 jmallett

When we appear to want a signed value from sizeof(), use ssize_t in the cast,
rather than int.


102917 04-Sep-2002 jmallett

Die on -D=foo, when parsing options - we can't let someone define (nil).

MFC after: 3 days


100014 15-Jul-2002 jmallett

Kill extraneous whitespace.


99941 14-Jul-2002 jmallett

Add a default case to the getopt(3) switch, remove a blank line nearby.


99939 14-Jul-2002 jmallett

Functions declared as <type> <identifier>(<nil>) should be declared as
<type> <identifier>(<void-type>) in ANSI C.


99938 14-Jul-2002 jmallett

Remove prototype for main().


98491 20-Jun-2002 jmallett

Whitespace fixes to line-up EOL escapes whose right-most extraints changed in
the previous revision due to the biggest line changing.


98490 20-Jun-2002 jmallett

Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.

This messes up some indentation in mdef.h for some macros.


98107 10-Jun-2002 jmallett

Note that this appeared at least as early as PWB UNIX.

Use the literal string 'PWB UNIX', as we still have no .At macro for it.


97780 03-Jun-2002 jmallett

Make the manpage consistent with the code on the subject of comments, as to
not change the code to always do the "GNU" thing, as it's possible people
rely on BSD m4(1) traditionally resetting comment characters in case of no
arguments to the changecom function.

PR: bin/17480 (I think this satisfies the problem report)


97575 30-May-2002 ru

mdoc(7) police: tidy up the markup.


97298 26-May-2002 tjr

Add Standards, Diagnostics and History sections.


97296 26-May-2002 tjr

If a file operand cannot be processed, go on to process any remaining files
but exit non-zero.


95998 03-May-2002 jmallett

Rename `eqrelval' which was renamed from `eqrel' to quiet a shadow warning
to `op' as suggested by Bruce, as this is used to store the operator between
vl and vr.

Submitted by: bde


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


95918 02-May-2002 jmallett

Remove redundant declarations of getopt(3) externals (since <unistd.h> does
take care of them), and add __FreeBSD__ to the defined() checks for the
_PATH_DIVNAME.


95888 01-May-2002 jmallett

Add some spurious veritcal whitespace to reduce diffs to OpenBSD.


95887 01-May-2002 jmallett

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


95164 20-Apr-2002 jmallett

Use %zu to print a size_t, not %u and definitely not %d.

Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going
to mix WARNS and NO_WERROR.

Submitted by: fenner


95159 20-Apr-2002 jmallett

Print a size_t as %u not %d.

Pointed out by: mike, des's tinderbox


95124 20-Apr-2002 charnier

Use `The .Nm utility'


95097 20-Apr-2002 ache

Prevent sign extension (again)


95095 20-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)


95071 19-Apr-2002 ache

Prevent sign extension on characters with 8bit set


95061 19-Apr-2002 jmallett

Add __FBSDID, this file was unmodified so it was missed in the initial sweep.


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


95059 19-Apr-2002 jmallett

Merge differences and correct the manual page.


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


92921 22-Mar-2002 imp

remove __P


90745 16-Feb-2002 jmallett

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


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.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


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


75551 16-Apr-2001 gshapiro

Clean up temporary file(s) and directory when m4 exits without falling
through main() (e.g., signals or calls to errx()).

PR: conf/25715


73240 28-Feb-2001 jhay

The secure temporary directory is always created, so always remove it.


69246 27-Nov-2000 kris

Fix format string warnings.

Submitted by: nra
Obtained from: NetBSD


69030 22-Nov-2000 kris

Create temporary files in a secure directory, instead of using multiple
filenames based on a single invocation of mktemp() in /tmp, which is
easily predictable after the first one.

Audited by: markm


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


65428 04-Sep-2000 imp

getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.


64717 16-Aug-2000 imp

Remove unnecessary extern definition of strrchr. It is defined in
string.h, which already was included.


53168 15-Nov-1999 kris

Typo

Obtained from: OpenBSD


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


49823 15-Aug-1999 mpp

Various man page cleanup:

- Sort xrefs
- Be consistent with section names as outlines in mdoc(7).
- Other misc mdoc cleanup.

PR: doc/13144
Submitted by: Alexey M. Zelkin <phantom@cris.net>


41743 13-Dec-1998 steve

Change the wording to reflect that only the first character of the two
arguments to changequote are significant.

PR: 8282


38926 07-Sep-1998 steve

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


37169 26-Jun-1998 rnordier

Correct typo: loosing --> losing


34801 23-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.


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.


27369 13-Jul-1997 peter

kill the undead


27359 13-Jul-1997 bde

The m4 doc sources aren't in Lite* or FreeBSD, and Lite2 removed this
unused Makefile.


27242 06-Jul-1997 bde

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


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.


24629 04-Apr-1997 jmallett

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


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22590 12-Feb-1997 mpp

Typo fix.

Obtained from: NetBSD-bugs PR# 3214


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


16749 26-Jun-1996 jmallett

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


13123 30-Dec-1995 peter

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


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


5167 19-Dec-1994 ache

Skip nulls in putback to don't confuse with EOFs


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


2021 11-Aug-1994 jkh

Somewhere in the shuffle this lost its man page. Use the 1.1.5
one.
Submitted by: jkh


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.