mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 13:23:00 +08:00
Purge (almost) make_cleanup_func.
This commit is contained in:
@ -77,8 +77,7 @@ static int expressiondebug = 0;
|
||||
|
||||
extern int hp_som_som_object_present;
|
||||
|
||||
static void
|
||||
free_funcalls PARAMS ((void));
|
||||
static void free_funcalls (void *ignore);
|
||||
|
||||
static void
|
||||
prefixify_expression PARAMS ((struct expression *));
|
||||
@ -177,7 +176,7 @@ end_arglist ()
|
||||
Used when there is an error inside parsing. */
|
||||
|
||||
static void
|
||||
free_funcalls ()
|
||||
free_funcalls (void *ignore)
|
||||
{
|
||||
register struct funcall *call, *next;
|
||||
|
||||
@ -1165,7 +1164,7 @@ parse_exp_1 (stringptr, block, comma)
|
||||
if (lexptr == 0 || *lexptr == 0)
|
||||
error_no_arg ("expression to compute");
|
||||
|
||||
old_chain = make_cleanup ((make_cleanup_func) free_funcalls, 0);
|
||||
old_chain = make_cleanup (free_funcalls, 0 /*ignore*/);
|
||||
funcall_chain = 0;
|
||||
|
||||
expression_context_block = block ? block : get_selected_block ();
|
||||
|
Reference in New Issue
Block a user