]> git.sur5r.net Git - cc65/blobdiff - src/cc65/funcdesc.c
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / src / cc65 / funcdesc.c
index f38d1eda48dfb7e135d73cdb76ca0071130f842c..874dfb101dc424e8cf2cf3e657acb7b53c49335e 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 "../common/xmalloc.h"
+/* common */
+#include "xmalloc.h"
 
+/* cc65 */
 #include "funcdesc.h"
 
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -49,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;