From 7c5dd45eca377a3b675b6f0d4a9331bc3f971ac9 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 22 Mar 2026 22:00:35 +0100 Subject: style: change uvlong -> u64int, vlong -> s64int Is much nicer. I don't know whether I want to do it for the other int types too. char and uchar are fine as bytes. u/short -> u/s16int, maybe. --- src/o_elf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/o_elf.c') diff --git a/src/o_elf.c b/src/o_elf.c index 336aa81..aae0c3f 100644 --- a/src/o_elf.c +++ b/src/o_elf.c @@ -16,7 +16,7 @@ typedef struct { uchar bind : 4, type : 4; ushort shndx; - uvlong value, + u64int value, size; } Sym; static vec_of(Sym) symtab; @@ -26,7 +26,7 @@ typedef struct { uchar section; ushort kind; uint off; - vlong addend; + s64int addend; union { uint symidx; internstr symname; @@ -115,7 +115,7 @@ elfhassym(internstr nam, uint *value) } void -elfaddsym(internstr nam, int info, enum section sect, uvlong value, uvlong size) +elfaddsym(internstr nam, int info, enum section sect, u64int value, u64int size) { Sym *sym = findsym(nam), sym0; if (!sym) { @@ -160,7 +160,7 @@ static const ushort relktab[][NRELOCKIND] = { }; void -elfreloc(internstr sym, enum relockind kind, enum section section, uint off, vlong addend) +elfreloc(internstr sym, enum relockind kind, enum section section, uint off, s64int addend) { switch (section) { default: assert(0); -- cgit v1.2.3