get rid of py-value.c:is_intlike (use is_integral_type instead)
authorJoel Brobecker <brobecker@adacore.com>
Tue, 19 Nov 2013 02:56:00 +0000 (06:56 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Wed, 20 Nov 2013 17:20:11 +0000 (21:20 +0400)
commit7c245c246c23c5b3f4eef21a2f385af1c962c636
tree27a48c38873a631a21154df76dff9ecb125aefff
parente48744a00a1bddd3366c25e93fee86e97c190e7b
get rid of py-value.c:is_intlike (use is_integral_type instead)

is_intlike was mostly duplicating is_integral_type, with the exception
of the handling of TYPE_CODE_PTR when parameter PTR_OK is nonzero.
This patches deletes the is_intlike function, using is_integral_type
instead, and adjusting the two locations where this function gets
called.

The code should remain strictly equivalent.

gdb/ChangeLog:

        * python/py-value.c (is_intlike): Delete.
        (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
        by use of is_integral_type.
        (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
        by use of is_integral_type and check for TYPE_CODE_PTR.
gdb/ChangeLog
gdb/python/py-value.c
This page took 0.025265 seconds and 4 git commands to generate.