| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The input file no longer only consists of names of get_type-functions,
instead begins with either "get-type:" or "error-quark:".
https://bugzilla.gnome.org/show_bug.cgi?id=701639
|
|
|
|
|
|
| |
This fixes a compiler warning when using -Wmissing-format-attribute.
https://bugzilla.gnome.org/show_bug.cgi?id=698521
|
|
|
|
|
|
|
| |
As seen in xlib.gir at least; this is something we should probably ban
though.
https://bugzilla.gnome.org/697759
|
|
|
|
|
|
|
| |
vala generates this, and we need to honor it now that we're using the
c:prefix as an optimization when searching for gtypes.
https://bugzilla.gnome.org/697759
|
| |
|
| |
|
|
|
|
| |
Just more efficient.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When g_irepository_find_by_gtype() doesn't succeed on a simple prefix
match (the current 'fastpass' mechanism), it ends up taking a
considerable amount of CPU time, traversing the contents of all typelibs.
I imagine that the reasons to have the exhaustive search fallback are
not as strong as they used to be. For example, the case mentioned
(Clutter including Cogl) no longer seems to be true.
Also, typelibs (as generated by g-ir-scanner) now provide
comma-separated C prefix info for cases when the typelib includes
introspection info for multiple prefixes. For example, the Sugar typelib
has a c_prefix string of Sugar,EggSM,Gsm,Acme. So I imagine there are
not many remaining justified cases where the exhaustive search is needed.
With that in mind, I found two ways to optimize this function:
1. Support comma-separated C prefixes
2. Don't bother with an exhaustive search if we did find a typelib
claiming support for the prefix. For example, if we're looking for
GdkDeviceManagerXI2 (currently non-introspectable) and we already found
typelib files providing the 'Gdk' prefix that didn't offer this, lets
not bother with the exhaustive search, we aren't going to find anything.
|
|
|
|
|
|
|
|
| |
They could be freed in separate threads (e.g. language binding GC
thread). But no particular reason to change other than noticing it
during code inspection for a different bug.
https://bugzilla.gnome.org/show_bug.cgi?id=688694
|
|
|
|
|
|
|
|
|
|
| |
Previously we would require applications that shipped with private
typelibs to add the private path to LD_LIBRARY_PATH, or to have a
launcher binary with the right RPATH.
Now they can just call GIRepository.prepend_library_path() before
they access the module.
https://bugzilla.gnome.org/show_bug.cgi?id=694485
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=693838
|
|
|
|
|
|
|
|
| |
g-ir-doc-tool wants to use the instance parameter to read docs
and the parameter name, so it needs to be shuttled through the
GIR.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
|
|
|
|
|
|
|
| |
Instead of remembering to have to set unknown_depth, smarten up
state_switch to do it for us.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=693040
|
|
|
|
|
|
|
| |
gchar is signed, not unsigned. Add "guchar" alias as unsigned for completeness
(but usually it appears as guint8).
https://bugzilla.gnome.org/show_bug.cgi?id=691524
|
|
|
|
| |
It was missing from girepository.symbols.
|
|
|
|
| |
In favor of GOnce, since we just want initialize-once semantics.
|
|
|
|
|
|
| |
This patch silences another gtkdoc-mkdb warning.
https://bugzilla.gnome.org/show_bug.cgi?id=688418
|
|
|
|
| |
Compiler warning introduced from MSVC patches.
|
|
|
|
|
|
|
|
| |
Rather than having a regex for both builds, but *also* use a symbol
file for the MSVC build which would bitrot quickly, force us to update
the .symbols file by using it for Unix too.
Add some missing symbols.
|
|
|
|
|
|
|
|
| |
This is the listing of symbols to export from the main libgirepository
.dll/.so. This is used for example to generate the .lib file from the
Windows DLL.
https://bugzilla.gnome.org/show_bug.cgi?id=681820
|
|
|
|
|
|
|
|
|
|
| |
-Make code using libgirepository_internals relocatable on Windows,
like what is done in the GTK+ stack, and the girepository DLL.
-Remove C99isms
-"interface" is a reserved keyword on certain compilers, so change that to
"giinterface"
https://bugzilla.gnome.org/show_bug.cgi?id=681820
|
|
|
|
|
|
| |
It does not exist on all platforms
https://bugzilla.gnome.org/show_bug.cgi?id=681820
|
|
|
|
|
|
|
|
|
|
|
| |
...So that it will compile on non-C99 compilers. The changes are mainly
moving the variable declarations to the start of the resecptive blocks.
Also, replace the use of buflen in chd.c as it might not be defined for all
platforms, instead using packed_cr_size as it seems to represent the value
that is to be printed/displayed by the debugging output.
https://bugzilla.gnome.org/show_bug.cgi?id=681820
|
|
|
|
| |
And bump our GLib requirement.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=683265
|
|
|
|
|
|
| |
We need to fix the struct info here.
https://bugzilla.gnome.org/show_bug.cgi?id=682647
|
|
|
|
|
|
|
| |
Add the convenience method g_interface_info_find_signal, mirroring
g_object_info_find_signal.
https://bugzilla.gnome.org/show_bug.cgi?id=682672
|
|
|
|
|
|
|
|
| |
Namely, those that are methods and those that throw GErrors.
We have very similar code in two places that calculate arg lengths and
argument types to stick into libffi. Merge, clean up, and correct both.
https://bugzilla.gnome.org/show_bug.cgi?id=673805
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=673805
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=635128
|
|
|
|
| |
The field info wasn't being freed after it was used
|
|
|
|
|
|
|
|
|
| |
It appears that cmph library can return (n+1) when querying item not
present in its original n-item-sized set. Adjust code so that it
detects this condition and do not chase stray pointers resulting from
this bogus(?) hash result.
https://bugzilla.gnome.org/show_bug.cgi?id=675939
|
|
|
|
|
| |
Address all gcc warnings, -Werror is not enabled yet but at least
-Wall -Werror passes on my machine.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix of leak in 4c9424e18d71237f438a99bc5f2d45ae7de60b78 was a bit
overaggressive, stealing also one reference from input 'info'
argument.
Also fixes another bug in that commit - local 'func' shadowing the
return value, causing that function always returned NULL even when
some result was actually found.
https://bugzilla.gnome.org/show_bug.cgi?id=673282
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- add missing colons
- invalid annotations
- invalid parameters and tags
- correct parameter name
- preserve description indentation
- no description parts
- comment end marker
- invalid empty lines
- line numbers
AnnotationParser now emits warnings which are considered as
errors by "make check" so fix those warnings...
https://bugzilla.gnome.org/show_bug.cgi?id=672254
|
|
|
|
|
|
|
|
| |
So it can be used for invoking callbacks
https://bugzilla.gnome.org/show_bug.cgi?id=663052
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
|
|
|
|
|
|
| |
Signed-off-by: Michel Dänzer <michel@daenzer.net>
https://bugzilla.gnome.org/show_bug.cgi?id=668902
|
|
|
|
|
|
|
|
|
|
|
| |
Dealing with FFI and return values is very tricky; this API allows
sharing the bits to do it between gobject-introspection and gjs (and
potentially other FFI binding consumers).
**NOTE** I swapped the order of the arguments, under the premise that
out arguments should generally be last.
https://bugzilla.gnome.org/show_bug.cgi?id=668902
|
|
|
|
|
|
|
|
|
|
|
| |
Adapted from the fixes for (see bug 665152). It makes sure values are
properly converted between glib and FFI, which is critical for big
endian architectures.
Patch adjusted to use GIArgument instead of custom union types
by Colin Walters <walters@verbum.org>
https://bugzilla.gnome.org/show_bug.cgi?id=668902
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=661951
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The current source has invalid assumptions about structure alignment
that break on platforms like m68k where 32-bit integers are aligned to
16-bit only. Fix this by introducing explicit structure padding for
32-bit quantities following odd numbers of 16-bit quantities and
structure trail padding, to make the binary representation generated
by the compiler match the text of the specification exactly.
https://bugzilla.gnome.org/show_bug.cgi?id=661839
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=669317
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Virtual functions can definitely throw an error. Right now the
scanner omits the GError parameter for them and adds throws="1", but
g-ir-compiler ignores this.
https://bugzilla.gnome.org/show_bug.cgi?id=669332
|
|
|
|
|
| |
As an analogue to g_object_info_find_method_using_interfaces, add a
new API so that we can find a vfunc using the same strategy.
|
|
|
|
|
| |
This is a new method designed to make a GIFunctionInvoker for
any GICallableInfo*, for bindings to use.
|