Fix some basic showstopping bugs; compilation now works up to failing to find
authorDavid Given <dg@cowlark.com>
Sun, 27 Nov 2016 20:08:14 +0000 (21:08 +0100)
committerDavid Given <dg@cowlark.com>
Sun, 27 Nov 2016 20:08:14 +0000 (21:08 +0100)
the libb standard library.

lang/b/compiler/b0.c

index abbeeba..d0ea698 100644 (file)
@@ -97,11 +97,11 @@ main(int argc, char *argv[])
        if (string_part)
                C_insertpart(string_part);
 
-       C_exp("bsymb_start");
-       C_exp("bsymb_end");
+       C_exa_dnam("bsymb_patch_table");
+       C_df_dnam("bsymb_patch_table");
        if (bsymb_part)
                C_insertpart(bsymb_part);
-       C_df_dnam("bsymb_end");
+       C_rom_cst(0);
 
        C_close();
 
@@ -735,7 +735,7 @@ pswitch(void)
                C_con_ilb(swp->swlab);
        }
 
-       C_df_dlb(brklab);
+       C_df_ilb(brklab);
 
        deflab = dl;
        swp = sswp;