shithub: rgbds

Download patch

ref: cc458a96937cc35abacb7c1b22654e194ac76b02
parent: d2bd9a23684507dbb413028770c9121e01500bb0
author: Antonio Niño Díaz <antonio_nd@outlook.com>
date: Fri May 31 08:34:14 EDT 2019

Fix a few checkpatch issues

--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -497,7 +497,6 @@
 		nsym->pScope = NULL;
 		updateSymbolFilename(nsym);
 	}
-
 }
 
 /*
--- a/src/gfx/makepng.c
+++ b/src/gfx/makepng.c
@@ -199,8 +199,8 @@
 	raw_image = create_raw_image(img->width, img->height, colors);
 
 	/*
-	 * Transparent palette entries are removed, and the palette is collapsed.
-	 * Transparent pixels are then replaced with palette index 0.
+	 * Transparent palette entries are removed, and the palette is
+	 * collapsed. Transparent pixels are then replaced with palette index 0.
 	 * This way, an indexed PNG can contain transparent pixels in *addition*
 	 * to 4 normal colors.
 	 */
--- a/src/link/assign.c
+++ b/src/link/assign.c
@@ -695,22 +695,22 @@
 			if ((tSymbol->Type == SYM_EXPORT) &&
 			    ((tSymbol->pSection == pSect) ||
 				(tSymbol->pSection == NULL))) {
-				if (tSymbol->pSection == NULL)
-					sym_CreateSymbol(
-						tSymbol->pzName,
-						tSymbol->nOffset,
-						-1,
-						tSymbol->pzObjFileName,
-						tSymbol->pzFileName,
-						tSymbol->nFileLine);
-				else
-					sym_CreateSymbol(
-						tSymbol->pzName,
-						pSect->nOrg + tSymbol->nOffset,
-						pSect->nBank,
-						tSymbol->pzObjFileName,
-						tSymbol->pzFileName,
-						tSymbol->nFileLine);
+				if (tSymbol->pSection == NULL) {
+					sym_CreateSymbol(tSymbol->pzName,
+							 tSymbol->nOffset,
+							 -1,
+							 tSymbol->pzObjFileName,
+							 tSymbol->pzFileName,
+							 tSymbol->nFileLine);
+				} else {
+					sym_CreateSymbol(tSymbol->pzName,
+							 pSect->nOrg +
+							   tSymbol->nOffset,
+							 pSect->nBank,
+							 tSymbol->pzObjFileName,
+							 tSymbol->pzFileName,
+							 tSymbol->nFileLine);
+				}
 			}
 		}
 		pSect = pSect->pNext;