mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Make function fixed_point_scaling_factor a method of struct type
This logically connects this function to the object it inspects. gdb/ChangeLog: * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method, replacing fixed_point_scaling_factor. All callers updated throughout this project. (fixed_point_scaling_factor): Delete declaration. * gdbtypes.c (type::fixed_point_scaling_factor): Replaces fixed_point_scaling_factor. Adjust implementation accordingly.
This commit is contained in:
@ -1224,6 +1224,11 @@ struct type
|
||||
|
||||
struct type *fixed_point_type_base_type ();
|
||||
|
||||
/* * Assuming that THIS is a TYPE_CODE_FIXED_POINT, return its scaling
|
||||
factor. */
|
||||
|
||||
const gdb_mpq &fixed_point_scaling_factor ();
|
||||
|
||||
/* * Return the dynamic property of the requested KIND from this type's
|
||||
list of dynamic properties. */
|
||||
dynamic_prop *dyn_prop (dynamic_prop_node_kind kind) const;
|
||||
@ -2596,9 +2601,6 @@ extern int type_not_associated (const struct type *type);
|
||||
a range type whose base type is a TYPE_CODE_FIXED_POINT. */
|
||||
extern bool is_fixed_point_type (struct type *type);
|
||||
|
||||
/* Given TYPE, which is a fixed point type, return its scaling factor. */
|
||||
extern const gdb_mpq &fixed_point_scaling_factor (struct type *type);
|
||||
|
||||
/* Allocate a fixed-point type info for TYPE. This should only be
|
||||
called by INIT_FIXED_POINT_SPECIFIC. */
|
||||
extern void allocate_fixed_point_type_info (struct type *type);
|
||||
|
Reference in New Issue
Block a user