diff options
| author | 2026-03-18 11:33:41 +0100 | |
|---|---|---|
| committer | 2026-03-18 11:33:41 +0100 | |
| commit | 1d9e19fb3bb941cdc28e9d4c3063d3e213fd8312 (patch) | |
| tree | e18eddb587f91455a439c0fd4f1bb3b3216ea2df /src/obj.h | |
| parent | 1fee6a61abdf2cf332fffbc50bf7adc1842feb40 (diff) | |
Refactor: use typedefs and CamelCase for aggregate types
Looks nicer
Diffstat (limited to 'src/obj.h')
| -rw-r--r-- | src/obj.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |