mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Make parse_expr_token much any following whitespace to replicate prior behavior.
There may be other parts of the code that rely on this.
This commit is contained in:
18
src/expr.c
18
src/expr.c
@@ -1151,11 +1151,10 @@ static int parse_expr_token_aux(DynamicBuffer *buf, char const **in);
|
||||
static int parse_expr_token(DynamicBuffer *buf, char const **in)
|
||||
{
|
||||
int r = parse_expr_token_aux(buf, in);
|
||||
/* if (r == OK) {
|
||||
fprintf(stderr, "tok: %s\n", DBufValue(buf));
|
||||
} else {
|
||||
fprintf(stderr, "err: %s\n", ErrMsg[r]);
|
||||
}*/
|
||||
|
||||
/* Munch any following whitespace */
|
||||
while (**in && isempty(**in)) (*in)++;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -1336,14 +1335,7 @@ static int parse_expr_token_aux(DynamicBuffer *buf, char const **in)
|
||||
/***************************************************************/
|
||||
static int peek_expr_token(DynamicBuffer *buf, char const *in)
|
||||
{
|
||||
int r = parse_expr_token_aux(buf, &in);
|
||||
|
||||
/* if (r == OK) {
|
||||
fprintf(stderr, "peek-tok: %s\n", DBufValue(buf));
|
||||
} else {
|
||||
fprintf(stderr, "peek-err: %s\n", ErrMsg[r]);
|
||||
} */
|
||||
return r;
|
||||
return parse_expr_token_aux(buf, &in);
|
||||
}
|
||||
|
||||
/* Recursively free an expression tree */
|
||||
|
||||
Reference in New Issue
Block a user