head	1.6;
access;
symbols
	perseant-exfatfs-base-20250801:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.22
	perseant-exfatfs-base:1.6
	cjep_sun2x:1.6.0.20
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	cjep_staticlib_x:1.6.0.18
	cjep_staticlib_x-base:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	phil-wifi-20200406:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	pgoyette-compat-0728:1.6
	pgoyette-compat-0625:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	pgoyette-compat:1.6.0.16
	pgoyette-compat-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.14
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	bouyer-socketcan:1.6.0.12
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	pgoyette-localcount-20161104:1.6
	localcount-20160914:1.6
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.10
	pgoyette-localcount-base:1.6
	netbsd-5-2-3-RELEASE:1.5
	netbsd-5-1-5-RELEASE:1.5
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.6
	tls-earlyentropy:1.6.0.6
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-5-2-2-RELEASE:1.5
	netbsd-5-1-4-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.5
	netbsd-5-1-3-RELEASE:1.5
	agc-symver:1.6.0.8
	agc-symver-base:1.6
	tls-maxphys-base:1.6
	yamt-pagecache-base8:1.6
	netbsd-5-2:1.5.0.2
	yamt-pagecache-base7:1.6
	netbsd-5-2-RELEASE:1.5
	netbsd-5-2-RC1:1.5
	yamt-pagecache-base6:1.6
	yamt-pagecache-base5:1.6
	yamt-pagecache-base4:1.6
	netbsd-5-1-2-RELEASE:1.5
	netbsd-5-1-1-RELEASE:1.5
	yamt-pagecache-base3:1.6
	yamt-pagecache-base2:1.6
	yamt-pagecache:1.6.0.4
	yamt-pagecache-base:1.6
	bouyer-quota2-nbase:1.6
	bouyer-quota2:1.6.0.2
	bouyer-quota2-base:1.6
	matt-nb5-mips64-premerge-20101231:1.5
	matt-nb5-pq3:1.5.0.14
	matt-nb5-pq3-base:1.5
	netbsd-5-1:1.5.0.12
	netbsd-5-1-RELEASE:1.5
	netbsd-5-1-RC4:1.5
	matt-nb5-mips64-k15:1.5
	netbsd-5-1-RC3:1.5
	netbsd-5-1-RC2:1.5
	netbsd-5-1-RC1:1.5
	netbsd-5-0-2-RELEASE:1.5
	matt-nb5-mips64-premerge-20091211:1.5
	matt-premerge-20091211:1.5
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5
	matt-nb4-mips64-k7-u2a-k9b:1.5
	matt-nb5-mips64-u1-k1-k5:1.5
	matt-nb5-mips64:1.5.0.10
	netbsd-5-0-1-RELEASE:1.5
	jym-xensuspend-nbase:1.5
	netbsd-5-0:1.5.0.8
	netbsd-5-0-RELEASE:1.5
	netbsd-5-0-RC4:1.5
	netbsd-5-0-RC3:1.5
	netbsd-5-0-RC2:1.5
	jym-xensuspend:1.5.0.6
	jym-xensuspend-base:1.5
	netbsd-5-0-RC1:1.5
	netbsd-5:1.5.0.4
	netbsd-5-base:1.5
	matt-mips64-base2:1.5
	matt-mips64:1.4.0.22
	netbsd-4-0-1-RELEASE:1.4
	wrstuden-revivesa-base-3:1.5
	wrstuden-revivesa-base-2:1.5
	wrstuden-fixsa-newbase:1.4
	wrstuden-revivesa-base-1:1.5
	yamt-pf42-base4:1.5
	yamt-pf42-base3:1.5
	nawk-20070501:1.1.1.4
	hpcarm-cleanup-nbase:1.4
	yamt-pf42-baseX:1.4
	yamt-pf42-base2:1.4
	wrstuden-revivesa:1.4.0.20
	wrstuden-revivesa-base:1.5
	yamt-pf42:1.4.0.18
	yamt-pf42-base:1.4
	keiichi-mipv6:1.4.0.16
	keiichi-mipv6-base:1.4
	matt-armv6-nbase:1.4
	matt-armv6-prevmlocking:1.4
	wrstuden-fixsa-base-1:1.4
	netbsd-4-0:1.4.0.14
	netbsd-4-0-RELEASE:1.4
	cube-autoconf:1.4.0.12
	cube-autoconf-base:1.4
	netbsd-4-0-RC5:1.4
	netbsd-4-0-RC4:1.4
	netbsd-4-0-RC3:1.4
	netbsd-4-0-RC2:1.4
	netbsd-4-0-RC1:1.4
	matt-armv6:1.4.0.10
	matt-armv6-base:1.4
	matt-mips64-base:1.4
	hpcarm-cleanup:1.4.0.8
	hpcarm-cleanup-base:1.4
	netbsd-3-1-1-RELEASE:1.3
	netbsd-3-0-3-RELEASE:1.3
	wrstuden-fixsa:1.4.0.6
	wrstuden-fixsa-base:1.4
	abandoned-netbsd-4-base:1.4
	abandoned-netbsd-4:1.4.0.2
	netbsd-3-1:1.3.0.12
	netbsd-3-1-RELEASE:1.3
	netbsd-3-0-2-RELEASE:1.3
	netbsd-3-1-RC4:1.3
	netbsd-3-1-RC3:1.3
	netbsd-3-1-RC2:1.3
	netbsd-3-1-RC1:1.3
	netbsd-4:1.4.0.4
	netbsd-4-base:1.4
	netbsd-3-0-1-RELEASE:1.3
	netbsd-3-0:1.3.0.10
	netbsd-3-0-RELEASE:1.3
	netbsd-3-0-RC6:1.3
	netbsd-3-0-RC5:1.3
	netbsd-3-0-RC4:1.3
	netbsd-3-0-RC3:1.3
	netbsd-3-0-RC2:1.3
	netbsd-3-0-RC1:1.3
	netbsd-2-0-3-RELEASE:1.3
	netbsd-2-1:1.3.0.8
	netbsd-2-1-RELEASE:1.3
	netbsd-2-1-RC6:1.3
	netbsd-2-1-RC5:1.3
	netbsd-2-1-RC4:1.3
	netbsd-2-1-RC3:1.3
	netbsd-2-1-RC2:1.3
	netbsd-2-1-RC1:1.3
	nawk-20050424:1.1.1.3
	netbsd-2-0-2-RELEASE:1.3
	netbsd-3:1.3.0.6
	netbsd-3-base:1.3
	netbsd-2-0-1-RELEASE:1.3
	netbsd-2:1.3.0.4
	netbsd-2-base:1.3
	netbsd-2-0-RELEASE:1.3
	netbsd-2-0-RC5:1.3
	netbsd-2-0-RC4:1.3
	netbsd-2-0-RC3:1.3
	netbsd-2-0-RC2:1.3
	netbsd-2-0-RC1:1.3
	netbsd-2-0:1.3.0.2
	netbsd-2-0-base:1.3
	netbsd-1-6-PATCH002-RELEASE:1.2
	netbsd-1-6-PATCH002:1.2
	netbsd-1-6-PATCH002-RC4:1.2
	netbsd-1-6-PATCH002-RC3:1.2
	netbsd-1-6-PATCH002-RC2:1.2
	netbsd-1-6-PATCH002-RC1:1.2
	awk-signedchar-post:1.3
	awk-signedchar-pre:1.3
	nawk-20030729:1.1.1.2
	netbsd-1-6-PATCH001:1.2
	netbsd-1-6-PATCH001-RELEASE:1.2
	netbsd-1-6-PATCH001-RC3:1.2
	netbsd-1-6-PATCH001-RC2:1.2
	netbsd-1-6-PATCH001-RC1:1.2
	fvdl_fs64_base:1.2
	netbsd-1-6-RELEASE:1.2
	netbsd-1-6-RC3:1.2
	netbsd-1-6-RC2:1.2
	netbsd-1-6-RC1:1.2
	netbsd-1-6:1.2.0.2
	netbsd-1-6-base:1.2
	awk-basic_adjustments:1.2
	nawk-20001115:1.1.1.1
	NAWK:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2010.12.11.23.36.51;	author christos;	state dead;
branches;
next	1.5;

1.5
date	2008.05.25.14.51.49;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	2006.07.25.21.25.55;	author christos;	state Exp;
branches
	1.4.18.1
	1.4.20.1;
next	1.3;

1.3
date	2003.08.02.22.42.00;	author jdolecek;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.05.19.06.02;	author jdolecek;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.05.13.31.17;	author jdolecek;	state Exp;
branches
	1.1.1.1;
next	;

1.4.18.1
date	2008.06.04.02.03.05;	author yamt;	state Exp;
branches;
next	;

1.4.20.1
date	2008.06.23.04.28.52;	author wrstuden;	state Exp;
branches;
next	;

1.1.1.1
date	2001.02.05.13.31.17;	author jdolecek;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2003.08.02.22.21.25;	author jdolecek;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2005.07.02.18.56.43;	author jdolecek;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2008.05.25.13.51.16;	author christos;	state Exp;
branches;
next	;


desc
@@


1.6
log
@things moved to external.
@
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.
# ****************************************************************/

CFLAGS = -g
CFLAGS = -O2
CFLAGS =

CC = gcc -Wall -g -Wwrite-strings
CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov
CC = gcc -Wall -g
CC = /opt/SUNWspro/bin/cc
CC = /opt/pure/purify/purify cc
CC = cc
CC = gcc -O4
CC = gcc -Wall -g


YACC = bison -y
YACC = yacc
YFLAGS = -d

OFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o

SOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c \
	maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c

LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \
	lib.c run.c tran.c missing95.c

SHIP = README FIXES $(SOURCE) ytab[ch].bak makefile makefile.win \
	vcvars32.bat buildwin.bat awk.1

a.out:	ytab.o $(OFILES)
	$(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC)  -lm

$(OFILES):	awk.h ytab.h proto.h

ytab.o:	awk.h proto.h awkgram.y
	$(YACC) $(YFLAGS) awkgram.y
	mv y.tab.c ytab.c
	mv y.tab.h ytab.h
	$(CC) $(CFLAGS) -c ytab.c

proctab.c:	maketab
	./maketab >proctab.c

maketab:	ytab.h maketab.c
	$(CC) $(CFLAGS) maketab.c -o maketab

bundle:
	@@cp ytab.h ytabh.bak
	@@cp ytab.c ytabc.bak
	@@bundle $(SHIP)

tar:
	@@cp ytab.h ytabh.bak
	@@cp ytab.c ytabc.bak
	@@bundle $(SHIP) >awk.shar
	@@tar cf awk.tar $(SHIP)
	gzip awk.tar
	ls -l awk.tar.gz
	@@zip awk.zip $(SHIP)
	ls -l awk.zip

names:
	@@echo $(LISTING)

clean:
	rm -f a.out *.o *.obj maketab maketab.exe ytab.[ch] *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c
@


1.5
log
@update to 20070501
@
text
@@


1.4
log
@add ytab.[ch]
@
text
@d30 1
d35 3
d52 1
a52 1
	vcvars32.bat buildwin.bat mac.code awk.1
d90 1
a90 1
	rm -f a.out *.o *.obj maketab maketab.exe ytab.[ch] # proctab.c
@


1.4.20.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@a29 1
CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov
a33 3
CC = gcc -O4
CC = gcc -Wall -g

d48 1
a48 1
	vcvars32.bat buildwin.bat awk.1
d86 1
a86 1
	rm -f a.out *.o *.obj maketab maketab.exe ytab.[ch] *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c
@


1.4.18.1
log
@sync with head
@
text
@a29 1
CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov
a33 3
CC = gcc -O4
CC = gcc -Wall -g

d48 1
a48 1
	vcvars32.bat buildwin.bat awk.1
d86 1
a86 1
	rm -f a.out *.o *.obj maketab maketab.exe ytab.[ch] *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c
@


1.3
log
@Merge nawk version 20030729 changes, and resolve conflicts.
@
text
@d86 1
a86 1
	rm -f a.out *.o *.obj maketab maketab.exe # proctab.c
@


1.2
log
@change to build/use awkgram.[ch] instead of ytab.[ch]
@
text
@d29 1
d31 1
d41 2
a42 1
SOURCE = awk.h awkgram.c awkgram.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c
d44 2
a45 1
LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c lib.c run.c tran.c missing95.c
d47 2
a48 1
SHIP = README FIXES $(SOURCE) awkgram[ch].bak makefile awk.1 buildwin.bat mac.code
d50 2
a51 2
a.out:	awkgram.o $(OFILES)
	$(CC) $(CFLAGS) awkgram.o $(OFILES) $(ALLOC)  -lm
d53 1
a53 1
$(OFILES):	awk.h awkgram.h proto.h
d55 1
a55 1
awkgram.o:	awk.h proto.h awkgram.y
d57 3
a59 3
	mv y.tab.c awkgram.c
	mv y.tab.h awkgram.h
	$(CC) $(CFLAGS) -c awkgram.c
d64 1
a64 1
maketab:	awkgram.h maketab.c
d68 2
a69 2
	@@cp awkgram.h awkgramh.bak
	@@cp awkgram.c awkgramc.bak
d73 2
a74 2
	@@cp awkgram.h awkgramh.bak
	@@cp awkgram.c awkgramc.bak
d86 1
a86 1
	rm -f a.out *.o maketab # proctab.c
@


1.1
log
@Initial revision
@
text
@d39 1
a39 1
SOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c
d43 1
a43 1
SHIP = README FIXES $(SOURCE) ytab[ch].bak makefile awk.1 buildwin.bat mac.code
d45 2
a46 2
a.out:	ytab.o $(OFILES)
	$(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC)  -lm
d48 1
a48 1
$(OFILES):	awk.h ytab.h proto.h
d50 1
a50 1
ytab.o:	awk.h proto.h awkgram.y
d52 3
a54 3
	mv y.tab.c ytab.c
	mv y.tab.h ytab.h
	$(CC) $(CFLAGS) -c ytab.c
d59 1
a59 1
maketab:	ytab.h maketab.c
d63 2
a64 2
	@@cp ytab.h ytabh.bak
	@@cp ytab.c ytabc.bak
d68 2
a69 2
	@@cp ytab.h ytabh.bak
	@@cp ytab.c ytabc.bak
@


1.1.1.1
log
@Import nawk 2000/11/15.

These files are not used for build, but are usable when one want to regenerate
proctab.c
@
text
@@


1.1.1.2
log
@Import nawk as of 2003/07/29
Changes:
* internationalization improvements
* [:digit:] addition
* some bugfixes
@
text
@a28 1
CC = gcc -Wall -g -Wwrite-strings
a29 1
CC = /opt/SUNWspro/bin/cc
d39 1
a39 2
SOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c \
	maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c
d41 1
a41 2
LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \
	lib.c run.c tran.c missing95.c
d43 1
a43 2
SHIP = README FIXES $(SOURCE) ytab[ch].bak makefile makefile.win \
	vcvars32.bat buildwin.bat mac.code awk.1
d81 1
a81 1
	rm -f a.out *.o *.obj maketab maketab.exe # proctab.c
@


1.1.1.3
log
@Update to nawk-20050424. Fixes several overflow and RE bugs, as well as
preserving $0 in END block.
@
text
@a29 1
CC = gcc -fprofile-arcs -ftest-coverage # followed by gcov onefile.c; cat onefile.c.gcov
d31 2
d86 1
a86 1
	rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov # proctab.c
@


1.1.1.4
log
@from: http://cm.bell-labs.com/cm/cs/awkbook/index.html
@
text
@d30 1
a30 1
CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov
a32 3
CC = gcc -O4
CC = gcc -Wall -g

d47 1
a47 1
	vcvars32.bat buildwin.bat awk.1
d85 1
a85 1
	rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c
@
