From: DeaDDooMER Date: Mon, 22 Jul 2019 19:33:54 +0000 (+0300) Subject: add option -no-use-time X-Git-Tag: v0.2~4 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=12e708d8780328a94dab7923c7db7bdf602f127b;p=cpc.git add option -no-use-time --- diff --git a/src/generic/CPfront/Mod/CPG.odc b/src/generic/CPfront/Mod/CPG.odc index fd732b9..824fbfa 100644 Binary files a/src/generic/CPfront/Mod/CPG.odc and b/src/generic/CPfront/Mod/CPG.odc differ diff --git a/src/generic/Dev/Mod/CPE.odc b/src/generic/Dev/Mod/CPE.odc index 2ac4588..00a3833 100644 Binary files a/src/generic/Dev/Mod/CPE.odc and b/src/generic/Dev/Mod/CPE.odc differ diff --git a/src/generic/Dsw/Mod/Compiler486Main.cp b/src/generic/Dsw/Mod/Compiler486Main.cp index 0718582..916ab17 100644 --- a/src/generic/Dsw/Mod/Compiler486Main.cp +++ b/src/generic/Dsw/Mod/Compiler486Main.cp @@ -8,8 +8,10 @@ MODULE DswCompiler486Main; (* compiler options: *) checks = 0; allchecks = 1; assert = 2; obj = 3; ref = 4; allref = 5; srcpos = 6; reallib = 7; signatures = 8; + (* pVarInd = 14; bigEnd = 15; *) ctime = 16; + mainprog = 20; include0 = 21; hint = 29; oberon = 30; errorTrap = 31; - defopt = {checks, assert, obj, ref, allref, srcpos, signatures}; + defopt = {checks, assert, obj, ref, allref, srcpos, signatures, ctime}; version = "0.2"; @@ -171,6 +173,10 @@ MODULE DswCompiler486Main; ELSIF p = "-version" THEN Console.WriteStr(version); Console.WriteLn; Kernel.Quit(0) + ELSIF p = "-use-time" THEN + INCL(opts, ctime) + ELSIF p = "-no-use-time" THEN + EXCL(opts, ctime) ELSE Console.WriteStr("unknown option "); Console.WriteStr(p); Console.WriteLn; diff --git a/src/generic/Dsw/Mod/CompilerCPfrontMain.cp b/src/generic/Dsw/Mod/CompilerCPfrontMain.cp index efbd6f7..f8ecb5c 100644 --- a/src/generic/Dsw/Mod/CompilerCPfrontMain.cp +++ b/src/generic/Dsw/Mod/CompilerCPfrontMain.cp @@ -7,10 +7,11 @@ MODULE DswCompilerCPfrontMain; (* compiler options: *) checks = 0; allchecks = 1; assert = 2; obj = 3; ref = 4; allref = 5; srcpos = 6; reallib = 7; signatures = 8; + (* pVarInd = 14; bigEnd = 15; *) ctime = 16; mainprog = 20; include0 = 21; hint = 29; oberon = 30; errorTrap = 31; - (* defopt = {checks, assert, obj, ref, allref, srcpos, signatures}; *) - defopt = {checks, assert, obj}; + (* defopt = {checks, assert, obj, ref, allref, srcpos, signatures, ctime}; *) + defopt = {checks, assert, obj, ctime}; version = "0.2"; @@ -172,6 +173,10 @@ MODULE DswCompilerCPfrontMain; ELSIF p = "-version" THEN Console.WriteStr(version); Console.WriteLn; Kernel.Quit(0) + ELSIF p = "-use-time" THEN + INCL(opts, ctime) + ELSIF p = "-no-use-time" THEN + EXCL(opts, ctime) ELSE Console.WriteStr("unknown option "); Console.WriteStr(p); Console.WriteLn; @@ -216,6 +221,7 @@ MODULE DswCompilerCPfrontMain; IF oberon IN m.opts THEN INCL(DevCPM.options, DevCPM.oberon) END; IF mainprog IN m.opts THEN INCL(DevCPG.opt, DevCPG.mainprog) END; IF include0 IN m.opts THEN INCL(DevCPG.opt, DevCPG.include0) END; + IF ctime IN m.opts THEN INCL(DevCPG.opt, DevCPG.ctime) END; DevCPT.Init(m.opts); (* DevCPB.typSize := DevCPV.TypeSize; *) DevCPB.typSize := DevCPV.TypSize;