From 4220dc14792ea809394eb41b0a77fa83430ea262 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 16 May 1989 14:48:47 +0000 Subject: [PATCH] some fixes --- modules/src/em_opt/Makefile | 2 +- modules/src/em_opt/nopt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/src/em_opt/Makefile b/modules/src/em_opt/Makefile index dc52a9fbc..4520d412b 100644 --- a/modules/src/em_opt/Makefile +++ b/modules/src/em_opt/Makefile @@ -115,7 +115,7 @@ $(LIBOPT): dfadummy $(NOFILES) mkstrct.$(SUF) pseudo.d incalls.d $(LIBCEOPT): make clean - make PREFLAGS='$(INCLDIR) -DPRIVATE=static -DCODE_EXPANDER' $(LIBOPT) + make "EMHOME="$(EMHOME) PREFLAGS='$(INCLDIR) -DPRIVATE=static -DCODE_EXPANDER' $(LIBOPT) mv $(LIBOPT) $(LIBCEOPT) make clean diff --git a/modules/src/em_opt/nopt.h b/modules/src/em_opt/nopt.h index ad71d7210..31aaca510 100644 --- a/modules/src/em_opt/nopt.h +++ b/modules/src/em_opt/nopt.h @@ -38,7 +38,7 @@ extern p_instr OO_nxtrepl; p_instr OO_halfflush(); -# define GETNXTPATT() (OO_nxtpatt>&OO_buffer[MAXBUFFER]?OO_halfflush():OO_nxtpatt++) +# define GETNXTPATT() (OO_nxtpatt>=&OO_buffer[MAXBUFFER]?OO_halfflush():OO_nxtpatt++) # define GETNXTREPL() (OO_nxtrepl++) # define FLUSHDFA() (GETNXTPATT())->em_opcode=OTHER;\