standardise macro names

This commit is contained in:
Emile Clark-Boman 2025-09-26 23:17:52 +10:00
parent 6ad476284f
commit 8c9f75d521

View file

@ -4,14 +4,14 @@
* REF: https://gabi.xinuos.com/elf/01-intro.html * REF: https://gabi.xinuos.com/elf/01-intro.html
*/ */
#ifndef BFPG_ELF_INTEGERS_H #ifndef BFPG_ELF_INT_H
# define BFPG_ELF_INTEGERS_H # define BFPG_ELF_INT_H
# include <stdint.h> # include <stdint.h>
/* 32-Bit & 64-Bit Shared Integer Types */ /* 32-Bit & 64-Bit Shared Integer Types */
# define Elf_Addr(BITS) uint##BITS##_t # define Elf_Addr(N) uint##N##_t
# define Elf_Off(BITS) uint##BITS##_t # define Elf_Off(N) uint##N##_t
typedef uint16_t Elf_Half; /* Unsigned medium integer */ typedef uint16_t Elf_Half; /* Unsigned medium integer */
typedef uint32_t Elf_Word; /* Unsigned integer */ typedef uint32_t Elf_Word; /* Unsigned integer */
typedef int32_t Elf_Sword; /* Signed integer */ typedef int32_t Elf_Sword; /* Signed integer */
@ -36,4 +36,4 @@ typedef Elf_Sxword Elf64_Sxword;
# undef Elf_Addr # undef Elf_Addr
# undef Elf_Off # undef Elf_Off
#endif /* BFPG_ELF_INTEGERS_H */ #endif /* BFPG_ELF_INT_H */