mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Correct four code style issues
This commit is contained in:
@@ -55,6 +55,7 @@ struct ImageOptions {
|
|||||||
struct PNGImage {
|
struct PNGImage {
|
||||||
png_struct *png;
|
png_struct *png;
|
||||||
png_info *info;
|
png_info *info;
|
||||||
|
|
||||||
png_byte **data;
|
png_byte **data;
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ uint32_t unionStart[128], unionSize[128];
|
|||||||
extern int yydebug;
|
extern int yydebug;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FILE *dependfile;
|
FILE * dependfile;
|
||||||
bool oGeneratedMissingIncludes;
|
bool oGeneratedMissingIncludes;
|
||||||
bool oFailedOnMissingInclude;
|
bool oFailedOnMissingInclude;
|
||||||
bool oGeneratePhonyDeps;
|
bool oGeneratePhonyDeps;
|
||||||
|
|||||||
@@ -407,7 +407,8 @@ void out_PCRelByte(struct Expression *expr)
|
|||||||
int16_t offset = expr->nVal - address;
|
int16_t offset = expr->nVal - address;
|
||||||
|
|
||||||
if (offset < -128 || offset > 127) {
|
if (offset < -128 || offset > 127) {
|
||||||
yyerror("jr target out of reach (expected -129 < %d < 128)", offset);
|
yyerror("jr target out of reach (expected -129 < %d < 128)",
|
||||||
|
offset);
|
||||||
out_AbsByte(0);
|
out_AbsByte(0);
|
||||||
} else {
|
} else {
|
||||||
out_AbsByte(offset);
|
out_AbsByte(offset);
|
||||||
|
|||||||
@@ -430,7 +430,8 @@ void obj_ReadFile(char const *fileName)
|
|||||||
section->symbols = malloc(sizeof(*section->symbols)
|
section->symbols = malloc(sizeof(*section->symbols)
|
||||||
* nbSymPerSect[i]);
|
* nbSymPerSect[i]);
|
||||||
if (!section->symbols)
|
if (!section->symbols)
|
||||||
err(1, "%s: Couldn't link to symbols", fileName);
|
err(1, "%s: Couldn't link to symbols",
|
||||||
|
fileName);
|
||||||
} else {
|
} else {
|
||||||
section->symbols = NULL;
|
section->symbols = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user