X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fca65%2Fsymtab.h;h=642734274017754e5821dc7579fd2faa397c6c71;hb=e67f4dcbd6a50c170d3e45da4fdcd08e4f6caeab;hp=9176bc7022bb2372b0530b283980c8742f74ff62;hpb=bb115c8ae2828eaff69016ca592079827bb7e0a3;p=cc65 diff --git a/src/ca65/symtab.h b/src/ca65/symtab.h index 9176bc702..642734274 100644 --- a/src/ca65/symtab.h +++ b/src/ca65/symtab.h @@ -42,14 +42,14 @@ /* common */ #include "exprdefs.h" - + /* ca65 */ #include "symentry.h" /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ @@ -60,7 +60,7 @@ void SymEnterLevel (void); void SymLeaveLevel (void); /* Leave the current lexical level */ -void SymDef (const char* Name, ExprNode* Expr, int ZP); +void SymDef (const char* Name, ExprNode* Expr, int ZP, int Label); /* Define a new symbol */ SymEntry* SymRef (const char* Name); @@ -86,6 +86,11 @@ void SymGlobal (const char* Name, int ZP); * either imported or exported. */ +void SymConDes (const char* Name, unsigned Type, unsigned Prio); +/* Mark the given symbol as a module constructor/destructor. This will also + * mark the symbol as an export. Initializers may never be zero page symbols. + */ + int SymIsConst (SymEntry* Sym); /* Return true if the given symbol has a constant value */ @@ -145,4 +150,4 @@ void WriteDbgSyms (void); - +