OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Marc Espie (espiecvs.openbsd.org)
Date: Tue Sep 06 2005 - 10:33:22 CDT


CVSROOT: /cvs
Module name: src
Changes by: espiecvs.openbsd.org 2005/09/06 09:33:21

Modified files:
        usr.bin/m4 : eval.c extern.h m4.1 main.c misc.c
        regress/usr.bin/m4: Makefile quotes.m4 quotes.out
Added files:
        regress/usr.bin/m4: comments.m4 comments.out reconstitute
                            synch1.m4 synch1.out synch1bis.out

Log message:
finally make our m4 SusV3-compliant.

- changecom and changequote have a simple definition (that matches gnu-m4,
coincidentally, so we no longer need two distinct modes for these)

- off-by-one bug in -s, this finally works.

- reorder main parser loop, so that we can use alphabetic constructs in
quotes/comments.

- rename putback to pushback, this matches comments, and makes more sense.

- more uniform (and updated) description of changequote/changecom.

- new, systematic regression tests of comments/quotes.

- framework to test -s: one perl script to reconstitute `full' files with
all line numbers, so that we can verify the output without needing a
complete match.

okay otto, fries