]> git.sur5r.net Git - cc65/blobdiff - src/cc65/funcdesc.c
Merge remote-tracking branch 'upstream/master' into a5200
[cc65] / src / cc65 / funcdesc.c
index 041c8045ec37d08dc7d2bf9d89a63bbe0b3a1d02..b9561a97cc4d6a68040a33d2ceadb0f61125f1a7 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                               funcdesc.c                                 */
+/*                                funcdesc.c                                 */
 /*                                                                           */
-/*          Function descriptor structure for the cc65 C compiler           */
+/*           Function descriptor structure for the cc65 C compiler           */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
 
 
 
-#include "mem.h"
+/* common */
+#include "xmalloc.h"
+
+/* cc65 */
 #include "funcdesc.h"
 
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -48,14 +51,15 @@ FuncDesc* NewFuncDesc (void)
 /* Create a new symbol table with the given name */
 {
     /* Create a new function descriptor */
-    FuncDesc* F = xmalloc (sizeof (FuncDesc));
+    FuncDesc* F = (FuncDesc*) xmalloc (sizeof (FuncDesc));
 
     /* Nullify the fields */
-    F->Flags     = 0;
-    F->SymTab    = 0;
-    F->TagTab    = 0;
+    F->Flags      = 0;
+    F->SymTab     = 0;
+    F->TagTab     = 0;
     F->ParamCount = 0;
     F->ParamSize  = 0;
+    F->LastParam  = 0;
 
     /* Return the new struct */
     return F;
@@ -69,6 +73,3 @@ void FreeFuncDesc (FuncDesc* F)
     /* Free the structure */
     xfree (F);
 }
-
-
-