| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
This was discussed in bug 649657.
https://bugzilla.gnome.org/show_bug.cgi?id=649657
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
|
| |
Also add a test case.
https://bugzilla.gnome.org/show_bug.cgi?id=640468
|
|
|
|
|
|
|
|
| |
This bug was introduced with
http://git.gnome.org/browse/gobject-introspection/commit/?id=36aa515f1036978ced8d4ffb808260844f7229e0
due to rename of c:prefix to c:identifier-prefixes.
https://bugzilla.gnome.org/show_bug.cgi?id=640264
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=644749
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Flags and enums with a GType have a value_nick and value_name
strings available in the class struct. But for flags and enums
without GType, we need to get this information from introspection.
g_base_info_get_name() gives the string for value_nick. In the GIR,
the attribute "c:identifier" is the string neede for value_name.
This patch adds the "c:identifier" from GIR to the typelib for all
flags and enum values. It can be retireved using
g_base_info_get_attribute(info, "c:identifier").
https://bugzilla.gnome.org/show_bug.cgi?id=642757
|
|
|
|
|
|
|
|
| |
Different types of array have different type nodes, so they should
produce different keys in the cache of already seen type nodes, to
avoid turning a GByteArray into a reference to a GPtrArray.
https://bugzilla.gnome.org/show_bug.cgi?id=642300
|
|
|
|
|
|
|
| |
The argument was called 'ctx' but the macro was using 'context'.
This wasn't causing the build to fail because the variable
'context' was already defined in all the scopes where this macro
was used.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=641647
|
|
|
|
|
|
| |
Because it already has the lib prefix and the .so postfix
https://bugzilla.gnome.org/show_bug.cgi?id=639961
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=634838
|
|
|
|
|
|
|
| |
for calling the native implementation of a virtual function. Refactors
the code common with g_function_info_invoke in _g_callable_info_invoke.
https://bugzilla.gnome.org/show_bug.cgi?id=637145
|
|
|
|
|
| |
This avoids a naming conflict when compiling GiRepository.gir, where
g_irepository_dump() was defined in an included header.
|
| |
|
|
|
|
| |
Ignore shadowed methods when parsing the GIR.
|
|
|
|
| |
If a method wasn't found, we'd try to unref NULL.
|
|
|
|
|
|
|
|
| |
Pull this down into introspection from gjs; this will allow us
to cache this better in the future (for example, by caching the
infos for interfaces in the info for the object).
https://bugzilla.gnome.org/show_bug.cgi?id=632924
|
|
|
|
|
|
|
|
|
|
| |
Use the internal perfect hashing API to add an index to the directory.
To support this, add the notion of additional "sections" to the
typelib. A section index is inserted between the header and the
directory.
https://bugzilla.gnome.org/show_bug.cgi?id=554943
|
|
|
|
|
|
|
|
|
|
|
| |
In multiple places in the typelib, but most importantly the directory,
we need some fast indexing. Perfect hashing, as implemented by CMPH
(previous commit), is an exact fit for the problem domain.
Add an API built on top of CMPH which maps strings->guint16 (we just
need a guint16 for the typelib index).
https://bugzilla.gnome.org/show_bug.cgi?id=554943
|
|
|
|
| |
Add a basic test of CMPH (without any layers on top).
|
|
|
|
|
|
|
| |
* Functions taking no parameters need to explicitly say (void).
* Mark some functions as static that are
* Comment out an unused function in bdz.c
* Change loop indicies "i" to be unsigned if our limit is unsigned
|
|
|
|
|
|
|
| |
The 64 bit #ifdefs is just hackish and broken; e.g. it will fail
on ppc64/linux and WIN64.
Use the GLib typedefs, which I know are more correct.
|
|
|
|
|
| |
This will be used for typelib indexing. See README-CMPH-IMPORT.txt
for more information.
|
|
|
|
|
| |
This should better avoid them being exported. Rename
girepository-parser.la to girepository-internals.la for clarity.
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This matches g_object_info_find_method, and allows us to add indexing
later.
https://bugzilla.gnome.org/show_bug.cgi?id=633204
|
|
|
|
|
|
| |
This is needed by the offsets code, and is generally useful. We
need to export it for a future patch which won't export symbols
with a leading _.
|
|
|
|
|
| |
This is cleaner and faster, and prepares us better for an incoming
import of CMPH.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
Previously we just were sloppy and didn't bother to accurately compute
signed/unsigned for enumeration types. But since we expect bindings
to decode a field value or function return value from an integer to
an enumeration they have know whether an integer value is
0xffffffff or -1, so we need to do the full computation.
https://bugzilla.gnome.org/show_bug.cgi?id=629704
|
|
|
|
| |
This is a preparatory patch for adding a new basic tag.
|
|
|
|
|
|
|
| |
Commit f97cc8687469f25752f79275 broke the lookup in
g_irepository_get_info; the passed offset is 0-based, then
we convert it to 1-based (and then back to 0 later...which needs
to be fixed).
|
|
|
|
|
|
|
|
|
|
|
| |
This is a cleanup patch in preparation for future indexing
patches.
The lookup code was a mess trying to mash in the 3 different
cases of name, GType, and index into one mega-function.
Split it up properly, and move the core typelib internal-scanning
bits into gitypelib.c where it belongs.
|
|
|
|
|
|
| |
Previously we bombed out if the minor version didn't match what
we expected; this was silly since the whole point of the minor
version is to enumerate compatible changes.
|
| |
|
|
|
|
| |
Otherwise we'll bomb out if CFLAGS contains -Werror.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=630710
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=628753
|
|
|
|
|
|
| |
This puts it into typelibs and allows to use it safely from scripts.
https://bugzilla.gnome.org/show_bug.cgi?id=628753
|
|
|
|
| |
This should have been in the previous commit.
|
| |
|
|
|
|
|
|
| |
Such as Sparc64.
https://bugzilla.gnome.org/show_bug.cgi?id=620769
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=628753
|
| |
|
|
|
|
|
| |
We were writing the attributes backwards. Also actually use
the attribute in the typelib generation.
|
|
|
|
|
| |
This fixes the search path initialization if g_irepository_require
is called first thing.
|