make is_scalar_type non-static and use it in ada-lang.c
authorJoel Brobecker <brobecker@adacore.com>
Fri, 9 Oct 2015 21:14:43 +0000 (14:14 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 9 Oct 2015 21:32:23 +0000 (14:32 -0700)
commit220475ed8b0c1ef7b4eabf64bcc723e14fd78209
treea435a257c733ca27a35aacbe17a01e543931505a
parentd0a9e8108942ebeb68d9b0b39bebb37369e0f701
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.
gdb/ChangeLog
gdb/ada-lang.c
gdb/gdbtypes.c
gdb/gdbtypes.h