]> git.mdlowis.com Git - proto/obnc.git/commitdiff
fixed declarations of module init functions. Imports are now mostly functional
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 5 Dec 2022 14:13:15 +0000 (09:13 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 5 Dec 2022 14:13:15 +0000 (09:13 -0500)
cerise/backend/ssa/codegen.c

index 66ae53a989cb816e363809785be24e964fb5420d..8d552ab6438601e1b7273b4a211950e902c2d05b 100644 (file)
@@ -174,7 +174,7 @@ void codegen_symbol(Parser* p, Symbol* sym)
     }
     else if (sym->class == SYM_MODULE)
     {
-        if (sym->module == 0)
+        if (!sym->forward)
         {
             printf("define ");
         }