| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Avoids duplicate code.
|
|
|
|
|
|
|
|
|
|
|
|
| |
It was a stupid abstraction split, we only support GObject.
* Clean up how we handle c:type - we only set it if we've actually
seen a corresponding structure.
* Add a warning if we don't see the structure typedef for an
interface, since that's pretty bogus. (And fix regress.h to have
one)
* Rename the "type_name" attribute internally to "gtype_name"
for clarity.
|
|
|
|
|
| |
If the first parameter matches the origin, don't scan as a constructor.
Happened in practice with meta_screen_append_new_workspace from mutter.
|
|
|
|
| |
We weren't properly hitting GObject.
|
|
|
|
| |
See test case, hit in practice in gnome-shell.
|
|
|
|
| |
Add some more (transfer full) annotations left out in commit cd0de25.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of handling constants by lower-casing them, stripping the
lower-case prefix and upper-casing them again, leave them in the
original case and check against upper-cased versions of
namespace.symbol_prefixes.
Wwe detect what version to test against by looking at the first character
of the identifier, so we assume that --symbol-prefix options are always
in lowercase. If that needs to be relaxed, then we'll have to check all
symbols against both sets of prefixes.
Add tests for constants to Regress.h and fix tests/warn/unresolved-type.h
for a warning message that improved with this change.
https://bugzilla.gnome.org/show_bug.cgi?id=629007
|
|
|
|
|
| |
Add (transfer full) and (array zero-terminated=1) to various GLib
and Gio functions.
|
|
|
|
|
| |
For legacy library author convenience, propagate (skip) on e.g.
structures to all callables which use them.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previous to the scanner rewrite, static methods were only handled
for GObject subclasses. Go back to that for full compatibility
with existing bindings and code. See bug 572408 for the topic
of changing the API.
The code for writing out static methods for records and boxed is
left as future proofing, and the same handling is added for
interfaces.
https://bugzilla.gnome.org/show_bug.cgi?id=628967
|
| |
|
|
|
|
|
|
|
|
| |
The scanner by default tries hard to ensure that we know immediately
from seeing an identifier "FooBarBaz" that the namespace is "Foo".
But libraries using --accept-unprefixed here screws this over.
Potentially we could add --unstripped-identifier-prefix, but it's
ugly. The best long term fix is to fix the namespacing in the library.
|
|
|
|
| |
This reverts commit 144cb10d51888a9565721088d2b61794468742e9.
|
|
|
|
|
|
| |
Such as Sparc64.
https://bugzilla.gnome.org/show_bug.cgi?id=620769
|
|
|
|
| |
Even if warnings are not enabled
|
| |
|
|
|
|
|
|
|
| |
For backwards compat, keep the presence of the environment
variable at all to mean "exception".
Also start a HACKING file.
|
|
|
|
|
| |
with statement is available in python 2.5, but only
if you import it from __future__
|
|
|
|
|
| |
This enables glib documentation to be added to the generated gir using the original source
eg. --with-glib-src=/usr/src/glib
|
|
|
|
| |
This reverts commit 26c66df6bdc3e3ce836c7462958fa38cc3e1062f.
|
|
|
|
|
| |
Static method pairing changes the API and should be futher
discussed in https://bugzilla.gnome.org/show_bug.cgi?id=572408
|
| |
|
|
|
|
|
|
|
|
|
| |
Make sure all giscanner python files are available in builddir, so the module
is invokable during build time.
https://bugzilla.gnome.org/show_bug.cgi?id=571591
Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
|
| |
|
| |
|
|
|
|
|
| |
Convert slashes to underscores in _gir_name so that non-recursive builds can
use Makefile.introspection. Closes: bgo#628594
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Documentation says about g_vfunc_get_offset():
"Obtain the offset of the function pointer in the class struct.
The value 0xFFFF indicates that the struct offset is unknown."
But g-ir-compiler did set the value to 0 when the offset is unknown.
This patch fixes it.
https://bugzilla.gnome.org/show_bug.cgi?id=628270
|
|
|
|
|
|
| |
To avoid undefined references to gi_cclosure_marshal_generic
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=625995
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=628753
|
|
|
|
| |
These were listed on the wiki up until just now...
|
|
|
|
|
| |
We don't have an "annotation source" for Type right now; so as a quick
hack, stuff it in the ctype but only if we fail to resolve.
|
| |
|
|
|
|
|
| |
We were writing the attributes backwards. Also actually use
the attribute in the typelib generation.
|
|
|
|
|
|
| |
The "symbol" is actually just a string identifier, not
a real symbol. We already added the file positions when
parsing earlier.
|
|
|
|
|
|
|
|
|
| |
Commit b6fb70f9 wrongly disabled fatal warnings - in fact there
is a way to make this test case work, and it was a bug in the
scanner not processing virtual function annotations correctly.
Add a different test case for un-named parameters that doesn't
have a callback.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It doesn't use any internal state, so it can easily
be moved over to the type as a factory function
|
| |
|
| |
|
|
|
|
|
| |
This fixes the search path initialization if g_irepository_require
is called first thing.
|
|
|
|
|
| |
Since the delete parameter of NamedTemporaryFile is only
available on python 2.6
|
| |
|