Split g_ir_ffi_get_ffi_type() out from ginvoke.c

Extract a function to convert GITypeTag to ffi_type from the internals
of ginvoke.c. This will be useful in figure out structure alignment.

Also fix handling of gsize and time_t to be portable. (Add a check
to configure.ac to figure out the width of time_t.)

svn path=/trunk/; revision=873
This commit is contained in:
Owen Taylor
2008-11-11 00:04:45 +00:00
parent 8c88777cfb
commit d041deae59
4 changed files with 139 additions and 72 deletions

View File

@@ -13,7 +13,9 @@ libgirepository_la_SOURCES = \
gtypelib.h \
gtypelib.c \
ginfo.c \
ginvoke.c
ginvoke.c \
girffi.c \
girffi.h
libgirepository_la_CPPFLAGS = $(GIREPO_CFLAGS)
libgirepository_la_LIBADD = $(GIREPO_LIBS)
libgirepository_la_LDFLAGS = -no-undefined