summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* update-glib-sources: New scriptwip/glib-source-extractionColin Walters2010-12-164-21/+123
| | | | | | This is a bit cleaner than the old extract-*-sources.sh scripts, and supports extracting headers too, so we can stop depending on the installed tree.
* Regenerate gio-2.0.cPavel Holejsovsky2010-12-161-351/+131
|
* Update path to g-ir-annotation-tool in extract-gio-sources.sh.Pavel Holejsovsky2010-12-161-1/+1
|
* scanner: support typedefs for container typesJonathan Matthew2010-12-166-11/+97
| | | | | | | | | | | Inside an alias definition, we only need the name of the alias target type. Add a method to GIRWriter to write out a type reference rather than full type definition and use it when writing out an alias. Determine introspectableness of aliases in IntrospectablePass so functions using aliases can be marked not-introspectable if the alias itself is not. https://bugzilla.gnome.org/show_bug.cgi?id=629682
* Regenerate gio-2.0.c from current glib/gio.Pavel Holejsovsky2010-12-151-331/+10141
|
* giscanner: don't ignore signal parameter names from annotations.Pavel Holejsovsky2010-12-152-4/+7
| | | | | | | | | | | | | | If present in annotation, use parameter names from annotation instead of (object, p0, p1, ...) names generated by dumpparser. Assign names for all parameters before trying to resolve annotation types, so that annotations containing forward references to other arguments, e.g. * GApplication::open: * @application: the application * @files: (array length=n_files) (element-type GFile): an array of #GFiles * @n_files: the length of @files
* cairo: Fill out GIR with cairo-gobject boxed informationColin Walters2010-12-101-7/+21
| | | | | | | | | | We need these references to correctly handle when an API (say GTK3) uses the cairo-gobject boxed types in a signal (like "draw"). API consumers need to be using g-i for signal handling to make this all work. https://bugzilla.gnome.org/show_bug.cgi?id=636646
* cairo-1.0.gir: Un-foreign RectangleIntColin Walters2010-12-101-1/+16
| | | | | | | | | | | | | | | cairo.RectangleInt is a very tricky case; it's (as of now) boxed in cairo-gobject. We're trying to fix a few bugs here. First, we want to make (out caller-allocates) work. In order to do that, we need to explicitly specify the fields so that the typelib has the right size. Also, add the boxed type now so that we pick up the right thing from GObject signal parameters. See history in bug 623222 and bug 636393. https://bugzilla.gnome.org/show_bug.cgi?id=636617
* gir: Add Time to xlibs-2.0Emmanuele Bassi2010-12-091-0/+1
|
* Fix thinko in regress suite.Pavel Holejsovsky2010-12-081-1/+1
| | | | | | | | | regress_test_fundamental_sub_object_finalize should call parent's regress_test_fundamental_object_finalize instead of regress_test_fundamental_object_unref, otherwise recursion and double-free might happen. https://bugzilla.gnome.org/show_bug.cgi?id=636620
* Support glib-mkenums comment /*< flags >*/Andreas Rottmann2010-12-076-20/+57
| | | | | | | | | | | | | | | - Modify the lexer to consider all "trigraph" comments specially, and parse them for "flags" as well as "private" and "public" (which were previously hardcoded). This change allows for future support of multiple annotations inside a single trigraph comment. - Change the parser to consider the additional field "flags" set by the lexer when constructing enums. - Add a test case for the "flags" trigraph comment to the scanner annotation tests. See <https://bugzilla.gnome.org/show_bug.cgi?id=631530>.
* Don't emit shadowed methods into the typelibAndreas Rottmann2010-12-071-1/+4
| | | | Ignore shadowed methods when parsing the GIR.
* g_object_info_find_method_using_interfaces: Fix crash if not foundColin Walters2010-12-061-1/+1
| | | | If a method wasn't found, we'd try to unref NULL.
* g_object_info_find_method_using_interfaces: New functionColin Walters2010-12-062-0/+62
| | | | | | | | 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
* Make sure we don't mark GInitiallyUnownedClass as disguisedTomeu Vizoso2010-12-061-0/+1
|
* Add directory index sectionColin Walters2010-12-033-12/+164
| | | | | | | | | | 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
* .gitignore: UpdateColin Walters2010-12-031-8/+13
|
* Add internal hashing API designed for the typelibColin Walters2010-12-034-2/+307
| | | | | | | | | | | 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
* cmph-bdz-test: New testColin Walters2010-12-032-1/+149
| | | | Add a basic test of CMPH (without any layers on top).
* cmph: Squash a lot of gcc -Wall compiler warningsColin Walters2010-12-0321-26/+28
| | | | | | | * 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
* cmph: Add automake rulesColin Walters2010-12-032-0/+68
|
* cmph: Modify types to use GLib typesColin Walters2010-12-031-27/+10
| | | | | | | 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.
* Import CMPH 1.0Colin Walters2010-12-0377-0/+12124
| | | | | This will be used for typelib indexing. See README-CMPH-IMPORT.txt for more information.
* Makefile.am: Add GTESTER_PROGSColin Walters2010-12-031-1/+3
| | | | This is a list of test programs to run under "gtester".
* scanner: Switch to only Python 2.5 C API usageColin Walters2010-12-031-10/+14
| | | | | | | | PyUnicode_FromString is 2.6 only, we can use PyUnicode_DecodeUTF8 easily enough though. Also, fix memory leaks in this function; we leaked the buffer on success, and also in most failure paths.
* scanner: More XML unicode fixesColin Walters2010-12-021-9/+13
| | | | | | Coerce input temporarily inside xmlwriter into Unicode to do string manipulation, and then only convert it to "UTF8str" when writing into the data buffer.
* Add proper unicode support to the source scannerJohan Dahlin2010-12-023-8/+38
| | | | | | The assumption is that the only allowed source encoding is utf-8. Always strings as unicode and fix up the transformer and xml writer to properly output utf-8.
* Support hexadecimal escapes in constantsColin Walters2010-12-023-2/+86
| | | | | | | g_strcompress() only does some of what we need; fork it and add support for \x escapes too. https://bugzilla.gnome.org/show_bug.cgi?id=595773
* scanner: Only mark structures and unions as out-caller-allocatesColin Walters2010-11-194-1/+32
| | | | | | | | These are the only things for which we expect native values to be preserved; for e.g. flags and integers, we expect bindings to convert. The particular rationale for this patch is to avoid flagging flags (sic) as (out caller-allocates).
* Update gio annotations from GLib gitColin Walters2010-11-171-8878/+1153
|
* gtk-doc: Update for renamed libgirepository-internals.laColin Walters2010-11-171-1/+1
|
* glib-2.0.c: annotate the arrays in g_spawn_sync/_asyncDan Winship2010-11-171-2/+4
|
* girepository: Consistently prefix internal functions with _Colin Walters2010-11-1610-322/+322
| | | | | This should better avoid them being exported. Rename girepository-parser.la to girepository-internals.la for clarity.
* build: Flip around linking order of libraries for toolsColin Walters2010-11-161-4/+4
| | | | | | It seems in some cases (Debian libtool) we get an injected rpath first for the jhbuild root, which screws us over since we need the libraries from .libs.
* gitypelib: Extend warning for validationColin Walters2010-11-161-1/+1
|
* scanner: Fall back to default uscoring for method pairing if possibleColin Walters2010-11-161-6/+16
| | | | | | 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.
* Fix tests to look in correct directory for typelibsColin Walters2010-11-165-14/+4
| | | | With nonrecursive they're in $(top_builddir) now
* tests: Print an error messageColin Walters2010-11-161-2/+2
|
* Fix line too longColin Walters2010-11-161-1/+2
|
* scanner: use c-symbol-prefix for method pairing where possibleJonathan Matthew2010-11-162-32/+27
| | | | | | | | | 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
* scanner: don't show 'warnings suppressed' if --warn-all in useJonathan Matthew2010-11-161-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=633227
* Add support for gunichar in typelibColin Walters2010-11-1212-11/+34
| | | | | | | 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
* build: Explicitly link to libffi for g-ir-compilerColin Walters2010-11-121-2/+2
| | | | | On Debian, libtool won't pull in dependencies from internal libraries when linking.
* Add g_object_info_find_signalColin Walters2010-11-123-0/+42
| | | | | | | This matches g_object_info_find_method, and allows us to add indexing later. https://bugzilla.gnome.org/show_bug.cgi?id=633204
* Makefile-gir.am: Fix explicit dependency of DBusGLib on GObjectColin Walters2010-11-111-1/+1
| | | | | Because of Makefile.introspection, the .typelibs are still put in gir/.
* Explicitly link g-ir-compiler and g-ir-generate to GIOColin Walters2010-11-111-4/+6
| | | | girepository only explicitly deps on GObject, so this is correct.
* dumper: Differentiate between "external" and "internal" linkingColin Walters2010-11-113-12/+41
| | | | | | | | | | | 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
* Makefile-gir.am: Add explicit g-ir-compiler dependencyColin Walters2010-11-111-1/+14
| | | | | We need the typelib compiler to be built before we try to build typelibs for the static gir files.
* nonrecursive build: Fix typelib installationAlban Browaeys2010-11-111-1/+1
|
* Fix previous commitColin Walters2010-11-111-2/+2
| | | | ..but we still should be looking for pre-written girs in gir/.