gobject-introspection r565 - trunk/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r565 - trunk/giscanner
- Date: Mon, 1 Sep 2008 03:04:55 +0000 (UTC)
Author: walters
Date: Mon Sep 1 03:04:55 2008
New Revision: 565
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=565&view=rev
Log:
Blacklist marshaling functions
* giscanner/glibtransformer.py: Blacklist marshaling
functions
Modified:
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Mon Sep 1 03:04:55 2008
@@ -19,6 +19,7 @@
#
import os
+import re
import ctypes
from ctypes.util import find_library
@@ -37,9 +38,13 @@
'g_simple_async_result_new_from_error',
'g_simple_async_result_set_from_error',
'g_simple_async_result_propagate_error',
+ 'g_simple_async_result_report_error_in_idle',
'gtk_print_operation_get_error',
]
+SYMBOL_BLACKLIST_RE = [re.compile(x) for x in \
+ [r'\w+_marshal_[A-Z]+__', ]]
+
class Unresolved(object):
@@ -222,6 +227,9 @@
def _parse_function(self, func):
if func.symbol in SYMBOL_BLACKLIST:
return
+ for regexp in SYMBOL_BLACKLIST_RE:
+ if regexp.match(func.symbol):
+ return
if self._parse_get_type_function(func):
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]