aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripting.c
diff options
context:
space:
mode:
authornathansmith <nathansmith@posteo.com>2025-05-03 01:46:21 +0000
committernathansmith <nathansmith@posteo.com>2025-05-03 01:46:21 +0000
commit2d2f143d248ef9f173f711108feb770efdfe7d21 (patch)
treec82af5d97f4d4594f2630eabe9b31cec935ebf50 /src/scripting.c
parentffd314a245632a85ba5f310e8d86937091886d4d (diff)
downloadsldj-2d2f143d248ef9f173f711108feb770efdfe7d21.tar.gz
sldj-2d2f143d248ef9f173f711108feb770efdfe7d21.tar.bz2
sldj-2d2f143d248ef9f173f711108feb770efdfe7d21.zip
Shorter lines
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");