Allow stack allocating GIBaseInfo, add stack retrieval variants
authorColin Walters <walters@verbum.org>
Mon, 7 Dec 2009 23:35:06 +0000 (18:35 -0500)
committerColin Walters <walters@verbum.org>
Wed, 16 Dec 2009 23:18:35 +0000 (18:18 -0500)
commit804f59f40c027cf1fb2944764adea564dff07678
treee9bc14385aa166bf8a291b437beff5385ab7dc09
parent8df06489020fd43499f16e8b5cb2ec14e1f3fe29
Allow stack allocating GIBaseInfo, add stack retrieval variants

We don't want to malloc each GIBaseInfo when they can be used in
function invocation; instead, allow stack allocation.

There were a lot of structure typedefs which were actually just
exactly the same as GIBaseInfo, with the one exception of GITypeInfo.

Instead, just put the single GITypeInfo boolean inside GIBaseInfo
as a bit in a bitfield.

GIBaseInfo is still opaque publicly; GIRealInfo is the new
internal structure.

Using this, add new functions to retrieve arguments and argument types
on the stack.

https://bugzilla.gnome.org/show_bug.cgi?id=604074
girepository/ginfo.c
girepository/girepository.h