forked from Imagelibrary/binutils-gdb
Approved by Jim Blandy:
2001-12-11 Fred Fish <fnf@redhat.com> * c-typeprint.c (c_type_print_base): Use type flags access macros to test bits. * ch-typeprint.c (chill_type_print_base): Ditto. * ch-valprint.c (chill_val_print): Ditto. * d10v-tdep.c (d10v_pointer_to_address): Ditto. * dwarf2read.c (dwarf2_add_member_fn): Ditto. * dwarfread.c (read_structure_scope): Ditto. * gdbtypes.c (create_range_type): Dittol (create_set_type): Ditto. (check_typedef): Ditto. * jv-typeprint.c (java_type_print_base): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto * p-valprint.c (pascal_val_print): Ditto. * stabsread.c (read_cfront_member_functions): Ditto. (read_member_functions): Ditto. (cleanup_undefined_types): Ditto. * valprint.c (val_print): Ditto. * valops.c (hand_function_call): Remove is_prototyped variable and just use type flag test macro directly.
This commit is contained in:
@@ -1458,10 +1458,8 @@ hand_function_call (value_ptr function, int nargs, value_ptr *args)
|
||||
|
||||
else
|
||||
{
|
||||
int is_prototyped = TYPE_FLAGS (ftype) & TYPE_FLAG_PROTOTYPED;
|
||||
param_type = TYPE_FIELD_TYPE (ftype, i);
|
||||
|
||||
args[i] = value_arg_coerce (args[i], param_type, is_prototyped);
|
||||
args[i] = value_arg_coerce (args[i], param_type, TYPE_PROTOTYPED (ftype));
|
||||
}
|
||||
|
||||
/*elz: this code is to handle the case in which the function to be called
|
||||
|
||||
Reference in New Issue
Block a user