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

@@ -26,7 +26,7 @@ struct MacroArgs;
struct sContext {
YY_BUFFER_STATE FlexHandle;
struct Symbol const *pMacro;
struct sContext *pNext;
struct sContext *next;
char tzFileName[_MAX_PATH + 1];
struct MacroArgs *macroArgs;
uint32_t uniqueID;

View File

@@ -17,17 +17,17 @@
struct Expression;
struct Section {
char *pzName;
enum SectionType nType;
char *name;
enum SectionType type;
enum SectionModifier modifier;
uint32_t size;
uint32_t nOrg;
uint32_t nBank;
uint8_t nAlign;
uint32_t org;
uint32_t bank;
uint8_t align;
uint16_t alignOfs;
struct Section *pNext;
struct Patch *pPatches;
uint8_t *tData;
struct Section *next;
struct Patch *patches;
uint8_t *data;
};
struct SectionSpec {
@@ -36,8 +36,8 @@ struct SectionSpec {
uint16_t alignOfs;
};
struct Section *out_FindSectionByName(const char *pzName);
void out_NewSection(char const *pzName, uint32_t secttype, uint32_t org,
struct Section *out_FindSectionByName(const char *name);
void out_NewSection(char const *name, uint32_t secttype, uint32_t org,
struct SectionSpec const *attributes,
enum SectionModifier mod);
void out_SetLoadSection(char const *name, uint32_t secttype, uint32_t org,

View File

@@ -71,7 +71,7 @@ static inline bool sym_IsConstant(struct Symbol const *sym)
if (sym->type == SYM_LABEL) {
struct Section const *sect = sym_GetSection(sym);
return sect && sect->nOrg != -1;
return sect && sect->org != -1;
}
return sym->type == SYM_EQU || sym->type == SYM_SET;
}