Bug 560252 - Compute field offsets before writing typelib
authorOwen Taylor <otaylor@src.gnome.org>
Tue, 11 Nov 2008 05:10:36 +0000 (05:10 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 11 Nov 2008 05:10:36 +0000 (05:10 +0000)
commit7e1e368b9f09835a4c65c3e8ff7780523893180d
tree549f6f46dec594ee3429cda80d66abbbda85906b
parent570088cd5548cdc3e13b85b5e900457c3b5a94ea
Bug 560252 - Compute field offsets before writing typelib

girnode.h: Store the total size and alignment for
 GIrNodeStruct/Boxed/Union.

giroffset.c: New file implementing computation of structure
 field offsets.

girnode.c: Compute structure field offsets before writing types
 into the typelib.

docs/typelib-format.txt: Document that a field offset of 0xFFFF
means "unknown". Also fix description of the discriminator_offset
field for unions.

svn path=/trunk/; revision=876
ChangeLog
docs/typelib-format.txt
girepository/Makefile.am
girepository/girnode.c
girepository/girnode.h
girepository/giroffsets.c [new file with mode: 0644]