| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The commit to use the c_symbol_prefix works in every case, except for
gdk_window_object_get_type(), which screws us. Fall back to the old
heuristic in this case.
|
| |
|
|
|
|
|
|
|
|
|
| |
If we have a C symbol prefix for the target type, then use that to
identify methods that should be paired with it. The C symbol prefix
is derived from the name of the _get_type() function, so it's likely
that this is also the prefix given to methods for the type.
https://bugzilla.gnome.org/show_bug.cgi?id=634153
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=633227
|
|
|
|
|
|
|
| |
Some API such as gtk_text_iter_get_char returns an individual
"gunichar"; we should support this.
https://bugzilla.gnome.org/show_bug.cgi?id=633197
|
|
|
|
|
|
|
|
|
|
|
| |
The previous commit aea515709 broke scanning for libraries not
in the current directory, such as scanning Gio from gobject-introspection.
In this case, it's wrong to add -L., and to move the other -L behind
the library. Instead, we should just do a "normal" link using
pkg-config --libs with few games.
https://bugzilla.gnome.org/show_bug.cgi?id=632701
|
|
|
|
|
| |
This is cleaner and faster, and prepares us better for an incoming
import of CMPH.
|
|
|
|
|
| |
os.path.join barfs if we're passing it 0 arguments, as would happen
when doing "import foo".
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The C compiler will pick an enumeration type that accomodates the specified
values for the enumeration, so ignoring 64-bit enumerations, we can
have enumeration values from MININT32 to MAXUINT32. To handle this properly:
- Use gint64 for holding eumeration values when scanning
- Add a 'unsigned_value' bit to ValueBlob so we can distinguish the
int32 vs. uint32 cases in the typelib
- Change the return value of g_value_info_get_value() to gint64.
https://bugzilla.gnome.org/show_bug.cgi?id=629704
|
|
|
|
|
|
| |
Otherwise people may not know about --warn-all.
https://bugzilla.gnome.org/show_bug.cgi?id=631644
|
| |
|
|
|
|
|
| |
The compiler path explicitly split()s the variable, we should do
so in the linker path too.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before, we were adding the --libs-only-L from pkg-config files
during initial scanning, as if --library-path was specified,
*and* inside the dumper, we used --libs.
Fix this by always doing -L. <introspected libraries> <pkg-config libs>
This should ensure we don't duplicate the search path anyways.
https://bugzilla.gnome.org/show_bug.cgi?id=631348
|
|
|
|
|
|
| |
Might as well be liberal here, as long as we have a test case.
https://bugzilla.gnome.org/show_bug.cgi?id=631690
|
|
|
|
|
| |
...by default. However, the GI_SCANNER_DEBUG=save-temps option
helps for debugging.
|
|
|
|
| |
This reverts commit d15e386c8e10dd6b645a444e29cc053100089a07.
|
|
|
|
| |
This reverts commit 754e5462f6dfbe3793eb959abf3dbfa7d2fe6435.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=606686
|
| |
|
|
|
|
| |
Previously, such annotations would be ignored.
|
|
|
|
|
|
|
| |
This is useful e.g. on cygwin, where system headers use #pragma directives,
causing annoying false-alarm errors during every g-ir-scanner run.
https://bugzilla.gnome.org/show_bug.cgi?id=630994
|
| |
|
|
|
|
|
|
| |
In some cases (such as introspecting a convenience library),
we need to dlsym() modules in the binary we compile, so we
need to add -export-dynamic to the link line.
|
|
|
|
|
|
|
|
| |
This helps us avoid a problematic case where in say jhbuild, using
a system (/usr/lib) glib, adding in -l girepository-1.0 will inject
-L /path/to/builddir, when we don't want that.
https://bugzilla.gnome.org/show_bug.cgi?id=630342
|
|
|
|
|
|
|
|
|
| |
Kind of silly we weren't doing this before; an empty namespace
is always going to be unintentional.
The "oops I forgot to include .h" files actually happened with
Clutter, but it wasn't caught since the build didn't obviously
fail.
|
| |
|
|
|
|
|
|
|
|
| |
The annotation parser changed to be stricter about annotation content,
but we introduced a regression where a : in the documentation would
wrongly cause the annotation to be skipped.
https://bugzilla.gnome.org/show_bug.cgi?id=630862
|
|
|
|
|
| |
Somehow, this regressed; i have no idea how. We need to be
comparing Include objects, not string versus Include.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=630101
|
|
|
|
| |
This is a follow-up to 60a8c75 which wasn't properly fixed.
|
| |
|
|
|
|
|
|
|
| |
Remove enum members which follows /* <private> */ comments
inside the transformer instead of the sourcescanner itself.
Fixes a crash when creating the gir for GstBase.
|
|
|
|
|
| |
There's no need to increase the reference count to
items passed into PyList_SetItem, it already steals a reference.
|
| |
|
|
|
|
| |
Since the annotationparser may warn
|
|
|
|
|
| |
But disable the printing by default since it messes up
the generated file. And fix a couple of typos
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Split it into pieces that will be reusable across different
command line tools.
|
|
|
|
|
| |
Allow closures without annotations to avoid having
to duplicate the parameter name.
|
| |
|
|
|
|
|
| |
All option annotations, which uses parenthesis are now
properly validated for number of values they expect
|
| |
|
| |
|
| |
|
| |
|
| |
|