From 8e99b149fc9c77e954f0d806d0bc7ca02d2b5d99 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 26 Feb 1992 13:35:06 +0000 Subject: [PATCH] Fix in DEFPATH mechanism, improved proto.make --- lang/m2/comp/main.c | 3 ++- lang/m2/comp/proto.make | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lang/m2/comp/main.c b/lang/m2/comp/main.c index 20b8cb486..5839c690f 100644 --- a/lang/m2/comp/main.c +++ b/lang/m2/comp/main.c @@ -40,7 +40,7 @@ char options[128]; int DefinitionModule; char *ProgName; char **DEFPATH; -int nDEF = 1, mDEF = 10; +int nDEF = 2, mDEF = 10; int pass_1 = 1; t_def *Defined; extern int err_occurred; @@ -56,6 +56,7 @@ main(argc, argv) ProgName = *argv++; DEFPATH = (char **) Malloc((unsigned)mDEF * sizeof(char *)); + DEFPATH[1] = 0; while (--argc > 0) { if (**argv == '-') diff --git a/lang/m2/comp/proto.make b/lang/m2/comp/proto.make index 688390810..1a4536e2d 100644 --- a/lang/m2/comp/proto.make +++ b/lang/m2/comp/proto.make @@ -98,6 +98,8 @@ make_macros: Makefile echo 'COPTIONS=$(COPTIONS)' >> make_macros echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros echo 'LINT=$(LINT)' >> make_macros + echo 'LINTSUF=$(LINTSUF)' >> make_macros + echo 'LINTPREF=$(LINTPREF)' >> make_macros echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros echo 'SUF=$(SUF)' >> make_macros echo 'LIBSUF=$(LIBSUF)' >> make_macros