]> git.mdlowis.com Git - proto/sclpl.git/commitdiff
Added stub functions for compiling and linking
authorMichael D. Lowis <mike@mdlowis.com>
Wed, 22 Oct 2014 13:37:02 +0000 (09:37 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Wed, 22 Oct 2014 13:37:02 +0000 (09:37 -0400)
source/sclpl/main.c

index 6be6bb82a7458a914da4d265139cb51a07dedbd2..985cc8dfb11be892b903d204660da02d399c414b 100644 (file)
@@ -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))) {