Turn value_computed_closure and value_computed_funcs functions into methods

This changes the value_computed_funcs and value_computed_closure
functions to be methods of value.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-01-31 12:12:39 -07:00
parent c8580184bb
commit b9f74d5432
6 changed files with 34 additions and 34 deletions

View File

@@ -1279,7 +1279,7 @@ entry_data_value_coerce_ref (const struct value *value)
if (!TYPE_IS_REFERENCE (checked_type))
return NULL;
target_val = (struct value *) value_computed_closure (value);
target_val = (struct value *) value->computed_closure ();
value_incref (target_val);
return target_val;
}
@@ -1289,7 +1289,7 @@ entry_data_value_coerce_ref (const struct value *value)
static void *
entry_data_value_copy_closure (const struct value *v)
{
struct value *target_val = (struct value *) value_computed_closure (v);
struct value *target_val = (struct value *) v->computed_closure ();
value_incref (target_val);
return target_val;
@@ -1300,7 +1300,7 @@ entry_data_value_copy_closure (const struct value *v)
static void
entry_data_value_free_closure (struct value *v)
{
struct value *target_val = (struct value *) value_computed_closure (v);
struct value *target_val = (struct value *) v->computed_closure ();
value_decref (target_val);
}