mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-08-18 10:39:53 +02:00
Fix
This commit is contained in:
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);
|
||||||
|
Reference in New Issue
Block a user