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;
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 */
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);
switch (IdType) {
case CSymbolId:
S = cc65_csym_byid (Info, Id);
- break;
+ break;
case ScopeId:
S = cc65_csym_byscope (Info, Id);
break;