mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Reformat some deeply-indented lines
This commit is contained in:
@@ -241,8 +241,7 @@ size_t charmap_ConvertNext(char const **input, uint8_t **output)
|
|||||||
} else if (**input) { // No match found, but there is some input left
|
} else if (**input) { // No match found, but there is some input left
|
||||||
int firstChar = **input;
|
int firstChar = **input;
|
||||||
// This will write the codepoint's value to `output`, little-endian
|
// This will write the codepoint's value to `output`, little-endian
|
||||||
size_t codepointLen = readUTF8Char(output ? *output : NULL,
|
size_t codepointLen = readUTF8Char(output ? *output : NULL, *input);
|
||||||
*input);
|
|
||||||
|
|
||||||
if (codepointLen == 0)
|
if (codepointLen == 0)
|
||||||
error("Input string is not valid UTF-8\n");
|
error("Input string is not valid UTF-8\n");
|
||||||
|
|||||||
@@ -258,10 +258,10 @@ void processWarningFlag(char *flag)
|
|||||||
|
|
||||||
// Well, it's either a normal warning or a mistake
|
// Well, it's either a normal warning or a mistake
|
||||||
|
|
||||||
enum WarningState state = setError ? WARNING_ERROR :
|
enum WarningState state = setError ? WARNING_ERROR
|
||||||
// Not an error, then check if this is a negation
|
// Not an error, then check if this is a negation
|
||||||
strncmp(flag, "no-", strlen("no-")) ? WARNING_ENABLED
|
: strncmp(flag, "no-", strlen("no-")) ? WARNING_ENABLED
|
||||||
: WARNING_DISABLED;
|
: WARNING_DISABLED;
|
||||||
char *rootFlag = state == WARNING_DISABLED ? flag + strlen("no-") : flag;
|
char *rootFlag = state == WARNING_DISABLED ? flag + strlen("no-") : flag;
|
||||||
|
|
||||||
// Is this a "parametric" warning?
|
// Is this a "parametric" warning?
|
||||||
|
|||||||
Reference in New Issue
Block a user