]> git.sur5r.net Git - cc65/blobdiff - src/cc65/macrotab.h
New/changed optimizations
[cc65] / src / cc65 / macrotab.h
index 37470217132123af3e38a8d26c048f0f69c9655f..0a699bbfcbb57642c7e57f0efbb12d2942a03c36 100644 (file)
 
 
 
-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);
 
 
 
-