| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
Arrays are currently not handled specially, and hence treated as pointers in
giroffsets.c:get_field_size_alignment(), which is (obviously) wrong.
svn path=/trunk/; revision=1078
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Include the size and alignment of structures and unions in the typelib,
and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
* docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
to StructBlob and UnionBlob.
* girepository/ginfo.c girepository/girepository.h:
Add g_[struct|union]_get[size|alignment]().
* test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
svn path=/trunk/; revision=930
|
|
tests/offsets/offsets.h: Header file with structure definitions to test
tests/offsets/gen-gitestoffsets: Generate a C program that computes
field offsets for the structures in offsets.h two ways: using
the information from a generated typelib, and as computed by the
compiler.
We diff these two versions to test that everything is OK.
svn path=/trunk/; revision=878
|