head	1.2;
access;
symbols
	RELENG_8_4:1.2.0.8
	RELENG_9_1_0_RELEASE:1.2
	RELENG_9_1:1.2.0.6
	RELENG_9_1_BP:1.2
	RELENG_8_3_0_RELEASE:1.1.1.6.22.1
	RELENG_8_3:1.1.1.6.22.1.0.2
	RELENG_8_3_BP:1.1.1.6.22.1
	RELENG_9_0_0_RELEASE:1.2
	RELENG_9_0:1.2.0.4
	RELENG_9_0_BP:1.2
	RELENG_9:1.2.0.2
	RELENG_9_BP:1.2
	RELENG_7_4_0_RELEASE:1.1.1.6
	RELENG_8_2_0_RELEASE:1.1.1.6
	RELENG_7_4:1.1.1.6.0.32
	RELENG_7_4_BP:1.1.1.6
	RELENG_8_2:1.1.1.6.0.30
	RELENG_8_2_BP:1.1.1.6
	RELENG_8_1_0_RELEASE:1.1.1.6
	RELENG_8_1:1.1.1.6.0.28
	RELENG_8_1_BP:1.1.1.6
	RELENG_7_3_0_RELEASE:1.1.1.6
	RELENG_7_3:1.1.1.6.0.26
	RELENG_7_3_BP:1.1.1.6
	RELENG_8_0_0_RELEASE:1.1.1.6
	RELENG_8_0:1.1.1.6.0.24
	RELENG_8_0_BP:1.1.1.6
	RELENG_8:1.1.1.6.0.22
	RELENG_8_BP:1.1.1.6
	RELENG_7_2_0_RELEASE:1.1.1.6
	RELENG_7_2:1.1.1.6.0.20
	RELENG_7_2_BP:1.1.1.6
	RELENG_7_1_0_RELEASE:1.1.1.6
	RELENG_6_4_0_RELEASE:1.1.1.6
	RELENG_7_1:1.1.1.6.0.18
	RELENG_7_1_BP:1.1.1.6
	RELENG_6_4:1.1.1.6.0.16
	RELENG_6_4_BP:1.1.1.6
	RELENG_7_0_0_RELEASE:1.1.1.6
	RELENG_6_3_0_RELEASE:1.1.1.6
	RELENG_7_0:1.1.1.6.0.14
	RELENG_7_0_BP:1.1.1.6
	RELENG_6_3:1.1.1.6.0.12
	RELENG_6_3_BP:1.1.1.6
	bwk_20071023:1.1.1.6
	RELENG_7:1.1.1.6.0.10
	RELENG_7_BP:1.1.1.6
	bwk_20070501:1.1.1.6
	RELENG_6_2_0_RELEASE:1.1.1.6
	RELENG_6_2:1.1.1.6.0.8
	RELENG_6_2_BP:1.1.1.6
	RELENG_5_5_0_RELEASE:1.1.1.5
	RELENG_5_5:1.1.1.5.0.12
	RELENG_5_5_BP:1.1.1.5
	RELENG_6_1_0_RELEASE:1.1.1.6
	RELENG_6_1:1.1.1.6.0.6
	RELENG_6_1_BP:1.1.1.6
	RELENG_6_0_0_RELEASE:1.1.1.6
	RELENG_6_0:1.1.1.6.0.4
	RELENG_6_0_BP:1.1.1.6
	RELENG_6:1.1.1.6.0.2
	RELENG_6_BP:1.1.1.6
	bwk_20050424:1.1.1.6
	RELENG_5_4_0_RELEASE:1.1.1.5
	RELENG_5_4:1.1.1.5.0.10
	RELENG_5_4_BP:1.1.1.5
	RELENG_4_11_0_RELEASE:1.1.1.3.2.1
	RELENG_4_11:1.1.1.3.2.1.0.10
	RELENG_4_11_BP:1.1.1.3.2.1
	RELENG_5_3_0_RELEASE:1.1.1.5
	RELENG_5_3:1.1.1.5.0.8
	RELENG_5_3_BP:1.1.1.5
	RELENG_5:1.1.1.5.0.6
	RELENG_5_BP:1.1.1.5
	RELENG_4_10_0_RELEASE:1.1.1.3.2.1
	RELENG_4_10:1.1.1.3.2.1.0.8
	RELENG_4_10_BP:1.1.1.3.2.1
	RELENG_5_2_1_RELEASE:1.1.1.5
	bwk_20040207:1.1.1.5
	bwk_20030731:1.1.1.5
	RELENG_5_2_0_RELEASE:1.1.1.5
	RELENG_5_2:1.1.1.5.0.4
	RELENG_5_2_BP:1.1.1.5
	RELENG_4_9_0_RELEASE:1.1.1.3.2.1
	RELENG_4_9:1.1.1.3.2.1.0.6
	RELENG_4_9_BP:1.1.1.3.2.1
	bwk_20030729:1.1.1.5
	RELENG_5_1_0_RELEASE:1.1.1.5
	RELENG_5_1:1.1.1.5.0.2
	RELENG_5_1_BP:1.1.1.5
	RELENG_4_8_0_RELEASE:1.1.1.3.2.1
	RELENG_4_8:1.1.1.3.2.1.0.4
	RELENG_4_8_BP:1.1.1.3.2.1
	bwk_20030314:1.1.1.5
	RELENG_5_0_0_RELEASE:1.1.1.4
	bwk_20021213:1.1.1.4
	RELENG_5_0:1.1.1.4.0.2
	RELENG_5_0_BP:1.1.1.4
	bwk_20021129:1.1.1.4
	RELENG_4_7_0_RELEASE:1.1.1.3.2.1
	RELENG_4_7:1.1.1.3.2.1.0.2
	RELENG_4_7_BP:1.1.1.3.2.1
	RELENG_4:1.1.1.3.0.2
	bwk_20020210:1.1.1.3
	bwk_20020101:1.1.1.2
	bwk_20001115:1.1.1.1
	BELL_LABS:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2011.05.03.11.47.19;	author ru;	state Exp;
branches
	1.2.8.1;
next	1.1;

1.1
date	2001.10.27.08.07.36;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.2.8.1
date	2011.05.03.11.47.19;	author svnexp;	state dead;
branches;
next	1.2.8.2;

1.2.8.2
date	2013.03.28.13.01.52;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	2001.10.27.08.07.36;	author obrien;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2002.02.19.09.35.24;	author des;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2002.03.16.16.50.56;	author obrien;	state Exp;
branches
	1.1.1.3.2.1;
next	1.1.1.4;

1.1.1.4
date	2002.12.13.04.59.48;	author obrien;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2003.03.17.07.59.57;	author obrien;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2005.05.16.19.11.27;	author ru;	state Exp;
branches
	1.1.1.6.22.1;
next	;

1.1.1.3.2.1
date	2002.06.21.20.09.40;	author obrien;	state Exp;
branches;
next	;

1.1.1.6.22.1
date	2011.12.08.10.42.38;	author ru;	state Exp;
branches;
next	;


desc
@@


1.2
log
@SVN rev 221381 on 2011-05-03 11:47:19Z by ru

Update to a 1-May-2011 release (except for the isblank change).
@
text
@/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name Lucent Technologies or any of
its entities not be used in advertising or publicity pertaining
to distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
****************************************************************/

This is the version of awk described in "The AWK Programming Language",
by Al Aho, Brian Kernighan, and Peter Weinberger
(Addison-Wesley, 1988, ISBN 0-201-07981-X).

Changes, mostly bug fixes and occasional enhancements, are listed
in FIXES.  If you distribute this code further, please please please
distribute FIXES with it.  If you find errors, please report them
to bwk@@cs.princeton.edu.  Thanks.

The program itself is created by
	make
which should produce a sequence of messages roughly like this:

	yacc -d awkgram.y

conflicts: 43 shift/reduce, 85 reduce/reduce
	mv y.tab.c ytab.c
	mv y.tab.h ytab.h
	cc -c ytab.c
	cc -c b.c
	cc -c main.c
	cc -c parse.c
	cc maketab.c -o maketab
	./maketab >proctab.c
	cc -c proctab.c
	cc -c tran.c
	cc -c lib.c
	cc -c run.c
	cc -c lex.c
	cc ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm

This produces an executable a.out; you will eventually want to
move this to some place like /usr/bin/awk.

If your system does not have yacc or bison (the GNU
equivalent), you must compile the pieces manually.  We have
included yacc output in ytab.c and ytab.h, and backup copies in
case you overwrite them.  We have also included a copy of
proctab.c so you do not need to run maketab.

NOTE: This version uses ANSI C, as you should also.  We have
compiled this without any changes using gcc -Wall and/or local C
compilers on a variety of systems, but new systems or compilers
may raise some new complaint; reports of difficulties are
welcome.

This also compiles with Visual C++ on all flavors of Windows,
*if* you provide versions of popen and pclose.  The file
missing95.c contains versions that can be used to get started
with, though the underlying support has mysterious properties,
the symptom of which can be truncated pipe output.  Beware.  The
file makefile.win gives hints on how to proceed; if you run
vcvars32.bat, it will set up necessary paths and parameters so
you can subsequently run nmake -f makefile.win.  Beware also that
when running on Windows under command.com, various quoting
conventions are different from Unix systems: single quotes won't
work around arguments, and various characters like % are
interpreted within double quotes.

This compiles without change on Macintosh OS X using gcc and
the standard developer tools.

This is also said to compile on Macintosh OS 9 systems, using the
file "buildmac" provided by Dan Allen (danallen@@microsoft.com),
to whom many thanks.

The version of malloc that comes with some systems is sometimes
astonishly slow.  If awk seems slow, you might try fixing that.
More generally, turning on optimization can significantly improve
awk's speed, perhaps by 1/3 for highest levels.
@


1.2.8.1
log
@file README was added on branch RELENG_8_4 on 2013-03-28 13:01:52 +0000
@
text
@d1 94
@


1.2.8.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 94
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name Lucent Technologies or any of
its entities not be used in advertising or publicity pertaining
to distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
****************************************************************/

This is the version of awk described in "The AWK Programming Language",
by Al Aho, Brian Kernighan, and Peter Weinberger
(Addison-Wesley, 1988, ISBN 0-201-07981-X).

Changes, mostly bug fixes and occasional enhancements, are listed
in FIXES.  If you distribute this code further, please please please
distribute FIXES with it.  If you find errors, please report them
to bwk@@cs.princeton.edu.  Thanks.

The program itself is created by
	make
which should produce a sequence of messages roughly like this:

	yacc -d awkgram.y

conflicts: 43 shift/reduce, 85 reduce/reduce
	mv y.tab.c ytab.c
	mv y.tab.h ytab.h
	cc -c ytab.c
	cc -c b.c
	cc -c main.c
	cc -c parse.c
	cc maketab.c -o maketab
	./maketab >proctab.c
	cc -c proctab.c
	cc -c tran.c
	cc -c lib.c
	cc -c run.c
	cc -c lex.c
	cc ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm

This produces an executable a.out; you will eventually want to
move this to some place like /usr/bin/awk.

If your system does not have yacc or bison (the GNU
equivalent), you must compile the pieces manually.  We have
included yacc output in ytab.c and ytab.h, and backup copies in
case you overwrite them.  We have also included a copy of
proctab.c so you do not need to run maketab.

NOTE: This version uses ANSI C, as you should also.  We have
compiled this without any changes using gcc -Wall and/or local C
compilers on a variety of systems, but new systems or compilers
may raise some new complaint; reports of difficulties are
welcome.

This also compiles with Visual C++ on all flavors of Windows,
*if* you provide versions of popen and pclose.  The file
missing95.c contains versions that can be used to get started
with, though the underlying support has mysterious properties,
the symptom of which can be truncated pipe output.  Beware.  The
file makefile.win gives hints on how to proceed; if you run
vcvars32.bat, it will set up necessary paths and parameters so
you can subsequently run nmake -f makefile.win.  Beware also that
when running on Windows under command.com, various quoting
conventions are different from Unix systems: single quotes won't
work around arguments, and various characters like % are
interpreted within double quotes.

This compiles without change on Macintosh OS X using gcc and
the standard developer tools.

This is also said to compile on Macintosh OS 9 systems, using the
file "buildmac" provided by Dan Allen (danallen@@microsoft.com),
to whom many thanks.

The version of malloc that comes with some systems is sometimes
astonishly slow.  If awk seems slow, you might try fixing that.
More generally, turning on optimization can significantly improve
awk's speed, perhaps by 1/3 for highest levels.
@


1.1
log
@Initial revision
@
text
@d32 1
a32 1
to bwk@@bell-labs.com.  Thanks.
d43 5
a47 5
	cc -O -c ytab.c
	cc -O -c b.c
	cc -O -c main.c
	cc -O -c parse.c
	cc -O maketab.c -o maketab
d49 6
a54 6
	cc -O -c proctab.c
	cc -O -c tran.c
	cc -O -c lib.c
	cc -O -c run.c
	cc -O -c lex.c
	cc -O ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm
d59 1
a59 1
If your system is does not have yacc or bison (the GNU
d71 1
a71 1
This also compiles with Visual C++ on Windows 95 and Windows NT,
d75 8
a82 1
the symptom of which can be truncated pipe output.  Beware.
d84 4
a87 1
This is also said to compile on Macintosh systems, using the
d89 1
a89 2
to whom many thanks.  Dan also provided buildwin.bat, a simple
script for compiling on NT if you prefer.
d93 2
@


1.1.1.1
log
@Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.
@
text
@@


1.1.1.2
log
@Vendor import of bwk's 2002-02-18 release.  Most significant update is the
inclusion of my character class patch.
@
text
@d71 1
a71 1
This also compiles with Visual C++ on all flavors of Windows,
d79 2
a80 1
to whom many thanks.
@


1.1.1.3
log
@Vendor import of bwk's 2002-02-10 release.
@
text
@a75 1
The file makefile.win gives hints on how to proceed.
@


1.1.1.4
log
@Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.
@
text
@d43 5
a47 5
	cc -c ytab.c
	cc -c b.c
	cc -c main.c
	cc -c parse.c
	cc maketab.c -o maketab
d49 6
a54 6
	cc -c proctab.c
	cc -c tran.c
	cc -c lib.c
	cc -c run.c
	cc -c lex.c
	cc ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm
d78 1
a78 4
This compiles without change on Macintosh OS X using gcc and
the standard developer tools.

This is also said to compile on Macintosh OS 9 systems, using the
a83 2
More generally, turning on optimization can significantly improve
awk's speed, perhaps by 1/3 for highest levels.
@


1.1.1.5
log
@Vendor import of bwk's 14-March-2003 release.
@
text
@d75 2
a76 8
the symptom of which can be truncated pipe output.  Beware.  The
file makefile.win gives hints on how to proceed; if you run
vcvars32.bat, it will set up necessary paths and parameters so
you can subsequently run nmake -f makefile.win.  Beware also that
when running on Windows under command.com, various quoting
conventions are different from Unix systems: single quotes won't
work around arguments, and various characters like % are
interpreted within double quotes.
@


1.1.1.6
log
@Vendor import of bwk's 24-Apr-2005 release.
@
text
@d59 1
a59 1
If your system does not have yacc or bison (the GNU
@


1.1.1.6.22.1
log
@SVN rev 228348 on 2011-12-08 10:42:38Z by ru

Update to a 10-Aug-2011 release.
@
text
@d32 1
a32 1
to bwk@@cs.princeton.edu.  Thanks.
@


1.1.1.3.2.1
log
@MFC: the 1 True AWK
@
text
@@


