diff --git a/test/ScriptingUnitTests/Scripts/Minus.script b/test/ScriptingUnitTests/Scripts/Minus.script new file mode 100644 --- /dev/null +++ b/test/ScriptingUnitTests/Scripts/Minus.script @@ -0,0 +1,3 @@ +i = 1; +j = i - 1 + 4; +Print( j, "\n"); // => 1 diff --git a/test/ScriptingUnitTests/Scripts/Test.script b/test/ScriptingUnitTests/Scripts/Test.script new file mode 100644 --- /dev/null +++ b/test/ScriptingUnitTests/Scripts/Test.script @@ -0,0 +1,30 @@ +function fun1(a){ return (a < 1);} +function fun1(a){ return (a < 1);} +function fun1(a){ return (a < 1);} + +function fun1(a){ return (a < 1);} +function fun1(a){ return (a < 1);} +function fun1(a){ return (a < 1);} + +function fun1(a){ return (a < 1);} + +// ------------------------------------------------------------------------- +function Main(){ + + k= "aa"; + h= "xx"; + p= k + h; + + /* print_test.script:20 - Error: Can't alloc register, Regs=0xff */ + Print( k + h, "\n"); + + + /* works + */ + Print( p, "\n"); + + return 1; + +} + +Main(); \ No newline at end of file diff --git a/SlogViewer/CMakeLists.txt b/utils/SlogViewer/CMakeLists.txt rename from SlogViewer/CMakeLists.txt rename to utils/SlogViewer/CMakeLists.txt diff --git a/SlogViewer/Makefile.linux b/utils/SlogViewer/Makefile.linux rename from SlogViewer/Makefile.linux rename to utils/SlogViewer/Makefile.linux diff --git a/SlogViewer/SlogViewerProj.xml b/utils/SlogViewer/SlogViewerProj.xml rename from SlogViewer/SlogViewerProj.xml rename to utils/SlogViewer/SlogViewerProj.xml diff --git a/SlogViewer/resources/SlogViewer.lr8 b/utils/SlogViewer/resources/SlogViewer.lr8 rename from SlogViewer/resources/SlogViewer.lr8 rename to utils/SlogViewer/resources/SlogViewer.lr8 diff --git a/SlogViewer/resources/resdefs.h b/utils/SlogViewer/resources/resdefs.h rename from SlogViewer/resources/resdefs.h rename to utils/SlogViewer/resources/resdefs.h diff --git a/SlogViewer/src/SlogViewerMain.cpp b/utils/SlogViewer/src/SlogViewerMain.cpp rename from SlogViewer/src/SlogViewerMain.cpp rename to utils/SlogViewer/src/SlogViewerMain.cpp diff --git a/SlogViewer/win/SlogViewer.sln b/utils/SlogViewer/win/SlogViewer.sln rename from SlogViewer/win/SlogViewer.sln rename to utils/SlogViewer/win/SlogViewer.sln diff --git a/SlogViewer/win/SlogViewer.vcxproj b/utils/SlogViewer/win/SlogViewer.vcxproj rename from SlogViewer/win/SlogViewer.vcxproj rename to utils/SlogViewer/win/SlogViewer.vcxproj diff --git a/SlogViewer/win/SlogViewer.vcxproj.filters b/utils/SlogViewer/win/SlogViewer.vcxproj.filters rename from SlogViewer/win/SlogViewer.vcxproj.filters rename to utils/SlogViewer/win/SlogViewer.vcxproj.filters diff --git a/Updater/CMakeLists.txt b/utils/Updater/CMakeLists.txt rename from Updater/CMakeLists.txt rename to utils/Updater/CMakeLists.txt diff --git a/Updater/Main.cpp b/utils/Updater/Main.cpp rename from Updater/Main.cpp rename to utils/Updater/Main.cpp diff --git a/Updater/Updater.manifest b/utils/Updater/Updater.manifest rename from Updater/Updater.manifest rename to utils/Updater/Updater.manifest diff --git a/Updater/Updater_vs2015.vcxproj b/utils/Updater/Updater_vs2015.vcxproj rename from Updater/Updater_vs2015.vcxproj rename to utils/Updater/Updater_vs2015.vcxproj diff --git a/Updater/Updater_vs2019.vcxproj b/utils/Updater/Updater_vs2019.vcxproj rename from Updater/Updater_vs2019.vcxproj rename to utils/Updater/Updater_vs2019.vcxproj diff --git a/VsLaunch/CMakeLists.txt b/utils/VsLaunch/CMakeLists.txt rename from VsLaunch/CMakeLists.txt rename to utils/VsLaunch/CMakeLists.txt diff --git a/VsLaunch/Main.cpp b/utils/VsLaunch/Main.cpp rename from VsLaunch/Main.cpp rename to utils/VsLaunch/Main.cpp diff --git a/VsLaunch/VsLaunch.lr8 b/utils/VsLaunch/VsLaunch.lr8 rename from VsLaunch/VsLaunch.lr8 rename to utils/VsLaunch/VsLaunch.lr8 diff --git a/VsLaunch/VsLaunch.sln b/utils/VsLaunch/VsLaunch.sln rename from VsLaunch/VsLaunch.sln rename to utils/VsLaunch/VsLaunch.sln diff --git a/VsLaunch/VsLaunch.vcxproj b/utils/VsLaunch/VsLaunch.vcxproj rename from VsLaunch/VsLaunch.vcxproj rename to utils/VsLaunch/VsLaunch.vcxproj diff --git a/VsLaunch/VsLaunch.vcxproj.filters b/utils/VsLaunch/VsLaunch.vcxproj.filters rename from VsLaunch/VsLaunch.vcxproj.filters rename to utils/VsLaunch/VsLaunch.vcxproj.filters diff --git a/VsLaunch/resdefs.h b/utils/VsLaunch/resdefs.h rename from VsLaunch/resdefs.h rename to utils/VsLaunch/resdefs.h