From 36946580b499200dc46e6e40f7a849937f11f333 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Mon, 24 Feb 2020 19:15:15 +0300 Subject: [PATCH] cpmake: read module fully --- src/generic/Dsw/Mod/MakeMain.cp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/generic/Dsw/Mod/MakeMain.cp b/src/generic/Dsw/Mod/MakeMain.cp index 8e68f87..989b8bc 100644 --- a/src/generic/Dsw/Mod/MakeMain.cp +++ b/src/generic/Dsw/Mod/MakeMain.cp @@ -477,6 +477,29 @@ MODULE DswMakeMain; END END; CheckSym(semicolon) + END; + LOOP (* preprocessor must read module fully *) + IF sym = end THEN + DevCPS.Get(sym); + IF sym = ident THEN + DevCPS.Get(sym); + IF sym = period THEN + IF DevCPS.name # SelfName THEN err(4) END; + EXIT + ELSIF sym = eof THEN + err(period); + EXIT + END + ELSIF sym = eof THEN + err(ident); + EXIT + END; + ELSIF sym = eof THEN + err(end); + EXIT + ELSE + DevCPS.Get(sym); + END END ELSE err(ident) END; -- 2.29.2