mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Fix
This commit is contained in:
parent
a6388d3950
commit
a44cc26cef
15
src/config.c
15
src/config.c
@ -196,22 +196,27 @@ static int command(void)
|
||||
return STAT_ERR;
|
||||
}
|
||||
|
||||
static void newlines(void)
|
||||
{
|
||||
while (1) {
|
||||
if (accept(TOK_NEW_LN) != STAT_OK)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static int end(void)
|
||||
{
|
||||
NOT_ACCEPT(TOK_EOF);
|
||||
EXPECT(TOK_NEW_LN);
|
||||
|
||||
while (1) {
|
||||
if (accept(TOK_NEW_LN) != STAT_OK)
|
||||
break;
|
||||
}
|
||||
newlines();
|
||||
|
||||
return STAT_OK;
|
||||
}
|
||||
|
||||
static int commands(void)
|
||||
{
|
||||
end();
|
||||
newlines();
|
||||
|
||||
while (1) {
|
||||
NOT_ACCEPT(TOK_EOF);
|
||||
|
Loading…
Reference in New Issue
Block a user