Compare commits

...

3 Commits

Author SHA1 Message Date
Dianne Skoll
4695efaabd Use DBG macro
Some checks failed
Remind unit tests / tests (push) Failing after 28s
2024-09-11 11:53:07 -04:00
Dianne Skoll
c433f42587 Get rid of useless function. 2024-09-11 11:49:04 -04:00
Dianne Skoll
4708e59a43 No need to munch following whitespace. 2024-09-11 11:46:40 -04:00

View File

@@ -685,16 +685,12 @@ eval_userfunc(expr_node *node, Value *locals, Value *ans, int *nonconst)
/* Add a call to the call stack for better error messages */
pushed = push_call(f->filename, f->name, f->lineno);
if (DebugFlag & DB_PRTEXPR) {
debug_enter_userfunc(node, new_locals, f->nargs);
}
DBG(debug_enter_userfunc(node, new_locals, f->nargs));
/* Evaluate the function's expr_node tree */
r = evaluate_expr_node(f->node, new_locals, ans, nonconst);
if (DebugFlag & DB_PRTEXPR) {
debug_exit_userfunc(node, ans, r, new_locals, f->nargs);
}
DBG(debug_exit_userfunc(node, ans, r, new_locals, f->nargs));
if (r != OK) {
/* We print the error here in order to get the call stack trace */
@@ -1506,18 +1502,7 @@ static int logical_and(expr_node *node, Value *locals, Value *ans, int *nonconst
/* Read a token. */
/* */
/***************************************************************/
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);
/* Munch any following whitespace */
while (**in && isempty(**in)) (*in)++;
return r;
}
static int parse_expr_token_aux(DynamicBuffer *buf, char const **in)
{
char c;
@@ -1700,7 +1685,7 @@ static int parse_expr_token_aux(DynamicBuffer *buf, char const **in)
/***************************************************************/
static int peek_expr_token(DynamicBuffer *buf, char const *in)
{
return parse_expr_token_aux(buf, &in);
return parse_expr_token(buf, &in);
}
/***************************************************************/