From ec9717e5a7722df3b9d9051744c438bfeb4179d7 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 22 Oct 2014 09:37:02 -0400 Subject: [PATCH] Added stub functions for compiling and linking --- source/sclpl/main.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/sclpl/main.c b/source/sclpl/main.c index 6be6bb8..985cc8d 100644 --- a/source/sclpl/main.c +++ b/source/sclpl/main.c @@ -189,6 +189,18 @@ int translate(str_t* in, str_t* out) { return ret; } +int compile(str_t* in, str_t* out) { + (void)in; + (void)out; + return 1; +} + +int link_executable(list_t* objects, str_t* out) { + (void)objects; + (void)out; + return 1; +} + /* Driver Modes *****************************************************************************/ static int emit_tokens(void) { @@ -226,7 +238,7 @@ static int emit_csource(void) { list_t* files = input_files(); size_t size = list_size(files); if (0 == size) { - translate(NULL, NULL); + ret = translate(NULL, NULL); } else { list_node_t* node = NULL; while (NULL != (node = list_pop_front(files))) { -- 2.52.0