mirror of
https://github.com/cc65/cc65.git
synced 2025-02-20 14:29:03 +00:00
Removed underlines from struct names
git-svn-id: svn://svn.cc65.org/cc65/trunk@431 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
18840117ec
commit
0dce6a79b6
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Forward declaration for struct SymEntry */
|
/* Forward declaration for struct SymEntry */
|
||||||
typedef struct SymEntry_ SymEntry;
|
typedef struct SymEntry SymEntry;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,21 +83,21 @@
|
|||||||
#define SF_DBGINFOVAL (SF_DEFINED)
|
#define SF_DBGINFOVAL (SF_DEFINED)
|
||||||
|
|
||||||
/* Structure of a symbol table entry */
|
/* Structure of a symbol table entry */
|
||||||
struct SymEntry_ {
|
struct SymEntry {
|
||||||
SymEntry* Left; /* Lexically smaller entry */
|
SymEntry* Left; /* Lexically smaller entry */
|
||||||
SymEntry* Right; /* Lexically larger entry */
|
SymEntry* Right; /* Lexically larger entry */
|
||||||
SymEntry* List; /* List of all entries */
|
SymEntry* List; /* List of all entries */
|
||||||
SymEntry* Locals; /* Root of subtree for local symbols */
|
SymEntry* Locals; /* Root of subtree for local symbols */
|
||||||
struct SymTable_* SymTab; /* Table this symbol is in, 0 for locals */
|
struct SymTable* SymTab; /* Table this symbol is in, 0 for locals */
|
||||||
FilePos Pos; /* File position for this symbol */
|
FilePos Pos; /* File position for this symbol */
|
||||||
unsigned Flags; /* Symbol flags */
|
unsigned Flags; /* Symbol flags */
|
||||||
unsigned Index; /* Index of import/export entries */
|
unsigned Index; /* Index of import/export entries */
|
||||||
union {
|
union {
|
||||||
struct ExprNode_* Expr; /* Expression if CONST not set */
|
struct ExprNode* Expr; /* Expression if CONST not set */
|
||||||
long Val; /* Value (if CONST set) */
|
long Val; /* Value (if CONST set) */
|
||||||
SymEntry* Sym; /* Symbol (if trampoline entry) */
|
SymEntry* Sym; /* Symbol (if trampoline entry) */
|
||||||
} V;
|
} V;
|
||||||
unsigned char InitVal; /* Initializer value */
|
unsigned char InitVal; /* Initializer value */
|
||||||
char Name [1]; /* Dynamic allocation */
|
char Name [1]; /* Dynamic allocation */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -106,12 +106,12 @@ struct SymEntry_ {
|
|||||||
/* Definitions for the hash table */
|
/* Definitions for the hash table */
|
||||||
#define MAIN_HASHTAB_SIZE 213
|
#define MAIN_HASHTAB_SIZE 213
|
||||||
#define SUB_HASHTAB_SIZE 53
|
#define SUB_HASHTAB_SIZE 53
|
||||||
typedef struct SymTable_ SymTable;
|
typedef struct SymTable SymTable;
|
||||||
struct SymTable_ {
|
struct SymTable {
|
||||||
unsigned TableSlots; /* Number of hash table slots */
|
unsigned TableSlots; /* Number of hash table slots */
|
||||||
unsigned TableEntries; /* Number of entries in the table */
|
unsigned TableEntries; /* Number of entries in the table */
|
||||||
SymTable* BackLink; /* Link to enclosing scope if any */
|
SymTable* BackLink; /* Link to enclosing scope if any */
|
||||||
SymEntry* Table [1]; /* Dynamic allocation */
|
SymEntry* Table [1]; /* Dynamic allocation */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ static unsigned ExportCount = 0;/* Counter for export symbols */
|
|||||||
|
|
||||||
static int IsLocal (const char* Name)
|
static int IsLocal (const char* Name)
|
||||||
/* Return true if Name is the name of a local symbol */
|
/* Return true if Name is the name of a local symbol */
|
||||||
{
|
{
|
||||||
return (*Name == LocalStart);
|
return (*Name == LocalStart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@
|
|||||||
#define EXPR_FORCEWORD (EXPR_UNARYNODE | 0x05)
|
#define EXPR_FORCEWORD (EXPR_UNARYNODE | 0x05)
|
||||||
#define EXPR_FORCEFAR (EXPR_UNARYNODE | 0x06)
|
#define EXPR_FORCEFAR (EXPR_UNARYNODE | 0x06)
|
||||||
|
|
||||||
#define EXPR_BYTE0 (EXPR_UNARYNODE | 0x08)
|
#define EXPR_BYTE0 (EXPR_UNARYNODE | 0x08)
|
||||||
#define EXPR_BYTE1 (EXPR_UNARYNODE | 0x09)
|
#define EXPR_BYTE1 (EXPR_UNARYNODE | 0x09)
|
||||||
#define EXPR_BYTE2 (EXPR_UNARYNODE | 0x0A)
|
#define EXPR_BYTE2 (EXPR_UNARYNODE | 0x0A)
|
||||||
#define EXPR_BYTE3 (EXPR_UNARYNODE | 0x0B)
|
#define EXPR_BYTE3 (EXPR_UNARYNODE | 0x0B)
|
||||||
@ -99,18 +99,18 @@
|
|||||||
|
|
||||||
|
|
||||||
/* The expression node itself */
|
/* The expression node itself */
|
||||||
typedef struct ExprNode_ ExprNode;
|
typedef struct ExprNode ExprNode;
|
||||||
struct ExprNode_ {
|
struct ExprNode {
|
||||||
unsigned char Op; /* Operand/Type */
|
unsigned char Op; /* Operand/Type */
|
||||||
ExprNode* Left; /* Left leaf */
|
ExprNode* Left; /* Left leaf */
|
||||||
ExprNode* Right; /* Right leaf */
|
ExprNode* Right; /* Right leaf */
|
||||||
struct ObjData_* Obj; /* Object file reference (linker) */
|
struct ObjData* Obj; /* Object file reference (linker) */
|
||||||
union {
|
union {
|
||||||
long Val; /* If this is a value */
|
long Val; /* If this is a value */
|
||||||
struct SymEntry_* Sym; /* If this is a symbol */
|
struct SymEntry* Sym; /* If this is a symbol */
|
||||||
unsigned SegNum; /* If this is a segment */
|
unsigned SegNum; /* If this is a segment */
|
||||||
unsigned ImpNum; /* If this is an import */
|
unsigned ImpNum; /* If this is an import */
|
||||||
struct Memory_* MemArea; /* If this is a memory area */
|
struct Memory* MemArea; /* If this is a memory area */
|
||||||
} V;
|
} V;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user