Owen Taylor [Sun, 16 Nov 2008 21:20:26 +0000 (21:20 +0000)]
Respect is_pointer in serialize_type()
Add a '*' to the serialization for the cases where we set is_pointer
in the type blob we write out depending on node->is_pointer. Don't
add the '*' in the cases where is_pointer is set or not set in a
fixed fashion.
http://bugzilla.gnome.org/show_bug.cgi?id=561087
svn path=/trunk/; revision=931
Owen Taylor [Sun, 16 Nov 2008 21:15:54 +0000 (21:15 +0000)]
Bug 560825 – Add size and alignment to typelib
Include the size and alignment of structures and unions in the typelib,
and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
* docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
to StructBlob and UnionBlob.
* girepository/ginfo.c girepository/girepository.h:
Add g_[struct|union]_get[size|alignment]().
* test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
svn path=/trunk/; revision=930
Owen Taylor [Sun, 16 Nov 2008 21:14:19 +0000 (21:14 +0000)]
Bug 552371 – implement struct field get/set
Add convenience functions g_field_info_set_field() and
g_field_info_get_field() to set and get fields based on the offsets
in GIFieldInfo.
svn path=/trunk/; revision=929
Colin Walters [Sun, 16 Nov 2008 20:58:35 +0000 (20:58 +0000)]
Bug 560241 - Out-arguments should not be marked as being pointers in all cases
svn path=/trunk/; revision=928
Colin Walters [Sun, 16 Nov 2008 20:45:30 +0000 (20:45 +0000)]
Bug 560241 - Out-arguments should not be marked as being pointers in all cases
svn path=/trunk/; revision=927
Colin Walters [Sat, 15 Nov 2008 21:43:05 +0000 (21:43 +0000)]
Changelog
svn path=/trunk/; revision=926
Johan Dahlin [Fri, 14 Nov 2008 12:07:53 +0000 (12:07 +0000)]
const char->char to avoid leaking the return value, as pointed out by Tommi
svn path=/trunk/; revision=925
Johan Dahlin [Fri, 14 Nov 2008 11:37:29 +0000 (11:37 +0000)]
Rename the int/gtype array tests. Make the return value useful, an
2008-11-14 Johan Dahlin <jdahlin@async.com.br>
* tests/everything/everything.c (test_array_int_in),
(test_array_gtype_in):
* tests/everything/everything.h:
Rename the int/gtype array tests. Make the return value
useful, an aggregation of the array input values.
svn path=/trunk/; revision=924
Johan Dahlin [Fri, 14 Nov 2008 11:23:01 +0000 (11:23 +0000)]
Rename gitesttypes.[ch] to everything.[ch]
2008-11-14 Johan Dahlin <jdahlin@async.com.br>
* tests/everything/Makefile.am:
* tests/everything/everything.c:
* tests/everything/everything.h:
* tests/everything/gitesttypes.c:
* tests/everything/gitesttypes.h:
Rename gitesttypes.[ch] to everything.[ch]
svn path=/trunk/; revision=923
Colin Walters [Fri, 14 Nov 2008 03:41:40 +0000 (03:41 +0000)]
Correct nsversion for GIRepository
svn path=/trunk/; revision=922
Colin Walters [Thu, 13 Nov 2008 23:17:57 +0000 (23:17 +0000)]
Bug 560708 – Fix zero-termination defaults for arrays with length=
svn path=/trunk/; revision=921
Colin Walters [Thu, 13 Nov 2008 22:56:15 +0000 (22:56 +0000)]
Bug 557788 - Return types for constructors in generated typelib bogus
svn path=/trunk/; revision=920
Owen Taylor [Thu, 13 Nov 2008 21:38:42 +0000 (21:38 +0000)]
girepository/girffi.c: Fix "Unexpected time for time_t" message.
svn path=/trunk/; revision=919
Johan Dahlin [Thu, 13 Nov 2008 20:25:08 +0000 (20:25 +0000)]
Add test_int_in function. Fix test_gtype_in prototype
svn path=/trunk/; revision=918
Johan Dahlin [Thu, 13 Nov 2008 20:23:47 +0000 (20:23 +0000)]
Remove stray print(s)
svn path=/trunk/; revision=916
Colin Walters [Thu, 13 Nov 2008 20:21:05 +0000 (20:21 +0000)]
Remove processing msg
svn path=/trunk/; revision=915
Colin Walters [Thu, 13 Nov 2008 20:19:27 +0000 (20:19 +0000)]
Add expected girs
svn path=/trunk/; revision=914
Colin Walters [Thu, 13 Nov 2008 20:13:39 +0000 (20:13 +0000)]
Add new files from last commit
svn path=/trunk/; revision=913
Colin Walters [Thu, 13 Nov 2008 19:57:12 +0000 (19:57 +0000)]
Bug 558436 - avoid having scanner load app code
svn path=/trunk/; revision=912
Colin Walters [Thu, 13 Nov 2008 19:57:09 +0000 (19:57 +0000)]
g_irepository_dump implementation
svn path=/trunk/; revision=911
Colin Walters [Thu, 13 Nov 2008 19:57:07 +0000 (19:57 +0000)]
Add a file to include with Makefile fragments useful for scanner invocation
svn path=/trunk/; revision=910
Tommi Komulainen [Thu, 13 Nov 2008 15:18:30 +0000 (15:18 +0000)]
Return strings in filename encoding.
2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
* tests/everything/gitesttypes.c (test_filename_return): Return
strings in filename encoding.
svn path=/trunk/; revision=909
Owen Taylor [Thu, 13 Nov 2008 15:14:09 +0000 (15:14 +0000)]
Bug 560253 - Add struture and boxed types to Everything test module
Add examples of:
Plain old data structs
Plain old data structs with nested fields
Plain old data boxed
Plain old data boxed with nested fields
More complicated boxed types with internal state
svn path=/trunk/; revision=908
Johan Dahlin [Thu, 13 Nov 2008 09:37:49 +0000 (09:37 +0000)]
Add a test of GType arrays, a la gtk_list_store_set_columns.
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* tests/everything/gitesttypes.c (test_gtype_in):
* tests/everything/gitesttypes.h:
Add a test of GType arrays, a la gtk_list_store_set_columns.
svn path=/trunk/; revision=907
Owen Taylor [Wed, 12 Nov 2008 17:17:15 +0000 (17:17 +0000)]
Bug 560419 – Cache includes when parsing
Keep track of all modules parsed within a GIrParser, and when a
module is referenced a second time, use the existing parsed copy
instead of reparsing.
svn path=/trunk/; revision=906
Owen Taylor [Wed, 12 Nov 2008 17:17:08 +0000 (17:17 +0000)]
Fix management of ParseContext.includes_modules (#560419)
Fix some trivial bugs in managing the list of include modules.
(Add to module's list twice, not initialized to NULL, not freed.)
svn path=/trunk/; revision=905
Owen Taylor [Wed, 12 Nov 2008 17:17:01 +0000 (17:17 +0000)]
Keep aliases and disguised_structures local to each module (#560419)
When parsing, keep keep a separate hash tables of aliases and
'disguised' flags for each module, and store that on the module.
After parsing an include merge the aliases/disguised flags to the
including module.
Remove 'prefix_aliases' flag and always prefix aliases/disguised
structure types when parsing; this simplifies the code considerably.
svn path=/trunk/; revision=904
Owen Taylor [Wed, 12 Nov 2008 17:16:55 +0000 (17:16 +0000)]
Fix mismatches between .gir name and 'name' attribute (#560419)
* tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
where the 'name' element of <namespace/> didn't match the filename of the
gir, an assumption that the compiler has always expected and now enforces.
svn path=/trunk/; revision=903
Owen Taylor [Wed, 12 Nov 2008 17:16:49 +0000 (17:16 +0000)]
Only allow one <namespace/> element per <repository/> (#560419)
The logic in girparser.c didn't work very well if there were multiple
<namespace/> nodes within a single <repository/> (context->namespace
was always the overall filename and not the the name specified in the
<namespace/> element for one thing; this would cause aliases to
be mis-prefixed in include modules.) Also check that the "name" in
the <namespace/> node matches the filename.
svn path=/trunk/; revision=902
Owen Taylor [Wed, 12 Nov 2008 17:16:42 +0000 (17:16 +0000)]
Add a GirParser object to hold the state of a compilation
Add a toplevel GirParser object to hold state that is global across
a compilation. Currently just holds the include path, but will
eventually also keep a cached list of parsed modules.
svn path=/trunk/; revision=901
Johan Dahlin [Wed, 12 Nov 2008 15:00:30 +0000 (15:00 +0000)]
Add a UTF-8 encoded filename too
svn path=/trunk/; revision=900
Tommi Komulainen [Wed, 12 Nov 2008 14:42:13 +0000 (14:42 +0000)]
Fix minor memory leak.
2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
* girepository/girepository.c (find_namespace_latest): Fix
minor memory leak.
svn path=/trunk/; revision=899
Tommi Komulainen [Wed, 12 Nov 2008 14:42:07 +0000 (14:42 +0000)]
use 'introspection' component for bugs
2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
* configure.ac: use 'introspection' component for bugs
svn path=/trunk/; revision=898
Johan Dahlin [Wed, 12 Nov 2008 14:17:07 +0000 (14:17 +0000)]
Add a filename return test.
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* tests/everything/gitesttypes.c (test_filename_return):
* tests/everything/gitesttypes.h:
Add a filename return test.
svn path=/trunk/; revision=897
Tommi Komulainen [Wed, 12 Nov 2008 14:15:17 +0000 (14:15 +0000)]
fix gen-gitestoffsets invocation with builddir != srcdir
2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
* tests/offsets/Makefile.am (gitestoffsets.c): fix
gen-gitestoffsets invocation with builddir != srcdir
svn path=/trunk/; revision=896
Johan Dahlin [Wed, 12 Nov 2008 12:59:01 +0000 (12:59 +0000)]
Change the element type from utf8 to filename Special case filename
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* girepository/girepository.c:
Change the element type from utf8 to filename
* girepository/girnode.c (g_ir_node_build_typelib):
Special case filename equally to utf8 here.
svn path=/trunk/; revision=895
Johan Dahlin [Wed, 12 Nov 2008 12:48:02 +0000 (12:48 +0000)]
Remove unused variables, add a dependency of girepository.ch, so when they
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* gir/Makefile.am:
Remove unused variables, add a dependency of girepository.ch, so when
they change we rebuild the gir automatically.
svn path=/trunk/; revision=894
Johan Dahlin [Wed, 12 Nov 2008 12:40:34 +0000 (12:40 +0000)]
Add a g_irepository_get_search_path, so we can access the search paths
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* girepository/girepository.c (g_irepository_get_search_path):
* girepository/girepository.h:
Add a g_irepository_get_search_path, so we can access the search
paths from runtime.
svn path=/trunk/; revision=893
Johan Dahlin [Wed, 12 Nov 2008 12:12:23 +0000 (12:12 +0000)]
Only resolve the libname to the basename of the path when passing in an absolute .la filename
svn path=/trunk/; revision=892
Johan Bilien [Wed, 12 Nov 2008 12:12:04 +0000 (12:12 +0000)]
Bug 560474 – g-ir-compiler crashes when compiling the glib gir
2008-11-12 Johan Bilien <jobi@via.ecp.fr>
Bug 560474 – g-ir-compiler crashes when compiling the glib gir
* girepository/girparser.c: avoid freeing an uninitialized pointer
svn path=/trunk/; revision=891
Johan Dahlin [Wed, 12 Nov 2008 12:04:54 +0000 (12:04 +0000)]
Add a GIRepository-2.0.gir. Change the libtool lookup slightly so we can
2008-11-12 Johan Dahlin <jdahlin@async.com.br>
* gir/Makefile.am:
* giscanner/glibtransformer.py:
* tools/g-ir-scanner:
Add a GIRepository-2.0.gir. Change the libtool lookup slightly
so we can just pass in --library=foo/bar/baz.la and the scanner
does the right thing.
Don't warn for _get_type() functions if they don't take any
parameters
svn path=/trunk/; revision=890
Owen Taylor [Tue, 11 Nov 2008 22:02:37 +0000 (22:02 +0000)]
Bug 560404 – Prefix types when resolving aliases in included modules
* girepository/girparser.c: When resolving aliases in an included
module, prefix types before looking them up.
svn path=/trunk/; revision=889
Owen Taylor [Tue, 11 Nov 2008 21:10:12 +0000 (21:10 +0000)]
Compute field offsets and overall size for object structures
2008-11-11 Owen Taylor <otaylor@redhat.com>
Compute field offsets and overall size for object structures
Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
field of type object in structure"
Do basic computation of field offsets for objects and interfaces;
this doesn't attempt to address all of the "mess" for virtual
functions described in Bug 560281.
svn path=/trunk/; revision=888
Tommi Komulainen [Tue, 11 Nov 2008 17:26:59 +0000 (17:26 +0000)]
Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
Based on patch by Johan Bilien.
* giscanner/transformer.py (_create_member, _create_parameter):
Resolve types here as well.
(_resolve_type_name_1): Try resolving using 'ctype' first since
it's least ambiguous. Fixes struct member type resolution with
similarly named types, e.g. Gdk.PangoRendererClass and
Pango.RendererClass
* tests/scanner/foo*: Add test.
svn path=/trunk/; revision=887
Owen Taylor [Tue, 11 Nov 2008 15:25:59 +0000 (15:25 +0000)]
Search provided include dirs before the default directories.
2008-11-11 Owen Taylor <otaylor@redhat.com>
* girepository/girparser.c: Search provided include dirs before
the default directories.
svn path=/trunk/; revision=885
Owen Taylor [Tue, 11 Nov 2008 15:25:51 +0000 (15:25 +0000)]
Include fully-qualified names in all error messages.
2008-11-11 Owen Taylor <otaylor@redhat.com>
* girepository/giroffsets.c: Include fully-qualified names in
all error messages.
svn path=/trunk/; revision=884
Johan Dahlin [Tue, 11 Nov 2008 13:53:00 +0000 (13:53 +0000)]
Improve warning message formatting
svn path=/trunk/; revision=883
Owen Taylor [Tue, 11 Nov 2008 13:45:13 +0000 (13:45 +0000)]
Fail gracefully with an informative error message when recursion is
2008-11-11 Owen Taylor <otaylor@redhat.com>
* girepository/giroffsets.c: Fail gracefully with an informative
error message when recursion is encountered when computing a
structure size.
svn path=/trunk/; revision=882
Johan Dahlin [Tue, 11 Nov 2008 13:21:01 +0000 (13:21 +0000)]
Reorganize and fix compiler warnings
svn path=/trunk/; revision=880
Owen Taylor [Tue, 11 Nov 2008 05:11:05 +0000 (05:11 +0000)]
girepository/girparser.c: Remove an unused variable.
svn path=/trunk/; revision=879
Owen Taylor [Tue, 11 Nov 2008 05:10:56 +0000 (05:10 +0000)]
Add tests for field offset computations
tests/offsets/offsets.h: Header file with structure definitions to test
tests/offsets/gen-gitestoffsets: Generate a C program that computes
field offsets for the structures in offsets.h two ways: using
the information from a generated typelib, and as computed by the
compiler.
We diff these two versions to test that everything is OK.
svn path=/trunk/; revision=878
Owen Taylor [Tue, 11 Nov 2008 05:10:47 +0000 (05:10 +0000)]
Remove field offsets from g-ir-generate output and test inputs
Field offsets are a) architecture dependent so they shouldn't be part
of the architecture-independent gir format which is installed in
datadir. b) Are architecture-dependent so they shouldn't be in test
expected output. Remove field offsets from girs.
(Virtual function and discriminator offsets are not removed, as they
aren't fully hooked up to the field-offset computation machinery yet.)
svn path=/trunk/; revision=877
Owen Taylor [Tue, 11 Nov 2008 05:10:36 +0000 (05:10 +0000)]
Bug 560252 - Compute field offsets before writing typelib
girnode.h: Store the total size and alignment for
GIrNodeStruct/Boxed/Union.
giroffset.c: New file implementing computation of structure
field offsets.
girnode.c: Compute structure field offsets before writing types
into the typelib.
docs/typelib-format.txt: Document that a field offset of 0xFFFF
means "unknown". Also fix description of the discriminator_offset
field for unions.
svn path=/trunk/; revision=876
Owen Taylor [Tue, 11 Nov 2008 04:33:24 +0000 (04:33 +0000)]
Add ChangeLog entries for last 3 commits
svn path=/trunk/; revision=875
Owen Taylor [Tue, 11 Nov 2008 00:48:17 +0000 (00:48 +0000)]
Bug 560250 - Fully parse included modules
For some things, like computing structure offsets to put into the typelib
we need more than just the aliases from included modules. Do a completel
parse of included modules and store in module->included_modules.
Also add g_ir_find_node() to find node information from within the
active set of modules and their includes.
svn path=/trunk/; revision=874
Owen Taylor [Tue, 11 Nov 2008 00:04:45 +0000 (00:04 +0000)]
Split g_ir_ffi_get_ffi_type() out from ginvoke.c
Extract a function to convert GITypeTag to ffi_type from the internals
of ginvoke.c. This will be useful in figure out structure alignment.
Also fix handling of gsize and time_t to be portable. (Add a check
to configure.ac to figure out the width of time_t.)
svn path=/trunk/; revision=873
Owen Taylor [Mon, 10 Nov 2008 23:58:49 +0000 (23:58 +0000)]
Bug 560248 – "disguised structures"
Certain types like GIConv and GdkAtom are pointers internally but don't
look like pointers when referenced. They have the form.
typedef struct _X *X;
Parse these as structures/records but mark them in the gir with a 'disguised'
attribute so that we know that they need special handling.
In the typelib treat them like any other structure.
svn path=/trunk/; revision=872
Jürg Billeter [Sun, 9 Nov 2008 14:33:24 +0000 (14:33 +0000)]
Write throws attribute for virtual functions, fixes bug 559703
2008-11-09 Jürg Billeter <j@bitron.ch>
* giscanner/ast.py:
* giscanner/girwriter.py:
Write throws attribute for virtual functions, fixes bug 559703
svn path=/trunk/; revision=871
Johan Dahlin [Fri, 7 Nov 2008 17:49:33 +0000 (17:49 +0000)]
Set module.__loader__ as per PEP 302.
2008-11-07 Johan Dahlin <jdahlin@async.com.br>
* giscanner/libtoolimporter.py
(LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
svn path=/trunk/; revision=870
Johan Dahlin [Fri, 7 Nov 2008 17:41:56 +0000 (17:41 +0000)]
Clear up some confusion about the second argument to find_module, it's
2008-11-07 Johan Dahlin <jdahlin@async.com.br>
* giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
up some confusion about the second argument to find_module, it's
actually the packages __path__ attribute which we can safely ignore
for our purposes.
svn path=/trunk/; revision=869
Owen Taylor [Fri, 7 Nov 2008 14:27:01 +0000 (14:27 +0000)]
Bug 559737 – Deal with continuations in macros
2008-11-07 Owen Taylor <otaylor@redhat.com>
Bug 559737 – Deal with continuations in macros
* giscanner/giscannerlexer.l: Treat continuation lines the same
as regular newlines. This makes the scanner not complain about
#define foo(x) \ <stuff> inside a C file. There's no attempt
however to handle parsing macro definitions split across lines.
svn path=/trunk/; revision=868
Johan Dahlin [Fri, 7 Nov 2008 14:09:02 +0000 (14:09 +0000)]
Handle broken cache entries, write only filesystems and running out of
2008-11-07 Johan Dahlin <jdahlin@async.com.br>
* giscanner/cachestore.py:
Handle broken cache entries, write only filesystems and
running out of diskspace.
svn path=/trunk/; revision=867
Owen Taylor [Fri, 7 Nov 2008 13:23:17 +0000 (13:23 +0000)]
Set current_filename before lexing the file so error messages are reported
2008-11-07 Owen Taylor <otaylor@redhat.com>
* giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
Set current_filename before lexing the file so error messages
are reported in the right file.
svn path=/trunk/; revision=866
Colin Walters [Thu, 6 Nov 2008 23:31:19 +0000 (23:31 +0000)]
Add some tests for strv
svn path=/trunk/; revision=865
Colin Walters [Wed, 5 Nov 2008 22:09:44 +0000 (22:09 +0000)]
Don't use nested scope local variable for error
svn path=/trunk/; revision=864
Colin Walters [Wed, 5 Nov 2008 20:18:08 +0000 (20:18 +0000)]
Avoid static 256 char buf which we manipulate hackily
svn path=/trunk/; revision=863
Johan Dahlin [Tue, 4 Nov 2008 13:41:25 +0000 (13:41 +0000)]
Relicense the giscanner library under LGPLv2+. This has been approved by
2008-11-04 Johan Dahlin <jdahlin@async.com.br>
* giscanner/__init__.py:
* giscanner/ast.py:
* giscanner/cachestore.py:
* giscanner/cgobject.py:
* giscanner/girparser.py:
* giscanner/girwriter.py:
* giscanner/giscannermodule.c:
* giscanner/glibast.py:
* giscanner/glibtransformer.py:
* giscanner/libtoolimporter.py:
* giscanner/minixpath.py:
* giscanner/odict.py:
* giscanner/sourcescanner.c:
* giscanner/sourcescanner.h:
* giscanner/sourcescanner.py:
* giscanner/transformer.py:
* giscanner/utils.py:
* giscanner/xmlwriter.py:
* COPYING:
Relicense the giscanner library under LGPLv2+.
This has been approved by all contributors.
svn path=/trunk/; revision=862
Johan Dahlin [Sun, 2 Nov 2008 00:11:32 +0000 (00:11 +0000)]
If any of the path parts in sys.path contains lib64, use lib64 as a libdir instead of lib
svn path=/trunk/; revision=861
Owen Taylor [Sat, 1 Nov 2008 23:01:21 +0000 (23:01 +0000)]
Bug 558848 giparser.py: shared library should be optional
2008-11-01 Owen Taylor <otaylor@redhat.com>
Bug 558848 giparser.py: shared library should be optional
When parsing a .gir, allow the shared-library attribute
of <namespace/> to be missing: this corresponds to the handling
in libgirepository and elsewhere.
svn path=/trunk/; revision=860
Tommi Komulainen [Sat, 1 Nov 2008 18:21:55 +0000 (18:21 +0000)]
Bug 557898 – Fails to build on OSX 10.4
2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
* configure.ac: Check for $shrext_cmds that should be implicitly
available if you're using libtool >= 2.0. If undefined, call
libtool --config explicitly to get its value.
* girepository/gtypelib.c: Remove special case for (non-)Darwin
systems as unneeded.
svn path=/trunk/; revision=859
Colin Walters [Fri, 31 Oct 2008 22:34:22 +0000 (22:34 +0000)]
Clarify licensing status
svn path=/trunk/; revision=858
Johan Dahlin [Fri, 31 Oct 2008 21:27:47 +0000 (21:27 +0000)]
Remove trailing whitespace
svn path=/trunk/; revision=857
Johan Dahlin [Fri, 31 Oct 2008 21:19:11 +0000 (21:19 +0000)]
Post release version bump
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* configure.ac: Post release version bump
svn path=/trunk/; revision=856
Johan Dahlin [Fri, 31 Oct 2008 21:07:58 +0000 (21:07 +0000)]
=== 0.6.0 ===
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* NEWS:
* configure.ac:
* docs/release-checklist.txt:
0.6.0
svn path=/trunk/; revision=854
Johan Dahlin [Fri, 31 Oct 2008 19:59:40 +0000 (19:59 +0000)]
add an upload-release target Release process documentation
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* Makefile.am: add an upload-release target
* docs/release-checklist.txt:
Release process documentation
svn path=/trunk/; revision=853
Colin Walters [Fri, 31 Oct 2008 19:42:33 +0000 (19:42 +0000)]
Bug 558109 – _g_typelib_init fails to find shared libraries
svn path=/trunk/; revision=852
Johan Dahlin [Fri, 31 Oct 2008 17:09:17 +0000 (17:09 +0000)]
Remove whitespace
svn path=/trunk/; revision=851
Johan Dahlin [Fri, 31 Oct 2008 13:27:28 +0000 (13:27 +0000)]
Document the renaming options.
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* docs/g-ir-scanner.1:
Document the renaming options.
svn path=/trunk/; revision=850
Tommi Komulainen [Fri, 31 Oct 2008 10:54:32 +0000 (10:54 +0000)]
List in-tree libraries first in LDADD / LIBADD
2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
* giscanner/Makefile.am:
* tests/invoke/Makefile.am:
* tests/repository/Makefile.am: List in-tree libraries first in
LDADD / LIBADD. If installed library is listed first, the
resulting binary will prefer installed version to one in .libs,
possibly making 'make check' behave strangely.
svn path=/trunk/; revision=849
Johan Dahlin [Thu, 30 Oct 2008 22:08:30 +0000 (22:08 +0000)]
Add --nsversion docs
svn path=/trunk/; revision=848
Tommi Komulainen [Thu, 30 Oct 2008 21:52:12 +0000 (21:52 +0000)]
map 'id' (ObjC) to 'any' type
2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
* giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
gir-repository from choking with gdk/quartz
svn path=/trunk/; revision=847
Johan Dahlin [Thu, 30 Oct 2008 20:42:30 +0000 (20:42 +0000)]
Write a C version of the xml namespace formatter. Saves 15% of the time it
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/giscannermodule.c (calc_attrs_length),
(pygi_collect_attributes):
* giscanner/xmlwriter.py:
Write a C version of the xml namespace formatter.
Saves 15% of the time it takes to create a gtk gir.
svn path=/trunk/; revision=846
Johan Dahlin [Thu, 30 Oct 2008 20:23:55 +0000 (20:23 +0000)]
Abstract attribute formatting to a function external to the XMLWriter
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/xmlwriter.py: Abstract attribute formatting
to a function external to the XMLWriter class.
svn path=/trunk/; revision=845
Johan Dahlin [Thu, 30 Oct 2008 18:45:54 +0000 (18:45 +0000)]
Parse __signed__ as signed
svn path=/trunk/; revision=844
Johan Dahlin [Thu, 30 Oct 2008 17:48:45 +0000 (17:48 +0000)]
Parse and discard __typeof and __attribute.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/scannerlexer.l:
Parse and discard __typeof and __attribute.
svn path=/trunk/; revision=843
Johan Dahlin [Thu, 30 Oct 2008 17:12:51 +0000 (17:12 +0000)]
Remove arguments from the constructor, move them to separate accessors.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/girparser.py:
Remove arguments from the constructor, move them to
separate accessors. Add a new parse_tree method
which takes an element tree instance.
* tools/g-ir-scanner:
Update callsite for this
* giscanner/Makefile.am:
* giscanner/cachestore.py:
* giscanner/transformer.py:
Cache the include parsing. Saves ~25% time when
creating vte (which includes everything up to gtk+).
svn path=/trunk/; revision=842
Colin Walters [Thu, 30 Oct 2008 16:55:56 +0000 (16:55 +0000)]
Don't reparse includes we've already processed
svn path=/trunk/; revision=841
Johan Dahlin [Thu, 30 Oct 2008 15:40:42 +0000 (15:40 +0000)]
Look in XDG_DATA_DIR/gir, really.
svn path=/trunk/; revision=840
Johan Dahlin [Thu, 30 Oct 2008 15:37:19 +0000 (15:37 +0000)]
Rewrap and reorder includes
svn path=/trunk/; revision=839
Johan Dahlin [Thu, 30 Oct 2008 14:08:29 +0000 (14:08 +0000)]
Avoid parsing parameters, types etc when parsing includes. Should speed up
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/girparser.py:
* giscanner/transformer.py:
Avoid parsing parameters, types etc when parsing
includes. Should speed up include parsing a bit.
svn path=/trunk/; revision=838
Johan Dahlin [Thu, 30 Oct 2008 14:00:17 +0000 (14:00 +0000)]
Avoid big if/else and use a dispatch table like approach.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/girparser.py:
Avoid big if/else and use a dispatch table like
approach.
svn path=/trunk/; revision=837
Johan Dahlin [Thu, 30 Oct 2008 13:37:55 +0000 (13:37 +0000)]
Clean up include parsing and registration.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/transformer.py:
Clean up include parsing and registration.
svn path=/trunk/; revision=836
Johan Dahlin [Thu, 30 Oct 2008 13:37:02 +0000 (13:37 +0000)]
Run invoke & repository tests at last
svn path=/trunk/; revision=835
Johan Dahlin [Thu, 30 Oct 2008 13:27:38 +0000 (13:27 +0000)]
Clean up imports
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/transformer.py:
Clean up imports
svn path=/trunk/; revision=834
Johan Dahlin [Thu, 30 Oct 2008 02:07:43 +0000 (02:07 +0000)]
Bug 558383 – builddir != srcdir build fails if giscanner python module
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
* gir/Makefile.am:
construct PYTHONPATH just once
* tests/everything/Makefile.am:
* tests/scanner/Makefile.am:
add $(top_srcdir) to PYTHONPATH to
handle builddir != srcdir
* giscanner/libtoolimporter.py:
* giscanner/sourcescanner.py:
Make the libtoolimporter work when distchecking too.
Mostly based on patch by Tommi Komulainen
svn path=/trunk/; revision=833
Owen Taylor [Wed, 29 Oct 2008 20:36:51 +0000 (20:36 +0000)]
If a filename of an existing file is passed to --library, hunt for it
2008-10-29 Owen Taylor <otaylor@redhat.com>
* giscanner/glibtransformer.py: If a filename of an existing
file is passed to --library, hunt for it directly, rather than
searching for a corresponding library.
svn path=/trunk/; revision=832
Johan Dahlin [Wed, 29 Oct 2008 13:12:27 +0000 (13:12 +0000)]
Remove test/types
svn path=/trunk/; revision=831
Johan Dahlin [Wed, 29 Oct 2008 13:08:44 +0000 (13:08 +0000)]
Clean up the libtool importer a bit. Add a context so we can use it
2008-10-29 Johan Dahlin <jdahlin@async.com.br>
* giscanner/libtoolimporter.py:
* giscanner/sourcescanner.py:
Clean up the libtool importer a bit. Add a context so we
can use it through a with statement.
Don't just look in the current directory, look in the whole
sys.path.
svn path=/trunk/; revision=830
Tommi Komulainen [Wed, 29 Oct 2008 11:24:32 +0000 (11:24 +0000)]
ChangeLog
svn path=/trunk/; revision=828
Tommi Komulainen [Wed, 29 Oct 2008 11:24:23 +0000 (11:24 +0000)]
explicitly link libtool versioning with typelib versioning
* tests/everything/Makefile.am: explicitly link libtool
versioning with typelib versioning with variables
svn path=/trunk/; revision=827