quakeforge/tools/qfcc
Bill Currie 6253d775e6 [qfcc] Adjust ivar offsets to preserve alignment
As a class's ivars are built up by inheritance, but with only that
class's ivars in the symbol table, is is necessary to include an offset
based on the super class's ivars in order to ensure alignments are
respected. This is achieved via the new `base` parameter to
build_struct(), which is used to offset the current size while
calculating the aligned offset of the symbols. The parameter is ignored
for unions, as they always start at 0. The ivars for the current class
still have a base offset of 0 until they are actually added to the
class.

Fixes #29
2022-07-31 17:15:47 +09:00
..
doc [qfcc] Make ruamoko the default and update the docs 2022-02-04 10:46:31 +09:00
include [qfcc] Adjust ivar offsets to preserve alignment 2022-07-31 17:15:47 +09:00
source [qfcc] Adjust ivar offsets to preserve alignment 2022-07-31 17:15:47 +09:00
test [qfcc] Add failing test case for defspace_alloc_aligned_loc 2022-05-01 14:35:24 +09:00
AUTHORS more mailing list corrections 2003-07-12 21:50:22 +00:00
Makemodule.am [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
TODO Throw away function parameter type alias info 2020-02-26 17:46:53 +09:00