Add flags to parse_and_eval

This adds a flags parameter to parse_and_eval.
This commit is contained in:
Tom Tromey
2023-04-28 08:45:48 -06:00
parent 87b647cfb1
commit 2c64cbb737
2 changed files with 3 additions and 3 deletions

View File

@@ -67,9 +67,9 @@ parse_and_eval_long (const char *exp)
}
struct value *
parse_and_eval (const char *exp)
parse_and_eval (const char *exp, parser_flags flags)
{
expression_up expr = parse_expression (exp);
expression_up expr = parse_expression (exp, nullptr, flags);
return expr->evaluate ();
}