girffi: Fix g_callable_info_prepare_closure for certain callables
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 9 Apr 2012 20:51:08 +0000 (17:51 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 20 Aug 2012 19:01:59 +0000 (15:01 -0400)
commitd8970fbc500a8b20853b564536251315587450d9
tree119a27b8da81b77bdc2bb1baeb9cfe268bdc8026
parentd220bb74c25ce098fb3cb074bb03a0868032e89c
girffi: Fix g_callable_info_prepare_closure for certain callables

Namely, those that are methods and those that throw GErrors.
We have very similar code in two places that calculate arg lengths and
argument types to stick into libffi. Merge, clean up, and correct both.

https://bugzilla.gnome.org/show_bug.cgi?id=673805
girepository/girffi.c