mirror of
https://github.com/cc65/cc65.git
synced 2024-06-07 07:29:33 +00:00
Removed two duplicate TYPEDEFs from a header.
The first one is replaced by an #include of the header that has its original TYPEDEF. The second one is replaced by its base type. That change allows pedantic C90-compliant compilers to accept the header.
This commit is contained in:
parent
af4c4f6aaf
commit
e5813cfb1a
|
@ -1447,7 +1447,7 @@ void AdjustEntryIndices (Collection* Indices, int Index, int Change)
|
|||
} else if (Index <= *IndexPtr) {
|
||||
/* Has been removed */
|
||||
*IndexPtr = -1;
|
||||
//CollDelete (Indices, I);
|
||||
/*CollDelete (Indices, I);*/
|
||||
--I;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1242,7 +1242,7 @@ const Type* GetBaseElementType (const Type* T)
|
|||
|
||||
|
||||
|
||||
SymEntry* GetESUSymEntry (const Type* T)
|
||||
struct SymEntry* GetESUSymEntry (const Type* T)
|
||||
/* Return a SymEntry pointer from an enum/struct/union type */
|
||||
{
|
||||
/* Only enums, structs or unions have a SymEntry attribute */
|
||||
|
@ -1254,7 +1254,7 @@ SymEntry* GetESUSymEntry (const Type* T)
|
|||
|
||||
|
||||
|
||||
void SetESUSymEntry (Type* T, SymEntry* S)
|
||||
void SetESUSymEntry (Type* T, struct SymEntry* S)
|
||||
/* Set the SymEntry pointer for an enum/struct/union type */
|
||||
{
|
||||
/* Only enums, structs or unions have a SymEntry attribute */
|
||||
|
|
|
@ -45,6 +45,9 @@
|
|||
#include "inline.h"
|
||||
#include "mmodel.h"
|
||||
|
||||
/* cc65 */
|
||||
#include "funcdesc.h"
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -53,8 +56,8 @@
|
|||
|
||||
|
||||
|
||||
typedef struct FuncDesc FuncDesc;
|
||||
typedef struct SymEntry SymEntry;
|
||||
struct StrBuf;
|
||||
struct SymEntry;
|
||||
|
||||
|
||||
|
||||
|
@ -162,12 +165,12 @@ typedef unsigned long TypeCode;
|
|||
/* Type entry */
|
||||
typedef struct Type Type;
|
||||
struct Type {
|
||||
TypeCode C; /* Code for this entry */
|
||||
TypeCode C; /* Code for this entry */
|
||||
union {
|
||||
FuncDesc* F; /* Function description pointer */
|
||||
SymEntry* S; /* Enum/struct/union tag symbol entry pointer */
|
||||
long L; /* Numeric attribute value */
|
||||
unsigned long U; /* Dito, unsigned */
|
||||
struct FuncDesc* F; /* Function description pointer */
|
||||
struct SymEntry* S; /* Enum/struct/union tag symbol entry pointer */
|
||||
long L; /* Numeric attribute value */
|
||||
unsigned long U; /* Dito, unsigned */
|
||||
} A; /* Type attribute if necessary */
|
||||
};
|
||||
|
||||
|
@ -221,11 +224,6 @@ extern const Type type_c_char_p[];
|
|||
extern const Type type_void_p[];
|
||||
extern const Type type_c_void_p[];
|
||||
|
||||
/* Forward for the SymEntry struct */
|
||||
struct SymEntry;
|
||||
|
||||
/* Forward for the StrBuf struct */
|
||||
struct StrBuf;
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -849,7 +847,7 @@ int IsVariadicFunc (const Type* T) attribute ((const));
|
|||
*/
|
||||
|
||||
int IsFastcallFunc (const Type* T) attribute ((const));
|
||||
/* Return true if this is a function type or pointer to function type by
|
||||
/* Return true if this is a function type or pointer to function type with
|
||||
** __fastcall__ calling convention.
|
||||
** Check fails if the type is not a function or a pointer to function.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user