From 1d9e19fb3bb941cdc28e9d4c3063d3e213fd8312 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 18 Mar 2026 11:33:41 +0100 Subject: Refactor: use typedefs and CamelCase for aggregate types Looks nicer --- src/obj.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/obj.h') diff --git a/src/obj.h b/src/obj.h index b421b3f..0dd6f2d 100644 --- a/src/obj.h +++ b/src/obj.h @@ -1,13 +1,13 @@ #include "antcc.h" -extern struct objfile { +typedef struct ObjFile { const char *infile, *outfile; uchar *textbegin, *textend; uchar *code; uchar dataalign, rodataalign, bssalign; uint nbss; vec_of(uchar) data, rodata; -} objout; +} ObjFile; enum relockind { REL_ABS64, @@ -26,6 +26,7 @@ enum relockind { }; enum section { Snone, Stext, Srodata, Sdata, Sbss }; +extern ObjFile objout; void objini(const char *infile, const char *outfile); void objdeffunc(internstr nam, bool globl, uint off, uint siz); enum section objhassym(internstr name, uint *off); -- cgit v1.2.3