fix formatting
This commit is contained in:
parent
18f94d1fe0
commit
07dd1e3849
2 changed files with 25 additions and 25 deletions
|
@ -54,14 +54,14 @@ FuncDesc* NewFuncDesc (void)
|
|||
FuncDesc* F = (FuncDesc*) xmalloc (sizeof (FuncDesc));
|
||||
|
||||
/* Nullify the fields */
|
||||
F->Flags = 0;
|
||||
F->SymTab = 0;
|
||||
F->TagTab = 0;
|
||||
F->ParamCount = 0;
|
||||
F->ParamSize = 0;
|
||||
F->LastParam = 0;
|
||||
F->FuncDef = 0;
|
||||
F->WrappedCall = 0;
|
||||
F->Flags = 0;
|
||||
F->SymTab = 0;
|
||||
F->TagTab = 0;
|
||||
F->ParamCount = 0;
|
||||
F->ParamSize = 0;
|
||||
F->LastParam = 0;
|
||||
F->FuncDef = 0;
|
||||
F->WrappedCall = 0;
|
||||
F->WrappedCallData = 0;
|
||||
|
||||
/* Return the new struct */
|
||||
|
|
|
@ -45,15 +45,15 @@
|
|||
|
||||
|
||||
/* Masks for the Flags field in FuncDesc */
|
||||
#define FD_NONE 0x0000U /* No flags */
|
||||
#define FD_EMPTY 0x0001U /* Function with empty param list */
|
||||
#define FD_VOID_PARAM 0x0002U /* Function with a void param list */
|
||||
#define FD_VARIADIC 0x0004U /* Function with variable param list */
|
||||
#define FD_NONE 0x0000U /* No flags */
|
||||
#define FD_EMPTY 0x0001U /* Function with empty param list */
|
||||
#define FD_VOID_PARAM 0x0002U /* Function with a void param list */
|
||||
#define FD_VARIADIC 0x0004U /* Function with variable param list */
|
||||
#define FD_INCOMPLETE_PARAM 0x0008U /* Function with param of unknown size */
|
||||
#define FD_OLDSTYLE 0x0010U /* Old style (K&R) function */
|
||||
#define FD_OLDSTYLE_INTRET 0x0020U /* K&R func has implicit int return */
|
||||
#define FD_UNNAMED_PARAMS 0x0040U /* Function has unnamed params */
|
||||
#define FD_CALL_WRAPPER 0x0080U /* This function is used as a wrapper */
|
||||
#define FD_OLDSTYLE 0x0010U /* Old style (K&R) function */
|
||||
#define FD_OLDSTYLE_INTRET 0x0020U /* K&R func has implicit int return */
|
||||
#define FD_UNNAMED_PARAMS 0x0040U /* Function has unnamed params */
|
||||
#define FD_CALL_WRAPPER 0x0080U /* This function is used as a wrapper */
|
||||
|
||||
/* Bits that must be ignored when comparing funcs */
|
||||
#define FD_IGNORE (FD_INCOMPLETE_PARAM | FD_OLDSTYLE | FD_OLDSTYLE_INTRET | FD_UNNAMED_PARAMS | FD_CALL_WRAPPER)
|
||||
|
@ -63,15 +63,15 @@
|
|||
/* Function descriptor */
|
||||
typedef struct FuncDesc FuncDesc;
|
||||
struct FuncDesc {
|
||||
unsigned Flags; /* Bitmapped flags FD_... */
|
||||
struct SymTable* SymTab; /* Symbol table */
|
||||
struct SymTable* TagTab; /* Symbol table for structs/enums */
|
||||
unsigned ParamCount; /* Number of parameters */
|
||||
unsigned ParamSize; /* Size of the parameters */
|
||||
struct SymEntry* LastParam; /* Pointer to last parameter */
|
||||
struct FuncDesc* FuncDef; /* Descriptor used in definition */
|
||||
struct SymEntry* WrappedCall; /* Pointer to the WrappedCall */
|
||||
unsigned int WrappedCallData;/* The WrappedCall's user data */
|
||||
unsigned Flags; /* Bitmapped flags FD_... */
|
||||
struct SymTable* SymTab; /* Symbol table */
|
||||
struct SymTable* TagTab; /* Symbol table for structs/enums */
|
||||
unsigned ParamCount; /* Number of parameters */
|
||||
unsigned ParamSize; /* Size of the parameters */
|
||||
struct SymEntry* LastParam; /* Pointer to last parameter */
|
||||
struct FuncDesc* FuncDef; /* Descriptor used in definition */
|
||||
struct SymEntry* WrappedCall; /* Pointer to the WrappedCall */
|
||||
unsigned int WrappedCallData; /* The WrappedCall's user data */
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue