mirror of
https://github.com/benhoyt/inih.git
synced 2025-01-28 22:52:54 +08:00
Shrink variable name
This commit is contained in:
parent
e6735fff64
commit
959ca9d10a
6
ini.c
6
ini.c
@ -46,9 +46,9 @@ static char* lskip(const char* s)
|
||||
a whitespace character to register as a comment. */
|
||||
static char* find_chars_or_comment(const char* s, const char* chars)
|
||||
{
|
||||
int was_whitespace = 0;
|
||||
while (*s && (!chars || !strchr(chars, *s)) && !(was_whitespace && *s == ';')) {
|
||||
was_whitespace = isspace((unsigned char)(*s));
|
||||
int was_space = 0;
|
||||
while (*s && (!chars || !strchr(chars, *s)) && !(was_space && *s == ';')) {
|
||||
was_space = isspace((unsigned char)(*s));
|
||||
s++;
|
||||
}
|
||||
return (char*)s;
|
||||
|
Loading…
x
Reference in New Issue
Block a user