aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripting.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting.c')
-rw-r--r--src/scripting.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 8dbdec5..dd9f6c7 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -37,7 +37,8 @@ void compileScript(SldjScripting* scripting, const char filePath[SLDJ_NAMEMAX])
{
scripting->fileBuf = (char*)malloc(scripting->fileSize);
} else {
- scripting->fileBuf = (char*)realloc(scripting->fileBuf, scripting->fileSize);
+ scripting->fileBuf = (char*)realloc(scripting->fileBuf,
+ scripting->fileSize);
}
if (scripting->fileBuf == NULL)
@@ -72,7 +73,8 @@ void compileScript(SldjScripting* scripting, const char filePath[SLDJ_NAMEMAX])
return;
}
- tcc_set_error_func(scripting->state, stderr, handle_tcc_error);
+ tcc_set_error_func(scripting->state, stderr,
+ handle_tcc_error);
tcc_set_output_type(scripting->state, TCC_OUTPUT_MEMORY);
tcc_add_library_path(scripting->state, "./libsldj");