mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-21 10:27:48 +02: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;
|
return STAT_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void newlines(void)
|
||||||
|
{
|
||||||
|
while (1) {
|
||||||
|
if (accept(TOK_NEW_LN) != STAT_OK)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int end(void)
|
static int end(void)
|
||||||
{
|
{
|
||||||
NOT_ACCEPT(TOK_EOF);
|
NOT_ACCEPT(TOK_EOF);
|
||||||
EXPECT(TOK_NEW_LN);
|
EXPECT(TOK_NEW_LN);
|
||||||
|
|
||||||
while (1) {
|
newlines();
|
||||||
if (accept(TOK_NEW_LN) != STAT_OK)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return STAT_OK;
|
return STAT_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int commands(void)
|
static int commands(void)
|
||||||
{
|
{
|
||||||
end();
|
newlines();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
NOT_ACCEPT(TOK_EOF);
|
NOT_ACCEPT(TOK_EOF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user