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