summaryrefslogtreecommitdiff
path: root/tests/offsets/gen-gitestoffsets
Commit message (Collapse)AuthorAgeFilesLines
* tests/offsets: Remove leftover g_type_init() callColin Walters2012-10-311-2/+0
|
* tests: Fix namespacing for BarApp (should be just Bar)Colin Walters2010-08-311-1/+1
|
* Bug 563469 – Arrays not treated correctly in struct offset calculationColin Walters2009-02-021-1/+1
| | | | | | | 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
* Bug 560825 – Add size and alignment to typelibOwen Taylor2008-11-161-2/+11
| | | | | | | | | | | | | | | | 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
* Add tests for field offset computationsOwen Taylor2008-11-111-0/+242
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