From: Michael D. Lowis Date: Wed, 22 Oct 2014 13:37:02 +0000 (-0400) Subject: Added stub functions for compiling and linking X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=ec9717e5a7722df3b9d9051744c438bfeb4179d7;p=proto%2Fsclpl.git Added stub functions for compiling and linking --- 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))) {