mirror of
https://github.com/gbdev/rgbds.git
synced 2026-01-08 09:31:50 +00:00
Fix some make checkcodebase errors
- Reorder checkpatch ignore flags alphabetically - Fix checkpatch WARNINGs and CHECKs when they make sense - Add more checkpatch ignores
This commit is contained in:
@@ -20,15 +20,19 @@
|
||||
*/
|
||||
struct Charnode {
|
||||
uint8_t code; /* the value in a key-value pair. */
|
||||
uint8_t isCode; /* has one if it's a code node, not just a bridge node. */
|
||||
struct Charnode *next[256]; /* each index representing the next possible character from its current state. */
|
||||
uint8_t isCode; /* has 1 if it's a code node, not just a bridge node. */
|
||||
struct Charnode *next[256]; /* each index representing the next possible
|
||||
* character from its current state.
|
||||
*/
|
||||
};
|
||||
|
||||
struct Charmap {
|
||||
char name[MAXSYMLEN + 1];
|
||||
int32_t charCount; /* user-side count. */
|
||||
int32_t nodeCount; /* node-side count. */
|
||||
struct Charnode nodes[MAXCHARNODES]; /* first node is reserved for the root node in charmap. */
|
||||
struct Charnode nodes[MAXCHARNODES]; /* first node is reserved for the
|
||||
* root node in charmap.
|
||||
*/
|
||||
struct Charmap *next; /* next charmap in hash table bucket */
|
||||
};
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ struct sSymbol {
|
||||
struct Section *pSection;
|
||||
uint32_t ulMacroSize;
|
||||
char *pMacro;
|
||||
int32_t (*Callback)(struct sSymbol *);
|
||||
int32_t (*Callback)(struct sSymbol *self);
|
||||
char tzFileName[_MAX_PATH + 1]; /* File where the symbol was defined. */
|
||||
uint32_t nFileLine; /* Line where the symbol was defined. */
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ extern bool isWRA0Mode;
|
||||
* @param mode The mode to open the file with
|
||||
* @return A pointer to a valid FILE structure, or NULL if fileName was NULL
|
||||
*/
|
||||
FILE *openFile(char const *fileName, char const *mode);
|
||||
FILE * openFile(char const *fileName, char const *mode);
|
||||
|
||||
#define closeFile(file) do { \
|
||||
FILE *tmp = file; \
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern FILE *linkerScript;
|
||||
extern FILE * linkerScript;
|
||||
|
||||
struct SectionPlacement {
|
||||
struct Section *section;
|
||||
|
||||
Reference in New Issue
Block a user