GNOME Bugzilla – Bug 567993
[scanner] Complex array support
Last modified: 2018-02-08 11:47:25 UTC
g-ir-scanner was called like that: /usr/bin/g-ir-scanner -v --namespace Gegl --nsversion=0.0 \ --add-include-path=. --add-include-path=. \ --include=GObject-2.0 \ --include=GModule-2.0 \ --include=Gio-2.0 \ --include=cairo-1.0 \ --include=Babl-0.0 \ --library=gegl-0.0 \ --libtool="/bin/bash ../libtool" \ --output Gegl-0.0.gir \ --pkg cairo \ --pkg babl \ --pkg gegl \ `pkg-config --variable=includedir gegl`/gegl-0.0/operation/*.h \ `pkg-config --variable=includedir gegl`/gegl-0.0/*.h It fails: Traceback (most recent call last):
+ Trace 211595
sys.exit(main(sys.argv))
namespace = glibtransformer.parse()
namespace = self._transformer.parse()
node = self._traverse_one(symbol)
return self._create_typedef(symbol)
"symbol %r of type %s" % (symbol.ident, ctype_name(ctype)))
Definition of GeglMatrix3: typedef gdouble GeglMatrix3 [3][3];
Please let me know if I should provide additional information to deal with this bug. Best regards, Philipp
Hmm, so this is an array type that is passed by value to several functions? http://svn.gnome.org/viewvc/gegl/trunk/gegl/gegl-matrix.h?revision=2881&view=markup Actually I'm unsure about this in general - according to the C FAQ that it's passed by reference for a single dimension array, but not recursively: http://c-faq.com/aryptr/aryptrparam.html http://c-faq.com/aryptr/pass2dary.html There are several levels here of introspection fixes: 1) Support parsing that header and don't fail, even if the resulting API description isn't usable for a binding 2) Support array types as parameters (I'm not sure we do right now) 3) Support multidimensional arrays
*** Bug 573505 has been marked as a duplicate of this bug. ***
*** Bug 681406 has been marked as a duplicate of this bug. ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Bug #738186 may be of interest. Posting here for lack of a metabug for complex arrays.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/10.