aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/obj.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-18 11:33:41 +0100
committerlemon <lsof@mailbox.org>2026-03-18 11:33:41 +0100
commit1d9e19fb3bb941cdc28e9d4c3063d3e213fd8312 (patch)
treee18eddb587f91455a439c0fd4f1bb3b3216ea2df /src/obj.h
parent1fee6a61abdf2cf332fffbc50bf7adc1842feb40 (diff)
Refactor: use typedefs and CamelCase for aggregate types
Looks nicer
Diffstat (limited to 'src/obj.h')
-rw-r--r--src/obj.h5
1 files changed, 3 insertions, 2 deletions
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);