diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-27 12:37:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-27 22:08:59 +0930 |
commit | 0e3c1eebb22e0ade28b619fb41f42d66ed6fb145 (patch) | |
tree | 8a886ac9438d7e9268807c07585eef11a146714d /bfd/bfd-in.h | |
parent | aa9b5dbc0f30855aa23034cbd78a1f2025cb9fa9 (diff) | |
download | gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.zip gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.gz gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.bz2 |
Remove use of bfd_uint64_t and similar
Requiring C99 means that uses of bfd_uint64_t can be replaced with
uint64_t, and similarly for bfd_int64_t, BFD_HOST_U_64_BIT, and
BFD_HOST_64_BIT. This patch does that, removes #ifdef BFD_HOST_*
and tidies a few places that print 64-bit values.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index a1c4bf1..09c5728e 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -116,10 +116,10 @@ typedef struct bfd bfd; #error No 64 bit integer type available #endif /* ! defined (BFD_HOST_64_BIT) */ -typedef BFD_HOST_U_64_BIT bfd_vma; -typedef BFD_HOST_64_BIT bfd_signed_vma; -typedef BFD_HOST_U_64_BIT bfd_size_type; -typedef BFD_HOST_U_64_BIT symvalue; +typedef uint64_t bfd_vma; +typedef int64_t bfd_signed_vma; +typedef uint64_t bfd_size_type; +typedef uint64_t symvalue; #if BFD_HOST_64BIT_LONG #define BFD_VMA_FMT "l" @@ -447,10 +447,10 @@ extern bool bfd_record_phdr /* Byte swapping routines. */ -bfd_uint64_t bfd_getb64 (const void *); -bfd_uint64_t bfd_getl64 (const void *); -bfd_int64_t bfd_getb_signed_64 (const void *); -bfd_int64_t bfd_getl_signed_64 (const void *); +uint64_t bfd_getb64 (const void *); +uint64_t bfd_getl64 (const void *); +int64_t bfd_getb_signed_64 (const void *); +int64_t bfd_getl_signed_64 (const void *); bfd_vma bfd_getb32 (const void *); bfd_vma bfd_getl32 (const void *); bfd_signed_vma bfd_getb_signed_32 (const void *); @@ -459,8 +459,8 @@ bfd_vma bfd_getb16 (const void *); bfd_vma bfd_getl16 (const void *); bfd_signed_vma bfd_getb_signed_16 (const void *); bfd_signed_vma bfd_getl_signed_16 (const void *); -void bfd_putb64 (bfd_uint64_t, void *); -void bfd_putl64 (bfd_uint64_t, void *); +void bfd_putb64 (uint64_t, void *); +void bfd_putl64 (uint64_t, void *); void bfd_putb32 (bfd_vma, void *); void bfd_putl32 (bfd_vma, void *); void bfd_putb24 (bfd_vma, void *); @@ -470,8 +470,8 @@ void bfd_putl16 (bfd_vma, void *); /* Byte swapping routines which take size and endiannes as arguments. */ -bfd_uint64_t bfd_get_bits (const void *, int, bool); -void bfd_put_bits (bfd_uint64_t, void *, int, bool); +uint64_t bfd_get_bits (const void *, int, bool); +void bfd_put_bits (uint64_t, void *, int, bool); /* mmap hacks */ |