summaryrefslogtreecommitdiff
path: root/compiler_and_linker/unsorted/CMachine.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-20 11:56:38 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-20 11:56:38 +0000
commit0905072b3ccfcb394b1dca2405a55cff4e2b9271 (patch)
treec7c6f87ecf257c4e7b6a92355e75030165731371 /compiler_and_linker/unsorted/CMachine.c
parent7d986adf37220e1981a707745b784b078de4e3bc (diff)
downloadMWCC-0905072b3ccfcb394b1dca2405a55cff4e2b9271.tar.gz
MWCC-0905072b3ccfcb394b1dca2405a55cff4e2b9271.zip
tons more renaming of stuff
Diffstat (limited to 'compiler_and_linker/unsorted/CMachine.c')
-rw-r--r--compiler_and_linker/unsorted/CMachine.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler_and_linker/unsorted/CMachine.c b/compiler_and_linker/unsorted/CMachine.c
index eff2243..bfa7023 100644
--- a/compiler_and_linker/unsorted/CMachine.c
+++ b/compiler_and_linker/unsorted/CMachine.c
@@ -1268,26 +1268,26 @@ SInt32 CMach_StructLayoutBitfield(TypeBitfield *tbitfield, UInt32 qual) {
if (!cmach_curbfsize) {
cmach_structoffset += padding_at_start;
- if (!tbitfield->unkB)
+ if (!tbitfield->bitlength)
return cmach_structoffset;
- cmach_curbfsize = tbitfield->unkB;
+ cmach_curbfsize = tbitfield->bitlength;
cmach_curbfbasesize = basesize;
cmach_curbfoffset = cmach_structoffset;
cmach_structoffset += basesize;
- tbitfield->unkA = 0;
+ tbitfield->offset = 0;
return cmach_curbfoffset;
} else {
- if (!tbitfield->unkB || (cmach_curbfsize + tbitfield->unkB) > basesize_bits || cmach_curbfbasesize != basesize) {
+ if (!tbitfield->bitlength || (cmach_curbfsize + tbitfield->bitlength) > basesize_bits || cmach_curbfbasesize != basesize) {
cmach_structoffset += padding_at_start;
cmach_curbfsize = 0;
cmach_curbfbasesize = basesize;
- if (!tbitfield->unkB)
+ if (!tbitfield->bitlength)
return cmach_structoffset;
cmach_curbfoffset = cmach_structoffset;
cmach_structoffset += basesize;
}
- tbitfield->unkA = cmach_curbfsize;
- cmach_curbfsize += tbitfield->unkB;
+ tbitfield->offset = cmach_curbfsize;
+ cmach_curbfsize += tbitfield->bitlength;
return cmach_curbfoffset;
}
}