| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
svn path=/branches/annotation/; revision=1016
|
|
|
|
| |
svn path=/branches/annotation/; revision=1015
|
|
|
|
| |
svn path=/branches/annotation/; revision=1014
|
|
|
|
|
|
| |
This matches the transfer defaults in the old system.
svn path=/branches/annotation/; revision=1013
|
|
|
|
| |
svn path=/branches/annotation/; revision=1012
|
|
|
|
|
|
|
|
|
|
|
|
| |
Default to "NONE" for all IN parameters; this more closely matches
how we did transfer in the old system. However - we need to make
an exception for strings (utf8). For some reason those were
FULL, even though that has no meaning.
Also default to NONE for void to match the old system.
svn path=/branches/annotation/; revision=1011
|
|
|
|
|
|
| |
where we guess/annotation something and then forcefully overrides it
svn path=/branches/annotation/; revision=1010
|
|
|
|
| |
svn path=/branches/annotation/; revision=1009
|
|
|
|
| |
svn path=/branches/annotation/; revision=1008
|
|
|
|
|
|
| |
g_file_info_list_attributes to explicitly specify.
svn path=/trunk/; revision=1004
|
|
|
|
| |
svn path=/trunk/; revision=1003
|
|
|
|
| |
svn path=/trunk/; revision=1002
|
|
|
|
| |
svn path=/trunk/; revision=1001
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
Bug 563469 – Arrays not treated correctly in struct offset calculation
* tests/scanner/foo.h (FooObject): Added field `some_int'.
* tests/scanner/foo-1.0-expected.gir,
* tests/scanner/foo-1.0-expected.tgir: Adapted.
* giscanner/glibtransformer.py (GLibTransformer._create_gobject):
carry over object fields from original (struct) node.
(GLibTransformer._pair_class_struct): Don't add fields of the
class struct to to the node for the class, they should go under a
nested <record> element (see also Bug 551738). This is needed as
otherwise offset calculation would not work, as the instance
fields are mingled with the class fields without a way to
distinguish them.
svn path=/trunk/; revision=1000
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-03 Johan Dahlin <jdahlin@async.com.br>
* misc/pep8.py:
Disable blank line check, it works differently under
Python 2.5 from 2.6 and was rather annoying from the start.
svn path=/trunk/; revision=999
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-01-03 Andreas Rottmann <a.rottmann@gmx.at>
Bug 556489 – callback annotations
* giscanner/transformer.py
* tools/generate.c (write_callable_info): Write out the new scope,
closure and destroy attributes.
* giscanner/transformer.py (Transformer._type_is_callback): New
method, checking if a given type is a callback.
(Transformer._augment_callback_params): New method; adds
information (closure, destroy) to callback parameters.
(Transformer._handle_closure, Transformer._handle_destroy): New methods,
auxiliary to _augment_callback_params.
(Transformer._create_function): Call _augment_callback_params().
(Transformer._create_parameter): Handle scope option.
(Transformer._create_typedef_callback): New method, creates a
callback, and registers it in the typedef namespace
(Transformer._create_typedef): Use _create_typedef_callback()
instead of the plain _create_callback().
* giscanner/ast.py (Parameter): Added callback-related fields.
* giscanner/girwriter.py: Write out new Parameter fields.
* girepository/girnode.h (GIrNodeParam): Added fields scope,
closure and destroy.
* girepository/gtypelib.h (ArgBlob): Ditto.
* girepository/girparser.c (start_parameter): Handle new fields.
* girepository/girmodule.c (g_ir_module_build_typelib): Adjust
arg_blob_size, bump major version due to this change.
* girepository/girnode.c (g_ir_node_get_full_size_internal)
(g_ir_node_build_typelib)
* girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
adjustments.
(g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
* girepository/girepository.h (GIScope): New enumeration, listing
the different possible scopes for callbacks.
* girepository/ginfo.c (g_arg_info_get_scope)
(g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
callback-related argument indices (callback scope, closure for a
callback, destroy notification for a callback).
* tests/scanner/: Added testcases for new features.
svn path=/trunk/; revision=998
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-03 Jürg Billeter <j@bitron.ch>
* giscanner/ast.py:
* giscanner/dumper.py:
* giscanner/girparser.py:
* giscanner/glibtransformer.py:
* giscanner/sourcescanner.py:
* giscanner/transformer.py:
* giscanner/xmlwriter.py:
Fix inconsistencies with PEP8
svn path=/trunk/; revision=997
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-21 Johan Dahlin <jdahlin@async.com.br>
* gir/gio-2.0.c:
Annotate transfer, direction and allow none for
g_file_load_contents_finish and
g_file_load_partial_contents_finish parameters.
svn path=/trunk/; revision=996
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-21 Johan Dahlin <jdahlin@async.com.br>
* gir/gio-2.0.c:
Annotate transfer, direction and allow none for
g_file_load_contents parameters.
svn path=/trunk/; revision=995
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we have a parameter annotated as (out), then having a ctype of
'char **' (or similar) doesn't necessarily indicate an array.
* giscanner/transformer.py: Skip array-detection logic for
(out)-annotated parameters.
* tests/scanner/annotation.h tests/scanner/annotation.c
tests/scanner/annotation-1.0-expected.gir
tests/scanner/annotation-1.0-expected.tgir: Add a test for
an (out) string parameter.
http://bugzilla.gnome.org/show_bug.cgi?id=563934
svn path=/trunk/; revision=994
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-12 Johan Dahlin <jdahlin@async.com.br>
* giscanner/dumper.py (DumpCompiler._link): Pass in
--tag=CC to libtool to avoid making libtool confused
when CC is different from gcc on some systems.
svn path=/trunk/; revision=993
|
|
|
|
| |
svn path=/trunk/; revision=992
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-10 Johan Bilien <jobi@via.ecp.fr>
Bug 563998 – Cache the GIBaseInfo for GTypes
* girepository/girepository.c (g_irepository_find_by_gtype):
add a cache of GType -> GIBaseInfo.
svn path=/trunk/; revision=991
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-09 Johan Bilien <jobi@via.ecp.fr>
Bug 562545 – Add function taking / returning GValue
* tests/everything/everything.[ch]: add a test of function taking and
returning "const GValue *"
svn path=/trunk/; revision=990
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-09 Johan Dahlin <johan@async.com.br>
* giscanner/cachestore.py (CacheStore.store): Use
shutil.move instead of os.rename, since it will
automatically fall back to copying+remove if the
src directory is on a different partition from
the dst directory.
svn path=/trunk/; revision=989
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
Bug 563742 – introspection should record the introduced version of
symbols marked with the "Since:" tag
reviewed by: Johan
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/scannerlexer.l:
* giscanner/transformer.py:
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/annotation.c (annotation_versioned):
* tests/scanner/annotation.h:
svn path=/trunk/; revision=988
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-08 Johan Dahlin <johan@async.com.br>
* giscanner/cachestore.py (_get_cachedir): Don't require
HOME to be set and if it set, don't require the
directory to exist.
svn path=/trunk/; revision=987
|
|
|
|
| |
svn path=/trunk/; revision=986
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-12-08 Johan Dahlin <johan@async.com.br>
* giscanner/cachestore.py (CacheStore.store): Dump the cache
file to a temporary file and rename it the expected filename
only when it's completely written.
This should make the cache more roboust when run in parallel,
and hopefully avoid triggering bugs in Python.
svn path=/trunk/; revision=985
|
|
|
|
| |
svn path=/trunk/; revision=984
|
|
|
|
|
|
|
|
| |
With the default YY_BUF_SIZE value, the lexer was aborting with a cryptic
error message on source files containing really long comment blocks.
Fixes bug 562971 – g-ir-scanner failure on libgpod headers
svn path=/trunk/; revision=983
|
|
|
|
| |
svn path=/trunk/; revision=982
|
|
|
|
|
|
|
| |
We expect callers to own the FieldInfo, we should not unref it. However
we should unref the type info we accessed.
svn path=/trunk/; revision=981
|
|
|
|
| |
svn path=/trunk/; revision=980
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-11-30 Johan Dahlin <jdahlin@async.com.br>
Bug 562289 – Race when removing invalid cache
* giscanner/cachestore.py:
ENOENT is mapped to a OSError, not IOError.
svn path=/trunk/; revision=979
|
|
|
|
|
|
|
|
|
|
| |
2008-11-27 Johan Dahlin <jdahlin@async.com.br>
* gir/glib-2.0.c: Add return value transfer annotation
for g_markup_escape_text.
svn path=/trunk/; revision=978
|
|
|
|
| |
svn path=/trunk/; revision=977
|
|
|
|
|
|
|
|
| |
It's easier to just use a Makefile rule and dependencies.
This corresponds with a change made to gir-repository to fix
srcdir != builddir issues.
svn path=/trunk/; revision=976
|
|
|
|
|
|
|
|
|
|
| |
2008-11-25 Johan Dahlin <jdahlin@async.com.br>
* configure.ac:
Post release version bump
svn path=/trunk/; revision=975
|
|
|
|
|
|
|
|
|
|
| |
2008-11-25 Johan Dahlin <jdahlin@async.com.br>
* NEWS:
Release 0.6.1
svn path=/trunk/; revision=973
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-11-25 Colin Walters <walters@verbum.org>
Bug 559705 – Missing association between static methods and classes
* docs/typelib-format.txt:
* girepository/ginfo.c (g_function_info_get_flags):
* girepository/girmodule.c (g_ir_module_build_typelib):
* girepository/girnode.c (g_ir_node_get_size),
(g_ir_node_build_typelib):
* girepository/girparser.c (start_function):
* girepository/gtypelib.c (g_typelib_check_sanity),
(validate_header), (validate_function_blob):
* girepository/gtypelib.h:
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/glibtransformer.py:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.h:
svn path=/trunk/; revision=972
|
|
|
|
| |
svn path=/trunk/; revision=971
|
|
|
|
|
|
|
|
|
|
| |
This change makes us stop calling g_irepository_get_default inside ginfo.c,
which won't work for non-default repositories.
Change GIBaseInfo to not only keep track of its source repository,
we hold a reference. This makes memmgt much clearer.
svn path=/trunk/; revision=970
|
|
|
|
|
|
|
| |
to execute through libtool since libtool would have
created a wrapper if it was found at link time
svn path=/trunk/; revision=969
|
|
|
|
|
|
|
|
|
| |
2008-11-25 Johan Dahlin <jdahlin@async.com.br>
* giscanner/ast.py: Define socklen_t as an alias for int32.
svn path=/trunk/; revision=968
|
|
|
|
|
|
| |
GLib currently depends on 1.9 or later, so this change seems safe.
svn path=/trunk/; revision=967
|
|
|
|
|
|
|
|
| |
* giscanner/dumper.py (_link): fix link failure when
introspecting girepository itself by ordering the command line
options better
svn path=/trunk/; revision=966
|
|
|
|
|
|
|
|
| |
* giscanner/dumper.py (_link): prefer uninstalled libraries to
installed ones so that we don't introspect an older, installed
version
svn path=/trunk/; revision=965
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-11-25 Johan Dahlin <jdahlin@async.com.br>
* giscanner/glibtransformer.py:
* tools/g-ir-scanner:
Execute the dumper program through libtool if it's installed,
so we avoid loading the installed version.
svn path=/trunk/; revision=964
|
|
|
|
|
|
|
|
|
|
| |
2008-11-24 Johan Dahlin <jdahlin@async.com.br>
* girepository/gdump.c (dump_type): Remove a warning,
be less verbose on error on fundamental types.
svn path=/trunk/; revision=963
|