aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.c b/LuaSL/src/LuaSL_LSL_tree.c
index 5b9c1b2..dc927ad 100644
--- a/LuaSL/src/LuaSL_LSL_tree.c
+++ b/LuaSL/src/LuaSL_LSL_tree.c
@@ -789,6 +789,8 @@ static int nextFile(LuaSL_yyparseParam *param)
789 return FALSE; 789 return FALSE;
790} 790}
791 791
792char *test[] = {"test2.lsl", "test2.lsl"};
793
792int main(int argc, char **argv) 794int main(int argc, char **argv)
793{ 795{
794// char *programName = argv[0]; 796// char *programName = argv[0];
@@ -814,6 +816,12 @@ int main(int argc, char **argv)
814 } 816 }
815 817
816 // First time setup. 818 // First time setup.
819 if (1 == argc)
820 {
821 // Fake a test file if there is none. Mostly for ddd.
822 argc++;
823 argv = test;
824 }
817 memset(&param, 0, sizeof(param)); 825 memset(&param, 0, sizeof(param));
818 param.argc = argc; 826 param.argc = argc;
819 param.argv = argv; 827 param.argv = argv;