aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_compile.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 2fa027a..9b13e62 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -1069,7 +1069,10 @@ static void outputBlockToken(FILE *file, outputMode mode, LSL_Leaf *content)
1069{ 1069{
1070 if (content) 1070 if (content)
1071 { 1071 {
1072 fprintf(file, "\n{\n"); 1072 if (LUASL_DIFF_CHECK)
1073 fprintf(file, "\n{");
1074 else
1075 fprintf(file, "\n{\n");
1073 if (content->value.blockValue) 1076 if (content->value.blockValue)
1074 { 1077 {
1075 LSL_Statement *statement = NULL; 1078 LSL_Statement *statement = NULL;
@@ -1078,10 +1081,18 @@ static void outputBlockToken(FILE *file, outputMode mode, LSL_Leaf *content)
1078 { 1081 {
1079 outputLeaf(file, mode, statement->expressions); 1082 outputLeaf(file, mode, statement->expressions);
1080 if (LSL_FUNCTION != statement->type) 1083 if (LSL_FUNCTION != statement->type)
1081 fprintf(file, ";\n"); 1084 {
1085 if (LUASL_DIFF_CHECK)
1086 fprintf(file, ";");
1087 else
1088 fprintf(file, ";\n");
1089 }
1082 } 1090 }
1083 } 1091 }
1084 fprintf(file, "}\n"); 1092 if (LUASL_DIFF_CHECK)
1093 fprintf(file, "\n}");
1094 else
1095 fprintf(file, "}");
1085 } 1096 }
1086} 1097}
1087 1098
@@ -1104,8 +1115,11 @@ static void outputFunctionToken(FILE *file, outputMode mode, LSL_Leaf *content)
1104 fprintf(file, "%s(", func->name); 1115 fprintf(file, "%s(", func->name);
1105 EINA_INARRAY_FOREACH((&(func->vars)), param) 1116 EINA_INARRAY_FOREACH((&(func->vars)), param)
1106 { 1117 {
1107 if (!first) 1118 if (!LUASL_DIFF_CHECK)
1108 fprintf(file, ", "); 1119 {
1120 if (!first)
1121 fprintf(file, ", ");
1122 }
1109 outputLeaf(file, mode, param); 1123 outputLeaf(file, mode, param);
1110 first = FALSE; 1124 first = FALSE;
1111 } 1125 }