Sync with FreeBSD. Notable changes:
authorPeter Avalos <pavalos@dragonflybsd.org>
Wed, 27 Dec 2006 21:29:02 +0000 (21:29 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Wed, 27 Dec 2006 21:29:02 +0000 (21:29 +0000)
commit10c3f15b12b6834ada2e49e9e9810a546f929483
treeaf753a70951c29900b9603007170b1d2e78da87b
parentc6c5cf401466c6b4b5967f56d89c1fba6ef5c312
Sync with FreeBSD.  Notable changes:

Kill extraneous whitespace.

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).

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.

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

Respect locale settings from the environment.

Add a new m4 script to test the functionality of math operators in eval().
14 files changed:
usr.bin/m4/Makefile
usr.bin/m4/TEST/math.m4 [new file with mode: 0644]
usr.bin/m4/eval.c
usr.bin/m4/expr.c
usr.bin/m4/extern.h
usr.bin/m4/gnum4.c
usr.bin/m4/look.c
usr.bin/m4/m4.1
usr.bin/m4/main.c
usr.bin/m4/mdef.h
usr.bin/m4/misc.c
usr.bin/m4/pathnames.h
usr.bin/m4/stdd.h
usr.bin/m4/trace.c