aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorCamil Staps2015-07-07 23:19:59 +0200
committerCamil Staps2015-07-07 23:19:59 +0200
commit4549122f5e59e7ff3f60184a0c2f5316afa11705 (patch)
tree2e5189011df341a23977e3d31a4b0de374ed407e /compile.c
parentInitial commit (diff)
Fixes & readme
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compile.c b/compile.c
index 3b92ed2..2295f20 100644
--- a/compile.c
+++ b/compile.c
@@ -42,7 +42,7 @@
*
* @return void
*/
-void compile(CleanString path, CleanString module) {
+int64_t compile(CleanString path, CleanString module) {
char* pathchars, * modulechars;
int pathlength, modulelength;
@@ -71,13 +71,13 @@ void compile(CleanString path, CleanString module) {
// Build command:
// clm -ms <module> -o <module>
- char cmd[64] = "clm -ms ";
+ char cmd[64] = "clm -ms -nw ";
strcat(cmd, modulechars);
strcat(cmd, " -o ");
strcat(cmd, modulechars);
// Call clm
- system(cmd);
+ return system(cmd);
}
/**