/*****************************************************************************/
/* */
-/* 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 */
/*****************************************************************************/
/* 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;
/* Free the structure */
xfree (F);
}
-
-
-