shithub: rgbds

Download patch

ref: 0d31afaff8ad57ebcf48af8c9a27999c6a69096c
parent: 48ad3973a96ab54df73a52207ec8d47e8bf5bd25
author: ISSOtm <[email protected]>
date: Sat Mar 7 13:08:17 EST 2020

Correct four code style issues

--- a/include/gfx/main.h
+++ b/include/gfx/main.h
@@ -55,6 +55,7 @@
 struct PNGImage {
 	png_struct *png;
 	png_info *info;
+
 	png_byte **data;
 	int width;
 	int height;
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -49,7 +49,7 @@
 extern int yydebug;
 #endif
 
-FILE *dependfile;
+FILE * dependfile;
 bool oGeneratedMissingIncludes;
 bool oFailedOnMissingInclude;
 bool oGeneratePhonyDeps;
--- a/src/asm/section.c
+++ b/src/asm/section.c
@@ -407,7 +407,8 @@
 		int16_t offset = expr->nVal - address;
 
 		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);
 		} else {
 			out_AbsByte(offset);
--- a/src/link/object.c
+++ b/src/link/object.c
@@ -430,7 +430,8 @@
 			section->symbols = malloc(sizeof(*section->symbols)
 							* nbSymPerSect[i]);
 			if (!section->symbols)
-				err(1, "%s: Couldn't link to symbols", fileName);
+				err(1, "%s: Couldn't link to symbols",
+				    fileName);
 		} else {
 			section->symbols = NULL;
 		}