diff options
author | Dan Winship <danw@gnome.org> | 2011-05-19 16:21:13 -0400 |
---|---|---|
committer | Johan Dahlin <jdahlin@litl.com> | 2011-08-13 09:42:37 -0300 |
commit | d92fb1e2433e6c64e47da6277e30e8fad455e719 (patch) | |
tree | d4ce85b6f4761989e63dcdadbb1b6d6870745ca2 /giscanner/scannermain.py | |
parent | e9f0e44f27e8c16174b2da8aee2a2f2cd06c8418 (diff) | |
download | gobject-introspection-d92fb1e2433e6c64e47da6277e30e8fad455e719.tar.gz |
Switch to storing string form of error quarks
Instead of storing the name of the function to call to get the
error quark, store the string form of the error quark, which
we derive from the introspection binary during scanning.
Update EnumBlob and GIEnumInfo to include the new information.
This will allow determining a back-mapping from error quark
to error domain without having to dlsym() and call all the
known error quark functions.
Based on earlier patches from Owen Taylor and Maxim Ermilov.
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Diffstat (limited to 'giscanner/scannermain.py')
-rwxr-xr-x[-rw-r--r--] | giscanner/scannermain.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 52ee4cc0..3c1386a9 100644..100755 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -300,7 +300,8 @@ def create_binary(transformer, options, args): binary = IntrospectionBinary(args) else: binary = compile_introspection_binary(options, - gdump_parser.get_get_type_functions()) + gdump_parser.get_get_type_functions(), + gdump_parser.get_error_quark_functions()) shlibs = resolve_shlibs(options, binary, options.libraries) gdump_parser.set_introspection_binary(binary) |