create a field_offset macro that takes a structure type and a field and returns the offset of the field within the structure everything else: use field_offset to calculate the size of variable sized structs
had to be modified to get away from vid.h (better designe now IMO anyway)