Added pop_push.h

This commit is contained in:
ceriel 1991-12-18 09:47:19 +00:00
parent 70b535c368
commit 12149f5858
4 changed files with 9 additions and 8 deletions

View file

@ -18,6 +18,7 @@ pattern.h
patterns patterns
peephole.c peephole.c
pop_push.awk pop_push.awk
pop_push.h
process.c process.c
proinf.h proinf.h
putline.c putline.c

View file

@ -1,7 +1,4 @@
BEGIN { print "#define CONDBRA '\001'" > "pop_push.h" BEGIN { print "#include \"pop_push.h\""
print "#define JUMP '\002'" >> "pop_push.h"
print "#define HASLABEL '\004'" >> "pop_push.h"
print "#include \"pop_push.h\""
print print
print "char *pop_push[] = {" print "char *pop_push[] = {"
print "\"\"," print "\"\","

3
util/opt/pop_push.h Normal file
View file

@ -0,0 +1,3 @@
#define CONDBRA '\001'
#define JUMP '\002'
#define HASLABEL '\004'

View file

@ -60,7 +60,7 @@ mktab.$(USUF): scan.c $(SRC_DIR)/optim.h $(SRC_DIR)/param.h $(SRC_DIR)/pattern.h
mktab.c: $(SRC_DIR)/mktab.y mktab.c: $(SRC_DIR)/mktab.y
yacc $(SRC_DIR)/mktab.y && mv y.tab.c mktab.c yacc $(SRC_DIR)/mktab.y && mv y.tab.c mktab.c
pop_push.c pop_push.h: $(SRC_HOME)/etc/em_table $(SRC_DIR)/pop_push.awk pop_push.c: $(SRC_HOME)/etc/em_table $(SRC_DIR)/pop_push.awk
awk -f $(SRC_DIR)/pop_push.awk < $(SRC_HOME)/etc/em_table > pop_push.c awk -f $(SRC_DIR)/pop_push.awk < $(SRC_HOME)/etc/em_table > pop_push.c
regglob.c: $(SRC_DIR)/reg.c regglob.c: $(SRC_DIR)/reg.c
@ -92,7 +92,7 @@ pr:
clean: clean:
rm -f *.$(SUF) opt mktab mktab.c scan.c pattern.c opt2 Out \ rm -f *.$(SUF) opt mktab mktab.c scan.c pattern.c opt2 Out \
pop_push.c pop_push.h regglob.c regnoglob.c *.old pop_push.c regglob.c regnoglob.c *.old
scan.c: $(SRC_DIR)/scan.l scan.c: $(SRC_DIR)/scan.l
flex -st $(SRC_DIR)/scan.l > scan.c flex -st $(SRC_DIR)/scan.l > scan.c
@ -253,7 +253,7 @@ reg.$(SUF): $(SRC_DIR)/param.h
reg.$(SUF): $(SRC_DIR)/assert.h reg.$(SUF): $(SRC_DIR)/assert.h
tes.$(SUF): $(SRC_DIR)/tes.c tes.$(SUF): $(SRC_DIR)/tes.c
$(CC) -c $(CFLAGS) $(SRC_DIR)/tes.c $(CC) -c $(CFLAGS) $(SRC_DIR)/tes.c
tes.$(SUF): ./pop_push.h tes.$(SUF): $(SRC_DIR)/pop_push.h
tes.$(SUF): $(SRC_DIR)/ext.h tes.$(SUF): $(SRC_DIR)/ext.h
tes.$(SUF): $(SRC_DIR)/line.h tes.$(SUF): $(SRC_DIR)/line.h
tes.$(SUF): $(SRC_DIR)/proinf.h tes.$(SUF): $(SRC_DIR)/proinf.h
@ -267,7 +267,7 @@ tes.$(SUF): $(TARGET_HOME)/h/em_mnem.h
tes.$(SUF): $(TARGET_HOME)/h/em_spec.h tes.$(SUF): $(TARGET_HOME)/h/em_spec.h
pop_push.$(SUF): pop_push.c pop_push.$(SUF): pop_push.c
$(CC) -c $(CFLAGS) pop_push.c $(CC) -c $(CFLAGS) pop_push.c
pop_push.$(SUF): pop_push.h pop_push.$(SUF): $(SRC_DIR)/pop_push.h
pattern.$(SUF): pattern.c pattern.$(SUF): pattern.c
$(CC) -c $(CFLAGS) pattern.c $(CC) -c $(CFLAGS) pattern.c
pattern.$(SUF): $(SRC_DIR)/pattern.h pattern.$(SUF): $(SRC_DIR)/pattern.h