mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Introduce and use parser flags
This patch adds a new parser_flags type and changes the parser APIs to use it rather than a collection of 'int' and 'bool'. More flags will be added in subsquent patches.
This commit is contained in:
@@ -2519,7 +2519,8 @@ parse_cmd_to_aexpr (CORE_ADDR scope, char *cmd)
|
||||
const char *cmd1;
|
||||
|
||||
cmd1 = cmdrest;
|
||||
expression_up expr = parse_exp_1 (&cmd1, scope, block_for_pc (scope), 1);
|
||||
expression_up expr = parse_exp_1 (&cmd1, scope, block_for_pc (scope),
|
||||
PARSER_COMMA_TERMINATES);
|
||||
argvec.push_back (expr.release ());
|
||||
cmdrest = cmd1;
|
||||
if (*cmdrest == ',')
|
||||
|
||||
Reference in New Issue
Block a user