mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
Make the type of a C symbol available.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5295 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3ec4b296ba
commit
5050157eda
@ -1233,6 +1233,7 @@ static void CopyCSymInfo (cc65_csymdata* D, const CSymInfo* S)
|
||||
D->csym_kind = S->Kind;
|
||||
D->csym_sc = S->SC;
|
||||
D->csym_offs = S->Offs;
|
||||
D->type_id = GetId (S->Type.Info);
|
||||
D->symbol_id = GetId (S->Sym.Info);
|
||||
D->scope_id = GetId (S->Scope.Info);
|
||||
D->csym_name = S->Name;
|
||||
|
@ -135,6 +135,7 @@ struct cc65_csymdata {
|
||||
unsigned char csym_kind; /* Kind of c symbol */
|
||||
unsigned char csym_sc; /* Storage class of c symbol */
|
||||
int csym_offs; /* Offset for auto and register */
|
||||
unsigned type_id; /* Id of the data type */
|
||||
unsigned symbol_id; /* Attached asm symbol if any */
|
||||
unsigned scope_id; /* Scope of c symbol */
|
||||
const char* csym_name; /* Name of the symbol */
|
||||
|
@ -591,7 +591,7 @@ static void PrintCSymbols (const cc65_csyminfo* S)
|
||||
for (I = 0, D = S->data; I < S->count; ++I, ++D) {
|
||||
PrintId (D->csym_id, 6);
|
||||
Print ("%-28s", D->csym_name);
|
||||
PrintId (0, 6);
|
||||
PrintId (D->type_id, 6);
|
||||
PrintNumber (D->csym_kind, 4, 6);
|
||||
PrintNumber (D->csym_sc, 4, 6);
|
||||
PrintNumber (D->csym_offs, 4, 8);
|
||||
@ -1100,7 +1100,7 @@ static void CmdShowCSymbol (Collection* Args)
|
||||
switch (IdType) {
|
||||
case CSymbolId:
|
||||
S = cc65_csym_byid (Info, Id);
|
||||
break;
|
||||
break;
|
||||
case ScopeId:
|
||||
S = cc65_csym_byscope (Info, Id);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user