X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Ffuncdesc.h;h=b79c6a055ceb0384c71258c67d1658bc8e667800;hb=f266612697b213f2f74027eb5b2605b19a97d6d7;hp=9cb4500463c3d84a8c2b67769e1cb63df1a08b80;hpb=8f9a21ae3fdc66d0bebadb029bba0dc37aa68023;p=cc65 diff --git a/src/cc65/funcdesc.h b/src/cc65/funcdesc.h index 9cb450046..b79c6a055 100644 --- a/src/cc65/funcdesc.h +++ b/src/cc65/funcdesc.h @@ -1,13 +1,13 @@ /*****************************************************************************/ /* */ -/* funcdesc.h */ +/* funcdesc.h */ /* */ -/* Function descriptor structure for the cc65 C compiler */ +/* Function descriptor structure for the cc65 C compiler */ /* */ /* */ /* */ -/* (C) 2000-2003 Ullrich von Bassewitz */ -/* Römerstraße 52 */ +/* (C) 2000-2008 Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ /* */ @@ -39,44 +39,40 @@ /*****************************************************************************/ -/* struct FuncDesc */ +/* struct FuncDesc */ /*****************************************************************************/ -/* Masks for the Flags field in FuncDesc */ -#define FD_NONE 0x0000U /* No flags */ -#define FD_IMPLICIT 0x0001U /* Implicitly declared function */ -#define FD_EMPTY 0x0002U /* Function with empty param list */ -#define FD_VOID_PARAM 0x0004U /* Function with a void param list */ -#define FD_VARIADIC 0x0008U /* Function with variable param list */ -#define FD_FASTCALL 0x0010U /* __fastcall__ function */ -#define FD_FAR 0x0020U /* __far__ function */ -#define FD_NEAR 0x0040U /* __near__ function */ -#define FD_OLDSTYLE 0x0100U /* Old style (K&R) function */ -#define FD_OLDSTYLE_INTRET 0x0200U /* K&R func has implicit int return */ -#define FD_UNNAMED_PARAMS 0x0400U /* Function has unnamed params */ +/* 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_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 */ /* Bits that must be ignored when comparing funcs */ -#define FD_IGNORE (FD_IMPLICIT | FD_UNNAMED_PARAMS) +#define FD_IGNORE (FD_OLDSTYLE | FD_OLDSTYLE_INTRET | FD_UNNAMED_PARAMS) /* 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 */ + 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 */ }; /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ @@ -90,7 +86,5 @@ void FreeFuncDesc (FuncDesc* D); /* End of funcdesc.h */ -#endif - - +#endif