From 65e5624011342b41ebbda6c966b7a6e02df88764 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Wed, 10 Jun 1981 08:45:13 -0800 Subject: [PATCH] change over to new error message format SCCS-vsn: usr.bin/pascal/px/interp.c 1.14 SCCS-vsn: usr.bin/pascal/px/Makefile 1.9 --- usr/src/usr.bin/pascal/px/Makefile | 7 +++---- usr/src/usr.bin/pascal/px/interp.c | 11 +++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/usr/src/usr.bin/pascal/px/Makefile b/usr/src/usr.bin/pascal/px/Makefile index ae7af46a9d..085b2e380b 100644 --- a/usr/src/usr.bin/pascal/px/Makefile +++ b/usr/src/usr.bin/pascal/px/Makefile @@ -1,4 +1,4 @@ -SCCSID = "@(#)Makefile 1.8 %G%" +SCCSID = "@(#)Makefile 1.9 %G%" CFLAGS = -O DESTDIR = @@ -12,7 +12,7 @@ AS = as RM = rm -f PSHDR = OPnames.h whoami.h objfmt.h opc.c pic.c -PCHDR = libpc.h h01errs.h +PCHDR = libpc.h PXHDR = vars.h machdep.h @@ -56,7 +56,7 @@ install: px clean: ${RM} *.o *.s px version opc* pic* OPnames.h objfmt.h libpc.h\ - panics.h h01errs.h h02opcs.h errs lpr core tmp + panics.h h02opcs.h errs lpr core tmp prt: interp.s sed -f clean.sed #include "whoami.h" @@ -9,7 +9,6 @@ static char sccsid[] = "@(#)interp.c 1.13 %G%"; #include "panics.h" #include "h02opcs.h" #include "machdep.h" -#include "h01errs.h" #include "libpc.h" /* @@ -282,7 +281,7 @@ interpreter(base) stp = _dp->stp; while (tstp != stp) { if (_dp == &_display.frame[1]) - ERROR(EGOTO); /* exiting prog ??? */ + ERROR("Active frame not found in non-local goto\n", 0); /* exiting prog ??? */ PCLOSE(_dp->locvars); /* close local files */ curfile = stp->file; /* restore active file */ *_dp = stp->odisp; /* old display entry */ @@ -1066,7 +1065,7 @@ interpreter(base) if (tl1 == *tcp++) break; if (tl == 0) /* default case => error */ - ERROR(ECASE, tl1); + ERROR("Label of %D not found in case\n", tl1); pc.cp += *(tsp - tl); continue; case O_CASE2OP: @@ -1080,7 +1079,7 @@ interpreter(base) if (tl1 == *tsp1++) break; if (tl == 0) /* default case => error */ - ERROR(ECASE, tl1); + ERROR("Label of %D not found in case\n", tl1); pc.cp += *(tsp - tl); continue; case O_CASE4OP: @@ -1094,7 +1093,7 @@ interpreter(base) if (tl1 == *tlp++) break; if (tl == 0) /* default case => error */ - ERROR(ECASE, tl1); + ERROR("Label of %D not found in case\n", tl1); pc.cp += *(tsp - tl); continue; case O_ADDT: -- 2.20.1