From: ceriel Date: Wed, 18 Dec 1991 09:47:19 +0000 (+0000) Subject: Added pop_push.h X-Git-Tag: release-5-5~532 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=12149f585837554d3c6d927dff2f3d76b5082287;p=ack.git Added pop_push.h --- diff --git a/util/opt/.distr b/util/opt/.distr index 455953ca5..f541a4f02 100644 --- a/util/opt/.distr +++ b/util/opt/.distr @@ -18,6 +18,7 @@ pattern.h patterns peephole.c pop_push.awk +pop_push.h process.c proinf.h putline.c diff --git a/util/opt/pop_push.awk b/util/opt/pop_push.awk index 11ae180d8..e8d969c46 100644 --- a/util/opt/pop_push.awk +++ b/util/opt/pop_push.awk @@ -1,7 +1,4 @@ -BEGIN { print "#define CONDBRA '\001'" > "pop_push.h" - print "#define JUMP '\002'" >> "pop_push.h" - print "#define HASLABEL '\004'" >> "pop_push.h" - print "#include \"pop_push.h\"" +BEGIN { print "#include \"pop_push.h\"" print print "char *pop_push[] = {" print "\"\"," diff --git a/util/opt/pop_push.h b/util/opt/pop_push.h new file mode 100644 index 000000000..b07ea6489 --- /dev/null +++ b/util/opt/pop_push.h @@ -0,0 +1,3 @@ +#define CONDBRA '\001' +#define JUMP '\002' +#define HASLABEL '\004' diff --git a/util/opt/proto.make b/util/opt/proto.make index a4b5d5587..c5ab38bfb 100644 --- a/util/opt/proto.make +++ b/util/opt/proto.make @@ -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 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 regglob.c: $(SRC_DIR)/reg.c @@ -92,7 +92,7 @@ pr: clean: 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 flex -st $(SRC_DIR)/scan.l > scan.c @@ -253,7 +253,7 @@ reg.$(SUF): $(SRC_DIR)/param.h reg.$(SUF): $(SRC_DIR)/assert.h tes.$(SUF): $(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)/line.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 pop_push.$(SUF): 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 $(CC) -c $(CFLAGS) pattern.c pattern.$(SUF): $(SRC_DIR)/pattern.h