Reformat some deeply-indented lines

This commit is contained in:
Rangi42
2024-02-18 18:14:13 -05:00
parent 1b08a12b26
commit 3860ab11c7
2 changed files with 4 additions and 5 deletions

View File

@@ -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");

View File

@@ -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?