Convert boot/ and commands/ over to bsdmake
This commit is contained in:
+5
-92
@@ -1,94 +1,7 @@
|
||||
# /****************************************************************
|
||||
# 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.
|
||||
# ****************************************************************/
|
||||
.include <minix.own.mk>
|
||||
|
||||
CFLAGS = -g
|
||||
CFLAGS = -O2
|
||||
CFLAGS =
|
||||
PROG= awk
|
||||
SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
|
||||
YHEADER= yes
|
||||
|
||||
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 = cc
|
||||
CC = gcc -O4
|
||||
CC = cc -O
|
||||
|
||||
|
||||
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
|
||||
|
||||
all: awk
|
||||
|
||||
install: awk awk.1
|
||||
install -m 755 -o bin -g operator awk /usr/bin/awk
|
||||
install -m 644 -o bin -g operator awk.1 /usr/man/man1
|
||||
|
||||
awk: ytab.o $(OFILES)
|
||||
$(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm -o $@
|
||||
|
||||
$(OFILES): awk.h ytab.h proto.h
|
||||
|
||||
ytab.o ytab.c ytab.h: awk.h proto.h awkgram.y
|
||||
$(YACC) $(YFLAGS) awkgram.y 2>/dev/null
|
||||
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 awk *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c
|
||||
.include <minix.prog.mk>
|
||||
|
||||
@@ -0,0 +1,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.
|
||||
# ****************************************************************/
|
||||
|
||||
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 = cc
|
||||
CC = gcc -O4
|
||||
CC = cc -O
|
||||
|
||||
|
||||
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
|
||||
|
||||
all: awk
|
||||
|
||||
install: awk awk.1
|
||||
install -m 755 -o bin -g operator awk /usr/bin/awk
|
||||
install -m 644 -o bin -g operator awk.1 /usr/man/man1
|
||||
|
||||
awk: ytab.o $(OFILES)
|
||||
$(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm -o $@
|
||||
|
||||
$(OFILES): awk.h ytab.h proto.h
|
||||
|
||||
ytab.o ytab.c ytab.h: awk.h proto.h awkgram.y
|
||||
$(YACC) $(YFLAGS) awkgram.y 2>/dev/null
|
||||
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 awk *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c
|
||||
+1
-1
@@ -31,7 +31,7 @@ THIS SOFTWARE.
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
#define HAT (NCHARS+2) /* matches ^ in regular expr */
|
||||
/* NCHARS is 2**n */
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
@echo off
|
||||
rem buildwin.bat - build AWK under Windows NT using Visual C++.
|
||||
rem 22 Jan 1999 - Created by Dan Allen.
|
||||
rem
|
||||
rem If you delete the call to setlocal it will probably work under Win95/Win98 as well.
|
||||
|
||||
setlocal
|
||||
set cl=-w -Ox -QIfdiv- -nologo -link -nologo setargv.obj
|
||||
|
||||
cl maketab.c -o maketab.exe
|
||||
maketab.exe > proctab.c
|
||||
cl -o awk.exe b.c main.c parse.c proctab.c tran.c lib.c run.c lex.c ytab.c missing95.c
|
||||
+1
-1
@@ -27,7 +27,7 @@ THIS SOFTWARE.
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
extern YYSTYPE yylval;
|
||||
extern int infunc;
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ THIS SOFTWARE.
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
FILE *infile = NULL;
|
||||
char *file = "";
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ const char *version = "version 20100208";
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
extern char **environ;
|
||||
extern int nfields;
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# vestigial makefile for microsoft c compiler on WinXX
|
||||
# run with nmake -f makefile.win
|
||||
# based on buildwin.bat
|
||||
|
||||
awk95.exe:
|
||||
set cl=-w -Ox -QIfdiv- -nologo -link -nologo setargv.obj
|
||||
cl maketab.c -o maketab.exe
|
||||
.\maketab.exe > proctab.c
|
||||
cl -o awk95.exe b.c main.c parse.c proctab.c tran.c lib.c run.c lex.c ytab.c missing95.c
|
||||
@@ -32,7 +32,7 @@ THIS SOFTWARE.
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
struct xx
|
||||
{ int token;
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/* popen and pclose are not part of win 95 and nt,
|
||||
but it appears that _popen and _pclose "work".
|
||||
if this won't load, use the return NULL statements. */
|
||||
|
||||
#include <stdio.h>
|
||||
FILE *popen(char *s, char *m) {
|
||||
return _popen(s, m); /* return NULL; */
|
||||
}
|
||||
|
||||
int pclose(FILE *f) {
|
||||
return _pclose(f); /* return NULL; */
|
||||
}
|
||||
@@ -27,7 +27,7 @@ THIS SOFTWARE.
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
Node *nodealloc(int n)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
#include <stdio.h>
|
||||
#include "awk.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
static char *printname[93] = {
|
||||
(char *) "FIRSTTOKEN", /* 258 */
|
||||
(char *) "PROGRAM", /* 259 */
|
||||
(char *) "PASTAT", /* 260 */
|
||||
(char *) "PASTAT2", /* 261 */
|
||||
(char *) "XBEGIN", /* 262 */
|
||||
(char *) "XEND", /* 263 */
|
||||
(char *) "NL", /* 264 */
|
||||
(char *) "ARRAY", /* 265 */
|
||||
(char *) "MATCH", /* 266 */
|
||||
(char *) "NOTMATCH", /* 267 */
|
||||
(char *) "MATCHOP", /* 268 */
|
||||
(char *) "FINAL", /* 269 */
|
||||
(char *) "DOT", /* 270 */
|
||||
(char *) "ALL", /* 271 */
|
||||
(char *) "CCL", /* 272 */
|
||||
(char *) "NCCL", /* 273 */
|
||||
(char *) "CHAR", /* 274 */
|
||||
(char *) "OR", /* 275 */
|
||||
(char *) "STAR", /* 276 */
|
||||
(char *) "QUEST", /* 277 */
|
||||
(char *) "PLUS", /* 278 */
|
||||
(char *) "EMPTYRE", /* 279 */
|
||||
(char *) "AND", /* 280 */
|
||||
(char *) "BOR", /* 281 */
|
||||
(char *) "APPEND", /* 282 */
|
||||
(char *) "EQ", /* 283 */
|
||||
(char *) "GE", /* 284 */
|
||||
(char *) "GT", /* 285 */
|
||||
(char *) "LE", /* 286 */
|
||||
(char *) "LT", /* 287 */
|
||||
(char *) "NE", /* 288 */
|
||||
(char *) "IN", /* 289 */
|
||||
(char *) "ARG", /* 290 */
|
||||
(char *) "BLTIN", /* 291 */
|
||||
(char *) "BREAK", /* 292 */
|
||||
(char *) "CLOSE", /* 293 */
|
||||
(char *) "CONTINUE", /* 294 */
|
||||
(char *) "DELETE", /* 295 */
|
||||
(char *) "DO", /* 296 */
|
||||
(char *) "EXIT", /* 297 */
|
||||
(char *) "FOR", /* 298 */
|
||||
(char *) "FUNC", /* 299 */
|
||||
(char *) "SUB", /* 300 */
|
||||
(char *) "GSUB", /* 301 */
|
||||
(char *) "IF", /* 302 */
|
||||
(char *) "INDEX", /* 303 */
|
||||
(char *) "LSUBSTR", /* 304 */
|
||||
(char *) "MATCHFCN", /* 305 */
|
||||
(char *) "NEXT", /* 306 */
|
||||
(char *) "NEXTFILE", /* 307 */
|
||||
(char *) "ADD", /* 308 */
|
||||
(char *) "MINUS", /* 309 */
|
||||
(char *) "MULT", /* 310 */
|
||||
(char *) "DIVIDE", /* 311 */
|
||||
(char *) "MOD", /* 312 */
|
||||
(char *) "ASSIGN", /* 313 */
|
||||
(char *) "ASGNOP", /* 314 */
|
||||
(char *) "ADDEQ", /* 315 */
|
||||
(char *) "SUBEQ", /* 316 */
|
||||
(char *) "MULTEQ", /* 317 */
|
||||
(char *) "DIVEQ", /* 318 */
|
||||
(char *) "MODEQ", /* 319 */
|
||||
(char *) "POWEQ", /* 320 */
|
||||
(char *) "PRINT", /* 321 */
|
||||
(char *) "PRINTF", /* 322 */
|
||||
(char *) "SPRINTF", /* 323 */
|
||||
(char *) "ELSE", /* 324 */
|
||||
(char *) "INTEST", /* 325 */
|
||||
(char *) "CONDEXPR", /* 326 */
|
||||
(char *) "POSTINCR", /* 327 */
|
||||
(char *) "PREINCR", /* 328 */
|
||||
(char *) "POSTDECR", /* 329 */
|
||||
(char *) "PREDECR", /* 330 */
|
||||
(char *) "VAR", /* 331 */
|
||||
(char *) "IVAR", /* 332 */
|
||||
(char *) "VARNF", /* 333 */
|
||||
(char *) "CALL", /* 334 */
|
||||
(char *) "NUMBER", /* 335 */
|
||||
(char *) "STRING", /* 336 */
|
||||
(char *) "REGEXPR", /* 337 */
|
||||
(char *) "GETLINE", /* 338 */
|
||||
(char *) "SUBSTR", /* 339 */
|
||||
(char *) "SPLIT", /* 340 */
|
||||
(char *) "RETURN", /* 341 */
|
||||
(char *) "WHILE", /* 342 */
|
||||
(char *) "CAT", /* 343 */
|
||||
(char *) "UMINUS", /* 344 */
|
||||
(char *) "NOT", /* 345 */
|
||||
(char *) "POWER", /* 346 */
|
||||
(char *) "INCR", /* 347 */
|
||||
(char *) "DECR", /* 348 */
|
||||
(char *) "INDIRECT", /* 349 */
|
||||
(char *) "LASTTOKEN", /* 350 */
|
||||
};
|
||||
|
||||
|
||||
Cell *(*proctab[93])(Node **, int) = {
|
||||
nullproc, /* FIRSTTOKEN */
|
||||
program, /* PROGRAM */
|
||||
pastat, /* PASTAT */
|
||||
dopa2, /* PASTAT2 */
|
||||
nullproc, /* XBEGIN */
|
||||
nullproc, /* XEND */
|
||||
nullproc, /* NL */
|
||||
array, /* ARRAY */
|
||||
matchop, /* MATCH */
|
||||
matchop, /* NOTMATCH */
|
||||
nullproc, /* MATCHOP */
|
||||
nullproc, /* FINAL */
|
||||
nullproc, /* DOT */
|
||||
nullproc, /* ALL */
|
||||
nullproc, /* CCL */
|
||||
nullproc, /* NCCL */
|
||||
nullproc, /* CHAR */
|
||||
nullproc, /* OR */
|
||||
nullproc, /* STAR */
|
||||
nullproc, /* QUEST */
|
||||
nullproc, /* PLUS */
|
||||
nullproc, /* EMPTYRE */
|
||||
boolop, /* AND */
|
||||
boolop, /* BOR */
|
||||
nullproc, /* APPEND */
|
||||
relop, /* EQ */
|
||||
relop, /* GE */
|
||||
relop, /* GT */
|
||||
relop, /* LE */
|
||||
relop, /* LT */
|
||||
relop, /* NE */
|
||||
instat, /* IN */
|
||||
arg, /* ARG */
|
||||
bltin, /* BLTIN */
|
||||
jump, /* BREAK */
|
||||
closefile, /* CLOSE */
|
||||
jump, /* CONTINUE */
|
||||
awkdelete, /* DELETE */
|
||||
dostat, /* DO */
|
||||
jump, /* EXIT */
|
||||
forstat, /* FOR */
|
||||
nullproc, /* FUNC */
|
||||
sub, /* SUB */
|
||||
gsub, /* GSUB */
|
||||
ifstat, /* IF */
|
||||
sindex, /* INDEX */
|
||||
nullproc, /* LSUBSTR */
|
||||
matchop, /* MATCHFCN */
|
||||
jump, /* NEXT */
|
||||
jump, /* NEXTFILE */
|
||||
arith, /* ADD */
|
||||
arith, /* MINUS */
|
||||
arith, /* MULT */
|
||||
arith, /* DIVIDE */
|
||||
arith, /* MOD */
|
||||
assign, /* ASSIGN */
|
||||
nullproc, /* ASGNOP */
|
||||
assign, /* ADDEQ */
|
||||
assign, /* SUBEQ */
|
||||
assign, /* MULTEQ */
|
||||
assign, /* DIVEQ */
|
||||
assign, /* MODEQ */
|
||||
assign, /* POWEQ */
|
||||
printstat, /* PRINT */
|
||||
awkprintf, /* PRINTF */
|
||||
awksprintf, /* SPRINTF */
|
||||
nullproc, /* ELSE */
|
||||
intest, /* INTEST */
|
||||
condexpr, /* CONDEXPR */
|
||||
incrdecr, /* POSTINCR */
|
||||
incrdecr, /* PREINCR */
|
||||
incrdecr, /* POSTDECR */
|
||||
incrdecr, /* PREDECR */
|
||||
nullproc, /* VAR */
|
||||
nullproc, /* IVAR */
|
||||
getnf, /* VARNF */
|
||||
call, /* CALL */
|
||||
nullproc, /* NUMBER */
|
||||
nullproc, /* STRING */
|
||||
nullproc, /* REGEXPR */
|
||||
awkgetline, /* GETLINE */
|
||||
substr, /* SUBSTR */
|
||||
split, /* SPLIT */
|
||||
jump, /* RETURN */
|
||||
whilestat, /* WHILE */
|
||||
cat, /* CAT */
|
||||
arith, /* UMINUS */
|
||||
boolop, /* NOT */
|
||||
arith, /* POWER */
|
||||
nullproc, /* INCR */
|
||||
nullproc, /* DECR */
|
||||
indirect, /* INDIRECT */
|
||||
nullproc, /* LASTTOKEN */
|
||||
};
|
||||
|
||||
char *tokname(int n)
|
||||
{
|
||||
static char buf[100];
|
||||
|
||||
if (n < FIRSTTOKEN || n > LASTTOKEN) {
|
||||
sprintf(buf, "token %d", n);
|
||||
return buf;
|
||||
}
|
||||
return printname[n-FIRSTTOKEN];
|
||||
}
|
||||
+1
-1
@@ -32,7 +32,7 @@ THIS SOFTWARE.
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
#define tempfree(x) if (istemp(x)) tfree(x); else
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ THIS SOFTWARE.
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "awk.h"
|
||||
#include "ytab.h"
|
||||
#include "awkgram.h"
|
||||
|
||||
#define FULLTAB 2 /* rehash when table gets this x full */
|
||||
#define GROWTAB 4 /* grow table by this factor */
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
@echo off
|
||||
rem
|
||||
rem Root of Visual Developer Studio Common files.
|
||||
set VSCommonDir=C:\PROGRA~1\MICROS~3\Common
|
||||
|
||||
rem
|
||||
rem Root of Visual Developer Studio installed files.
|
||||
rem
|
||||
set MSDevDir=C:\PROGRA~1\MICROS~3\Common\msdev98
|
||||
|
||||
rem
|
||||
rem Root of Visual C++ installed files.
|
||||
rem
|
||||
set MSVCDir=C:\PROGRA~1\MICROS~3\VC98
|
||||
|
||||
rem
|
||||
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
|
||||
rem
|
||||
set VcOsDir=WIN95
|
||||
if "%OS%" == "Windows_NT" set VcOsDir=WINNT
|
||||
|
||||
rem
|
||||
echo Setting environment for using Microsoft Visual C++ tools.
|
||||
rem
|
||||
|
||||
if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MSVCDir%\BIN;%VSCommonDir%\TOOLS\%VcOsDir%;%VSCommonDir%\TOOLS;%PATH%
|
||||
if "%OS%" == "" set PATH="%MSDevDir%\BIN";"%MSVCDir%\BIN";"%VSCommonDir%\TOOLS\%VcOsDir%";"%VSCommonDir%\TOOLS";"%windir%\SYSTEM";"%PATH%"
|
||||
set INCLUDE=%MSVCDir%\ATL\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%INCLUDE%
|
||||
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB%
|
||||
|
||||
set VcOsDir=
|
||||
set VSCommonDir=
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,253 +0,0 @@
|
||||
/* A Bison parser, made by GNU Bison 2.3. */
|
||||
|
||||
/* Skeleton interface for Bison's Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* As a special exception, you may create a larger work that contains
|
||||
part or all of the Bison parser skeleton and distribute that work
|
||||
under terms of your choice, so long as that work isn't itself a
|
||||
parser generator using the skeleton or a modified version thereof
|
||||
as a parser skeleton. Alternatively, if you modify or redistribute
|
||||
the parser skeleton itself, you may (at your option) remove this
|
||||
special exception, which will cause the skeleton and the resulting
|
||||
Bison output files to be licensed under the GNU General Public
|
||||
License without this special exception.
|
||||
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
/* Tokens. */
|
||||
#ifndef YYTOKENTYPE
|
||||
# define YYTOKENTYPE
|
||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||||
know about them. */
|
||||
enum yytokentype {
|
||||
FIRSTTOKEN = 258,
|
||||
PROGRAM = 259,
|
||||
PASTAT = 260,
|
||||
PASTAT2 = 261,
|
||||
XBEGIN = 262,
|
||||
XEND = 263,
|
||||
NL = 264,
|
||||
ARRAY = 265,
|
||||
MATCH = 266,
|
||||
NOTMATCH = 267,
|
||||
MATCHOP = 268,
|
||||
FINAL = 269,
|
||||
DOT = 270,
|
||||
ALL = 271,
|
||||
CCL = 272,
|
||||
NCCL = 273,
|
||||
CHAR = 274,
|
||||
OR = 275,
|
||||
STAR = 276,
|
||||
QUEST = 277,
|
||||
PLUS = 278,
|
||||
EMPTYRE = 279,
|
||||
AND = 280,
|
||||
BOR = 281,
|
||||
APPEND = 282,
|
||||
EQ = 283,
|
||||
GE = 284,
|
||||
GT = 285,
|
||||
LE = 286,
|
||||
LT = 287,
|
||||
NE = 288,
|
||||
IN = 289,
|
||||
ARG = 290,
|
||||
BLTIN = 291,
|
||||
BREAK = 292,
|
||||
CLOSE = 293,
|
||||
CONTINUE = 294,
|
||||
DELETE = 295,
|
||||
DO = 296,
|
||||
EXIT = 297,
|
||||
FOR = 298,
|
||||
FUNC = 299,
|
||||
SUB = 300,
|
||||
GSUB = 301,
|
||||
IF = 302,
|
||||
INDEX = 303,
|
||||
LSUBSTR = 304,
|
||||
MATCHFCN = 305,
|
||||
NEXT = 306,
|
||||
NEXTFILE = 307,
|
||||
ADD = 308,
|
||||
MINUS = 309,
|
||||
MULT = 310,
|
||||
DIVIDE = 311,
|
||||
MOD = 312,
|
||||
ASSIGN = 313,
|
||||
ASGNOP = 314,
|
||||
ADDEQ = 315,
|
||||
SUBEQ = 316,
|
||||
MULTEQ = 317,
|
||||
DIVEQ = 318,
|
||||
MODEQ = 319,
|
||||
POWEQ = 320,
|
||||
PRINT = 321,
|
||||
PRINTF = 322,
|
||||
SPRINTF = 323,
|
||||
ELSE = 324,
|
||||
INTEST = 325,
|
||||
CONDEXPR = 326,
|
||||
POSTINCR = 327,
|
||||
PREINCR = 328,
|
||||
POSTDECR = 329,
|
||||
PREDECR = 330,
|
||||
VAR = 331,
|
||||
IVAR = 332,
|
||||
VARNF = 333,
|
||||
CALL = 334,
|
||||
NUMBER = 335,
|
||||
STRING = 336,
|
||||
REGEXPR = 337,
|
||||
GETLINE = 338,
|
||||
SUBSTR = 339,
|
||||
SPLIT = 340,
|
||||
RETURN = 341,
|
||||
WHILE = 342,
|
||||
CAT = 343,
|
||||
UMINUS = 344,
|
||||
NOT = 345,
|
||||
POWER = 346,
|
||||
INCR = 347,
|
||||
DECR = 348,
|
||||
INDIRECT = 349,
|
||||
LASTTOKEN = 350
|
||||
};
|
||||
#endif
|
||||
/* Tokens. */
|
||||
#define FIRSTTOKEN 258
|
||||
#define PROGRAM 259
|
||||
#define PASTAT 260
|
||||
#define PASTAT2 261
|
||||
#define XBEGIN 262
|
||||
#define XEND 263
|
||||
#define NL 264
|
||||
#define ARRAY 265
|
||||
#define MATCH 266
|
||||
#define NOTMATCH 267
|
||||
#define MATCHOP 268
|
||||
#define FINAL 269
|
||||
#define DOT 270
|
||||
#define ALL 271
|
||||
#define CCL 272
|
||||
#define NCCL 273
|
||||
#define CHAR 274
|
||||
#define OR 275
|
||||
#define STAR 276
|
||||
#define QUEST 277
|
||||
#define PLUS 278
|
||||
#define EMPTYRE 279
|
||||
#define AND 280
|
||||
#define BOR 281
|
||||
#define APPEND 282
|
||||
#define EQ 283
|
||||
#define GE 284
|
||||
#define GT 285
|
||||
#define LE 286
|
||||
#define LT 287
|
||||
#define NE 288
|
||||
#define IN 289
|
||||
#define ARG 290
|
||||
#define BLTIN 291
|
||||
#define BREAK 292
|
||||
#define CLOSE 293
|
||||
#define CONTINUE 294
|
||||
#define DELETE 295
|
||||
#define DO 296
|
||||
#define EXIT 297
|
||||
#define FOR 298
|
||||
#define FUNC 299
|
||||
#define SUB 300
|
||||
#define GSUB 301
|
||||
#define IF 302
|
||||
#define INDEX 303
|
||||
#define LSUBSTR 304
|
||||
#define MATCHFCN 305
|
||||
#define NEXT 306
|
||||
#define NEXTFILE 307
|
||||
#define ADD 308
|
||||
#define MINUS 309
|
||||
#define MULT 310
|
||||
#define DIVIDE 311
|
||||
#define MOD 312
|
||||
#define ASSIGN 313
|
||||
#define ASGNOP 314
|
||||
#define ADDEQ 315
|
||||
#define SUBEQ 316
|
||||
#define MULTEQ 317
|
||||
#define DIVEQ 318
|
||||
#define MODEQ 319
|
||||
#define POWEQ 320
|
||||
#define PRINT 321
|
||||
#define PRINTF 322
|
||||
#define SPRINTF 323
|
||||
#define ELSE 324
|
||||
#define INTEST 325
|
||||
#define CONDEXPR 326
|
||||
#define POSTINCR 327
|
||||
#define PREINCR 328
|
||||
#define POSTDECR 329
|
||||
#define PREDECR 330
|
||||
#define VAR 331
|
||||
#define IVAR 332
|
||||
#define VARNF 333
|
||||
#define CALL 334
|
||||
#define NUMBER 335
|
||||
#define STRING 336
|
||||
#define REGEXPR 337
|
||||
#define GETLINE 338
|
||||
#define SUBSTR 339
|
||||
#define SPLIT 340
|
||||
#define RETURN 341
|
||||
#define WHILE 342
|
||||
#define CAT 343
|
||||
#define UMINUS 344
|
||||
#define NOT 345
|
||||
#define POWER 346
|
||||
#define INCR 347
|
||||
#define DECR 348
|
||||
#define INDIRECT 349
|
||||
#define LASTTOKEN 350
|
||||
|
||||
|
||||
|
||||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
#line 41 "awkgram.y"
|
||||
{
|
||||
Node *p;
|
||||
Cell *cp;
|
||||
int i;
|
||||
char *s;
|
||||
}
|
||||
/* Line 1529 of yacc.c. */
|
||||
#line 246 "y.tab.h"
|
||||
YYSTYPE;
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
#endif
|
||||
|
||||
extern YYSTYPE yylval;
|
||||
|
||||
Reference in New Issue
Block a user