Remove most Hungarian notation in section module

Seriously, it sucks.
This commit is contained in:
ISSOtm
2020-09-06 20:43:13 +02:00
parent 14be01880d
commit 304bb9f902
10 changed files with 204 additions and 204 deletions

View File

@@ -89,7 +89,7 @@ static int32_t CallbackPC(void)
{
struct Section const *section = sect_GetSymbolSection();
return section ? section->nOrg + sect_GetSymbolOffset() : 0;
return section ? section->org + sect_GetSymbolOffset() : 0;
}
/*
@@ -102,7 +102,7 @@ int32_t sym_GetValue(struct Symbol const *sym)
if (sym->type == SYM_LABEL)
/* TODO: do not use section's org directly */
return sym->value + sym_GetSection(sym)->nOrg;
return sym->value + sym_GetSection(sym)->org;
return sym->value;
}
@@ -222,7 +222,7 @@ uint32_t sym_GetPCValue(void)
if (!sect)
yyerror("PC has no value outside a section");
else if (sect->nOrg == -1)
else if (sect->org == -1)
yyerror("Expected constant PC but section is not fixed");
else
return CallbackPC();