1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-02-01 15:02:53 +08:00

Shrink variable name

This commit is contained in:
Ben Hoyt 2016-01-02 11:50:24 -05:00
parent e6735fff64
commit 959ca9d10a

6
ini.c
View File

@ -46,9 +46,9 @@ static char* lskip(const char* s)
a whitespace character to register as a comment. */ a whitespace character to register as a comment. */
static char* find_chars_or_comment(const char* s, const char* chars) static char* find_chars_or_comment(const char* s, const char* chars)
{ {
int was_whitespace = 0; int was_space = 0;
while (*s && (!chars || !strchr(chars, *s)) && !(was_whitespace && *s == ';')) { while (*s && (!chars || !strchr(chars, *s)) && !(was_space && *s == ';')) {
was_whitespace = isspace((unsigned char)(*s)); was_space = isspace((unsigned char)(*s));
s++; s++;
} }
return (char*)s; return (char*)s;