gobject-introspection r537 - in trunk: girepository giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r537 - in trunk: girepository giscanner
- Date: Sat, 30 Aug 2008 02:31:53 +0000 (UTC)
Author: walters
Date: Sat Aug 30 02:31:53 2008
New Revision: 537
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=537&view=rev
Log:
Add some assertions, blacklist a few more methods
* girepository/ginfo.c: Add some assertions regarding
refcounts, just to be sure.
* giscanner/glibtransformer.py: Blacklist a few more
odd Gio methods.
Modified:
trunk/girepository/ginfo.c
trunk/giscanner/glibtransformer.py
Modified: trunk/girepository/ginfo.c
==============================================================================
--- trunk/girepository/ginfo.c (original)
+++ trunk/girepository/ginfo.c Sat Aug 30 02:31:53 2008
@@ -203,6 +203,7 @@
void
g_base_info_unref (GIBaseInfo *info)
{
+ g_assert (info->ref_count > 0);
info->ref_count--;
if (!info->ref_count)
@@ -224,6 +225,7 @@
const gchar *
g_base_info_get_name (GIBaseInfo *info)
{
+ g_assert (info->ref_count > 0);
switch (info->type)
{
case GI_INFO_TYPE_FUNCTION:
@@ -302,6 +304,7 @@
case GI_INFO_TYPE_TYPE:
default: ;
+ g_assert_not_reached ();
/* unnamed */
}
@@ -311,7 +314,9 @@
const gchar *
g_base_info_get_namespace (GIBaseInfo *info)
{
- Header *header = (Header *)info->typelib->data;
+ Header *header = (Header *)info->typelib->data;
+
+ g_assert (info->ref_count > 0);
if (info->type == GI_INFO_TYPE_UNRESOLVED)
{
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Sat Aug 30 02:31:53 2008
@@ -34,6 +34,8 @@
SYMBOL_BLACKLIST = [
# These ones break GError conventions
'g_simple_async_result_new_from_error',
+ 'g_simple_async_result_set_from_error',
+ 'g_simple_async_result_propagate_error',
'gtk_print_operation_get_error',
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]