Permalink
Commits on Dec 22, 2010
  1. Fix error handling when writing out typelib

    Return a non-zero result when opening the output file fails and
    don't use g_error() for other failures when writing out the file,
    since such errors should not produce a core dump.
    owtaylor committed Dec 22, 2010
Commits on Dec 21, 2010
  1. Regenerate gir/gio-2.0.c

    Pavel Holejsovsky committed Dec 21, 2010
Commits on Dec 19, 2010
  1. Regenerate gio-2.0.c and gobject-2.0.c from current glib.

    Pavel Holejsovsky committed Dec 19, 2010
  2. Fix misc/extract-gobject-sources.sh.

    g-ir-annotation-tool is in builddir root now.  Also avoid feeding
    problematic and not-GI-useful headers to it.
    Pavel Holejsovsky committed Dec 19, 2010
Commits on Dec 17, 2010
  1. make check pass for recent commits

    * Fix use of tabs
    * Update for correct signal parameters
    cgwalters committed Dec 17, 2010
  2. Regenerate gio-2.0.c from current glib/gio HEAD.

    Pavel Holejsovsky committed Dec 17, 2010
Commits on Dec 16, 2010
  1. Regenerate gio-2.0.c

    pavouk committed Dec 16, 2010
Commits on Dec 15, 2010
  1. scanner: support typedefs for container types

    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
    Jonathan Matthew committed Oct 27, 2010
  2. Regenerate gio-2.0.c from current glib/gio.

    Pavel Holejsovsky committed Dec 15, 2010
  3. giscanner: don't ignore signal parameter names from annotations.

    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
    pavouk committed Dec 14, 2010
Commits on Dec 10, 2010
  1. cairo: Fill out GIR with cairo-gobject boxed information

    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
    cgwalters committed Dec 6, 2010
  2. cairo-1.0.gir: Un-foreign RectangleInt

    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
    cgwalters committed Dec 6, 2010
Commits on Dec 9, 2010
  1. gir: Add Time to xlibs-2.0

    Emmanuele Bassi committed Dec 9, 2010
Commits on Dec 8, 2010
  1. Fix thinko in regress suite.

    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
    pavouk committed with cgwalters Nov 30, 2010
Commits on Dec 6, 2010
  1. Support glib-mkenums comment /*< flags >*/

    - 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>.
    rotty committed Dec 6, 2010
  2. Don't emit shadowed methods into the typelib

    Ignore shadowed methods when parsing the GIR.
    rotty committed Dec 6, 2010
  3. g_object_info_find_method_using_interfaces: Fix crash if not found

    If a method wasn't found, we'd try to unref NULL.
    cgwalters committed Dec 6, 2010
  4. g_object_info_find_method_using_interfaces: New function

    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
    cgwalters committed Oct 22, 2010
Commits on Dec 3, 2010
  1. Add directory index section

    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
    cgwalters committed Oct 25, 2010
  2. .gitignore: Update

    cgwalters committed Nov 11, 2010
  3. Add internal hashing API designed for the typelib

    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
    cgwalters committed Oct 25, 2010
  4. cmph-bdz-test: New test

    Add a basic test of CMPH (without any layers on top).
    cgwalters committed Nov 11, 2010
  5. cmph: Squash a lot of gcc -Wall compiler warnings

    * 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
    cgwalters committed Dec 2, 2010
  6. cmph: Add automake rules

    cgwalters committed Nov 11, 2010
  7. cmph: Modify types to use GLib types

    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.
    cgwalters committed Nov 11, 2010
  8. Import CMPH 1.0

    This will be used for typelib indexing.  See README-CMPH-IMPORT.txt
    for more information.
    cgwalters committed Nov 11, 2010
  9. Makefile.am: Add GTESTER_PROGS

    This is a list of test programs to run under "gtester".
    cgwalters committed Nov 11, 2010
  10. scanner: Switch to only Python 2.5 C API usage

    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.
    cgwalters committed Dec 3, 2010
Commits on Dec 2, 2010
  1. scanner: More XML unicode fixes

    Coerce input temporarily inside xmlwriter into Unicode to do
    string manipulation, and then only convert it to "UTF8str" when
    writing into the data buffer.
    cgwalters committed Dec 2, 2010
  2. Add proper unicode support to the source scanner

    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.
    Johan Dahlin committed Dec 2, 2010