mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-30 06:47:48 +00:00
Fix a few code style errors
This commit is contained in:
@@ -52,7 +52,7 @@ static char SavedSECOND[3];
|
||||
static bool exportall;
|
||||
|
||||
struct ForEachArgs {
|
||||
void (*func)(struct sSymbol *, void *);
|
||||
void (*func)(struct sSymbol *symbol, void *arg);
|
||||
void *arg;
|
||||
};
|
||||
|
||||
@@ -398,10 +398,10 @@ struct sSymbol *sym_AddLocalReloc(char const *tzSym)
|
||||
|
||||
fullSymbolName(fullname, sizeof(fullname), tzSym, pScope);
|
||||
return sym_AddReloc(fullname);
|
||||
} else {
|
||||
yyerror("Local label '%s' in main scope", tzSym);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
yyerror("Local label '%s' in main scope", tzSym);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -366,7 +366,7 @@ void patch_CheckAssertions(struct Assertion *assert)
|
||||
while (assert) {
|
||||
if (!computeRPNExpr(&assert->patch,
|
||||
(struct Symbol const * const *)
|
||||
assert->fileSymbols)) {
|
||||
assert->fileSymbols)) {
|
||||
switch ((enum AssertionType)assert->patch.type) {
|
||||
case ASSERT_FATAL:
|
||||
fatal("%s: %s", assert->patch.fileName,
|
||||
|
||||
@@ -64,10 +64,10 @@ static void mergeSections(struct Section *target, struct Section *other)
|
||||
} else if (target->isAlignFixed
|
||||
&& (other->alignMask & target->alignOfs)
|
||||
!= (target->alignMask & other->alignOfs)) {
|
||||
errx(1, "Section \"%s\" is defined with conflicting %u-byte alignment (offset %u) and %u-byte alignment (offset %u)",
|
||||
other->name, target->alignMask + 1,
|
||||
target->alignOfs, other->alignMask + 1,
|
||||
other->alignOfs);
|
||||
errx(1, "Section \"%s\" is defined with conflicting %u-byte alignment (offset %u) and %u-byte alignment (offset %u)",
|
||||
other->name, target->alignMask + 1,
|
||||
target->alignOfs, other->alignMask + 1,
|
||||
other->alignOfs);
|
||||
} else if (!target->isAlignFixed
|
||||
|| (other->alignMask > target->alignMask)) {
|
||||
target->isAlignFixed = true;
|
||||
|
||||
Reference in New Issue
Block a user