X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=symbol.h;h=3dc930f6f94b45629aa9d9764fc9a7c1d5b48dd0;hp=b7350e0adf6373702b59a1511070fb67b8764d58;hb=c9541a9d4f01e190ffefc20ce07896c7f04d9557;hpb=c3bb316d42b8471dbe87fa4b8c9787265e7b01da diff --git a/symbol.h b/symbol.h index b7350e0..3dc930f 100644 --- a/symbol.h +++ b/symbol.h @@ -12,9 +12,10 @@ #include // Line lists -struct LineList +#define LLIST struct _llist +LLIST { - struct LineList * next; + LLIST * next; uint8_t * line; }; @@ -22,18 +23,18 @@ struct LineList #define SYM struct _sym SYM { - SYM * snext; // * -> Next symbol on hash-chain - SYM * sorder; // * -> Next sym in order of reference - SYM * sdecl; // * -> Next sym in order of declaration - uint8_t stype; // Symbol type - uint16_t sattr; // Attribute bits - uint32_t sattre; // Extended attribute bits - uint16_t senv; // Enviroment number - uint32_t svalue; // Symbol value - uint8_t * sname; // * -> Symbol's print-name - struct LineList * lineList; // * -> Macro's linked list of lines - struct LineList * last; // * -> end of macro linked list - uint32_t uid; // Symbol's unique ID + SYM * snext; // * -> Next symbol on hash-chain + SYM * sorder; // * -> Next sym in order of reference + SYM * sdecl; // * -> Next sym in order of declaration + uint8_t stype; // Symbol type + uint16_t sattr; // Attribute bits + uint32_t sattre; // Extended attribute bits + uint16_t senv; // Enviroment number + uint32_t svalue; // Symbol value + uint8_t * sname; // * -> Symbol's print-name + LLIST * lineList; // * -> Macro's linked list of lines + LLIST * last; // * -> end of macro linked list + uint32_t uid; // Symbol's unique ID }; // Exported variables