gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - use the new Read_Line_Proc instead of the function version
authorDoni Pracner <quinnuendo@gmail.com>
Wed, 30 Jul 2014 17:52:36 +0000 (19:52 +0200)
committerDoni Pracner <quinnuendo@gmail.com>
Wed, 30 Jul 2014 17:52:36 +0000 (19:52 +0200)
src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java

index d50c5a4b9827d107d7de29b5608d6aa2d7c9b6fc..c890fefed757c443c72e6ae48d3ac3ba5f1fcad5 100644 (file)
@@ -366,7 +366,7 @@ public class mjc2wsl{
                        if (genPrintForEachAddress) {
                                prl("PRINT(\"a" + mjInput.getCounter() + "\");");
                                if (genPauseAfterEachAddress)
-                                       prl("debug_disposable_string := @Read_Line(Standard_Input_Port);");
+                                       prl("@Read_Line_Proc(VAR debug_disposable_string, Standard_Input_Port);");
                        }
                        switch (op) {
                        case load: {
@@ -659,7 +659,8 @@ public class mjc2wsl{
                        }
                        case read: {
                                prl(createStartVar("tempa"));
-                               prl("tempa := @String_To_Num(@Read_Line(Standard_Input_Port));");
+                               prl("@Read_Line_Proc(VAR tempa, Standard_Input_Port);");
+                               prl("tempa := @String_To_Num(tempa);");
                                prl(createToEStack("tempa"));
                                prl(createEndVar());
                                break;
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner