Rename addr_t to address_t to avoid clashes with the system addr_t.
authorDavid Given <dg@cowlark.com>
Fri, 11 Nov 2016 19:17:10 +0000 (20:17 +0100)
committerDavid Given <dg@cowlark.com>
Fri, 11 Nov 2016 19:17:10 +0000 (20:17 +0100)
mach/proto/ncg/data.h
mach/proto/ncg/gencode.c
mach/proto/ncg/result.h
util/LLgen/build.lua

index c1d0e18..ddd232b 100644 (file)
@@ -12,13 +12,13 @@ typedef struct cost {
 typedef struct {
        string ea_str;
        word ea_off;
-} addr_t;
+} address_t;
 
 typedef struct {
        int     t_token;        /* kind of token, -1 for register */
        union {
                word aw;        /* integer type */
-               addr_t aa;      /* address type */
+               address_t aa;   /* address type */
                int ar;         /* register type */
        } t_att[TOKENSIZE];
 } token_t,*token_p;
index 415d59f..6867686 100644 (file)
@@ -72,7 +72,7 @@ genstr(stringno) {
        fputs(codestrings[stringno],codefile);
 }
 
-string ad2str(ad) addr_t ad; {
+string ad2str(ad) address_t ad; {
        static char buf[100];
 
        if (ad.ea_str==0)
@@ -87,7 +87,7 @@ string ad2str(ad) addr_t ad; {
        return(mystrcpy(buf));
 }
 
-praddr(ad) addr_t ad; {
+praddr(ad) address_t ad; {
 
        if (ad.ea_str==0 || *(ad.ea_str) == '\0')
                fprintf(codefile,WRD_FMT,ad.ea_off);
index 7ceb2f1..fdb9e16 100644 (file)
@@ -9,7 +9,7 @@ struct result {
        union {
                word e_con;
                int e_reg;
-               addr_t e_addr;
+               address_t e_addr;
        } e_v;                  /* value */
 };
 
index 44abc87..9cde563 100644 (file)
@@ -1,3 +1,8 @@
+clibrary {
+       name = "headers",
+       hdrs = { "./src/*.h" }
+}
+
 cprogram {
        name = "llgen",
 
@@ -6,6 +11,7 @@ cprogram {
        -- do this.
 
        srcs = { "./src/*.c" },
+       deps = { "+headers" },
        vars = {
                ["+cflags"] = {
                        "-DLIBDIR=\\\""..posix.getcwd().."/"..cwd().."/lib\\\"",