diff options
author | Joel Brobecker <brobecker@adacore.com> | 2015-10-09 14:14:43 -0700 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2015-10-09 14:32:23 -0700 |
commit | 220475ed8b0c1ef7b4eabf64bcc723e14fd78209 (patch) | |
tree | a435a257c733ca27a35aacbe17a01e543931505a /gdb/gdbtypes.c | |
parent | d0a9e8108942ebeb68d9b0b39bebb37369e0f701 (diff) | |
download | fsf-binutils-gdb-220475ed8b0c1ef7b4eabf64bcc723e14fd78209.zip fsf-binutils-gdb-220475ed8b0c1ef7b4eabf64bcc723e14fd78209.tar.gz fsf-binutils-gdb-220475ed8b0c1ef7b4eabf64bcc723e14fd78209.tar.bz2 |
make is_scalar_type non-static and use it in ada-lang.c
Just a small cleanup, to avoid code duplication...
gdb/ChangeLog:
* gdbtypes.h (is_scalar_type): Add extern declaration.
* gdbtypes.c (is_scalar_type): Make non-static.
* ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
to compute IS_SCALAR instead of doing it ourselves.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index b406550..919cac9 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -2717,7 +2717,7 @@ is_integral_type (struct type *t) /* Return true if TYPE is scalar. */ -static int +int is_scalar_type (struct type *type) { type = check_typedef (type); |