X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fmacrotab.h;h=0a699bbfcbb57642c7e57f0efbb12d2942a03c36;hb=7ce4196829a53194a546c752dfb4239013f0b16b;hp=37470217132123af3e38a8d26c048f0f69c9655f;hpb=04c9e1e3c70effe6ae80bd0db4f111039040206b;p=cc65 diff --git a/src/cc65/macrotab.h b/src/cc65/macrotab.h index 374702171..0a699bbfc 100644 --- a/src/cc65/macrotab.h +++ b/src/cc65/macrotab.h @@ -44,21 +44,21 @@ -typedef struct Macro_ Macro; -struct Macro_ { - Macro* Next; /* Next macro with same hash value */ - int ArgCount; /* Number of parameters, -1 = no parens */ +typedef struct Macro Macro; +struct Macro { + Macro* Next; /* Next macro with same hash value */ + int ArgCount; /* Number of parameters, -1 = no parens */ unsigned MaxArgs; /* Size of formal argument list */ char** FormalArgs; /* Formal argument list */ char const** ActualArgs; /* Actual argument list */ char* Replacement; /* Replacement text */ - char Name[1]; /* Name, dynamically allocated */ + char Name[1]; /* Name, dynamically allocated */ }; /*****************************************************************************/ -/* code */ +/* code */ /*****************************************************************************/ @@ -73,11 +73,11 @@ void FreeMacro (Macro* M); * table, use UndefineMacro for that. */ -void AddNumericMacro (const char* Name, long Val); -/* Add a macro for a numeric constant */ +void DefineNumericMacro (const char* Name, long Val); +/* Define a macro for a numeric constant */ -void AddTextMacro (const char* Name, const char* Val); -/* Add a macro for a textual constant */ +void DefineTextMacro (const char* Name, const char* Val); +/* Define a macro for a textual constant */ void InsertMacro (Macro* M); /* Insert the given macro into the macro table. This call will also allocate @@ -122,4 +122,3 @@ void PrintMacroStats (FILE* F); -