gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
wsl scripts, new ARGV handling
authorDoni Pracner <quinnuendo@gmail.com>
Sat, 20 Jan 2018 14:56:32 +0000 (15:56 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Sat, 20 Jan 2018 15:02:59 +0000 (16:02 +0100)
FermaT has changed @Argv to ARGV for better compatibility
with Scheme implementations. Therefore a change was
needed in the scripts that use command line arguments.

src-wsl/metrics.wsl
src-wsl/transf-exp.wsl
src-wsl/transf-min.wsl
src-wsl/transf-stack.wsl

index d563847..b73a466 100644 (file)
@@ -106,7 +106,7 @@ VAR< prog := < >,
        filename:="", filename2 := "",
        metrics := < >, met2 := < >,
        opened := 0,
        filename:="", filename2 := "",
        metrics := < >, met2 := < >,
        opened := 0,
-       Argv := @Argv 
+       Argv := ARGV 
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
index b198640..d4b7d32 100755 (executable)
@@ -182,7 +182,7 @@ END;
 C:"Main program - processes the arguments";
 VAR< prog := < >, inifilename := "transf.ini",
        filename:="", file := "", inifile:= "",
 C:"Main program - processes the arguments";
 VAR< prog := < >, inifilename := "transf.ini",
        filename:="", file := "", inifile:= "",
-       Argv := @Argv
+       Argv := ARGV
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
index d3d0106..5086bc6 100755 (executable)
@@ -123,7 +123,7 @@ END;
 
 VAR< prog := < >, inifilename := "transf.ini",
        filename:="", file := "", inifile:= "",
 
 VAR< prog := < >, inifilename := "transf.ini",
        filename:="", file := "", inifile:= "",
-       Argv := @Argv
+       Argv := ARGV
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
index 5f277da..325f8ec 100755 (executable)
@@ -113,7 +113,7 @@ END;
 
 VAR< prog := < >, inifilename := "transf.ini", 
        filename:="", file := "", inifile:= "",
 
 VAR< prog := < >, inifilename := "transf.ini", 
        filename:="", file := "", inifile:= "",
-       Argv := @Argv 
+       Argv := ARGV 
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
 >:
 C:"First one is the script name that is being executed";
 Argv := TAIL(Argv);
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner