Don't use PyInt_FromSsize_t
authorTom Tromey <tromey@adacore.com>
Tue, 15 Sep 2020 17:08:56 +0000 (11:08 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 15 Sep 2020 17:08:56 +0000 (11:08 -0600)
commit37431074656958dfb788a1980f5a1cd474705b83
tree806a53e6f14f7c5df7a10b24652e1ad1b4a14068
parent08cc37dd042338209c8e2aa5db04aef2ecb5c62b
Don't use PyInt_FromSsize_t

Change the Python layer to avoid PyInt_FromSsize_t, and remove the
compatibility define.

gdb/ChangeLog
2020-09-15  Tom Tromey  <tromey@adacore.com>

* python/python-internal.h (PyInt_FromSsize_t): Remove define.
* python/py-record.c (recpy_element_number): Use
gdb_py_object_from_longest.
(recpy_gap_number): Likewise.
gdb/ChangeLog
gdb/python/py-record.c
gdb/python/python-internal.h