Colin Walters [Wed, 6 Mar 2013 17:16:24 +0000 (12:16 -0500)]
scanner: Allow CFLAGS to contain arbitrary preprocessor commands like -include
Newer spidermonkey .pc file contains a -include argument, which
g-ir-scanner doesn't understand. Rather than us attempting to replicate
all of cpp's options, use wrapper arguments in Makefile.introspection
to pass them through.
https://bugzilla.gnome.org/show_bug.cgi?id=695182
Colin Walters [Wed, 6 Mar 2013 17:13:24 +0000 (12:13 -0500)]
tests: Remove duplicate specification of CPPFLAGS for Regress
Previous commit introduced the flaw.
Colin Walters [Tue, 5 Mar 2013 23:37:11 +0000 (18:37 -0500)]
regress: Add a test case for passing -Dquoted_string
https://bugzilla.gnome.org/show_bug.cgi?id=695182
Colin Walters [Tue, 5 Mar 2013 23:23:25 +0000 (18:23 -0500)]
Revert "gi-r-scanner: add support for raw CFLAGS flags option"
Doesn't work with arguments that have shell quotes.
This reverts commit
95b03cf87efbd4fea4b7d55601c9752cefd29bfc.
Tim Lunn [Sun, 24 Feb 2013 06:34:56 +0000 (17:34 +1100)]
gi-r-scanner: add support for raw CFLAGS flags option
gi-r-scanner chokes when gir_CFLAGS have an '-include <header>' since
this is not a recognised option. This commit adds a new --cflags option
that passes cflags directly to the spawned gcc.
https://bugzilla.gnome.org/show_bug.cgi?id=695182
Colin Walters [Tue, 5 Mar 2013 17:33:49 +0000 (12:33 -0500)]
build: Bump version and GLib requirement in preparation for release
Martin Pitt [Mon, 4 Mar 2013 16:37:48 +0000 (17:37 +0100)]
Update annotations from glib git
Martin Pitt [Mon, 4 Mar 2013 12:00:51 +0000 (13:00 +0100)]
tests: Fix memory leak in GIMarshallingTestsPropertiesObject
Free the some_strv property on finalization.
Detected by PyGObject's test_gi.TestPropertiesObject.test_strv test case.
Martin Pitt [Mon, 4 Mar 2013 10:17:59 +0000 (11:17 +0100)]
tests: Fix memory leak in gi_marshalling_tests_ghashtable_utf8_container_out
Similarly to the previous commit, we need to provide free functions for
(transfer full) returned hash tables.
Martin Pitt [Mon, 4 Mar 2013 10:14:44 +0000 (11:14 +0100)]
tests: Fix memory leak in gi_marshalling_tests_ghashtable_utf8_full_return
For the "transfer full" case we need to supply free functions for the created
hash table in gi_marshalling_tests_ghashtable_utf8_full_return().
Martin Pitt [Mon, 4 Mar 2013 09:59:22 +0000 (10:59 +0100)]
tests: Fix memory leak in gi_marshalling_tests_init_function()
In gi_marshalling_tests_init_function(), free the array string element before
removing it. This fixes the memory leak in PyGObject's
test_gi.TestArray.test_init_function test.
Colin Walters [Wed, 27 Feb 2013 16:09:30 +0000 (11:09 -0500)]
scanner: Don't re-parse includes we already found
This fixes the Pango build where it has a chain of two
--include-uninstalled.
https://bugzilla.gnome.org/show_bug.cgi?id=694593
Martin Pitt [Wed, 27 Feb 2013 14:15:35 +0000 (15:15 +0100)]
Reformat code to GNU style
This was achieved by running "indent -gnu -i2 -nut -l120" over C files which use a
different style, and manually fixing pointer declarations and modelines.
Martin Pitt [Wed, 27 Feb 2013 11:14:16 +0000 (12:14 +0100)]
Add test case for signal with a C array and length argument
By-product of https://bugzilla.gnome.org/show_bug.cgi?id=662241.
Colin Walters [Wed, 27 Feb 2013 13:46:53 +0000 (08:46 -0500)]
tests: Add missing expected files
Colin Walters [Sun, 24 Feb 2013 17:07:28 +0000 (12:07 -0500)]
scanner: internals cleanup: Move pkgconfig list to Namespace
Continuation of previous work.
Colin Walters [Sun, 24 Feb 2013 17:07:28 +0000 (12:07 -0500)]
scanner: internals cleanup: Move c_includes to Namespace
Continuation of previous work.
Colin Walters [Sun, 24 Feb 2013 16:58:57 +0000 (11:58 -0500)]
scanner: internals cleanup: Move shared libraries to Namespace
Continuing on with previous commit.
Colin Walters [Sun, 24 Feb 2013 08:55:18 +0000 (03:55 -0500)]
scanner: internals cleanup: Key more things off Namespace
The .gir format has a weird legacy where stuff like the includes are
outside of the <namespace>. But conceptually they're tied together,
so let's start reflecting this in the code.
This way we can just pass around and look at a Namespace object
instead of a 4-tuple of (namespace, includes, c_includes, pkg_config).
https://bugzilla.gnome.org/show_bug.cgi?id=694593
Colin Walters [Sat, 23 Feb 2013 16:55:56 +0000 (11:55 -0500)]
doctool: Use builtin namespace walker
Rather than hand-rolling our own. This ensures we traverse all nodes.
https://bugzilla.gnome.org/show_bug.cgi?id=694593
Colin Walters [Sun, 24 Feb 2013 14:49:28 +0000 (09:49 -0500)]
scanner: Also traverse GObject properties when walking namespace
This could be done manually by the caller, but it's better if we're
consistent here, since we do traverse fields.
https://bugzilla.gnome.org/show_bug.cgi?id=694593
Colin Walters [Sat, 23 Feb 2013 10:59:07 +0000 (05:59 -0500)]
doctool: Switch default language to C
https://bugzilla.gnome.org/show_bug.cgi?id=694593
Colin Walters [Sat, 23 Feb 2013 21:41:10 +0000 (16:41 -0500)]
scanner: Synthesize argument names if we don't see one
While this is a bit lame, we need to do something. We preserve the
warning message.
https://bugzilla.gnome.org/show_bug.cgi?id=694593
Giovanni Campagna [Fri, 22 Feb 2013 00:50:48 +0000 (01:50 +0100)]
GIRepository: add API for extending library paths
Previously we would require applications that shipped with private
typelibs to add the private path to LD_LIBRARY_PATH, or to have a
launcher binary with the right RPATH.
Now they can just call GIRepository.prepend_library_path() before
they access the module.
https://bugzilla.gnome.org/show_bug.cgi?id=694485
Chun-wei Fan [Fri, 22 Feb 2013 09:40:00 +0000 (17:40 +0800)]
test/gimarshallingtests.c: Fix build on C89 compilers
https://bugzilla.gnome.org/show_bug.cgi?id=694426
Chun-wei Fan [Fri, 22 Feb 2013 08:35:41 +0000 (16:35 +0800)]
dumper.py: Fix for Visual C++ usage
-Wno-deprecated-declarations is a compilation flag that causes builds of
introspection files to fail on Visual C++ builds, so use -wd4996 instead
when we are using Visual C++, which serves the same purpose of
-Wno-deprecated-declarations with Visual C++.
Chun-wei Fan [Fri, 22 Feb 2013 09:33:48 +0000 (17:33 +0800)]
Update def files for various test DLLs
Some functions were added or renamed in the various DLLs, so reflect these
changes there.
Martin Pitt [Wed, 20 Feb 2013 07:40:13 +0000 (08:40 +0100)]
Install utility.[hc]
These are used by foo.[hc] and required to build Regress.gir.
Martin Pitt [Wed, 20 Feb 2013 07:59:29 +0000 (08:59 +0100)]
Ship missing header files for tests/warn/ check
Colin Walters [Tue, 19 Feb 2013 22:56:32 +0000 (17:56 -0500)]
tests: Be compatible with Automake 1.11, 1.12 and 1.13, and the future, hopefully
Automake only sees it as one test now, but eh, who cares.
https://bugzilla.gnome.org/show_bug.cgi?id=694198
Colin Walters [Tue, 19 Feb 2013 16:53:18 +0000 (11:53 -0500)]
tests: Be compatible with both Automake 1.12 and 1.13
Revert to using the serial test driver, as that's the easiest path for
now, unless we generated a binary to run each warn test.
https://bugzilla.gnome.org/693539
Colin Walters [Tue, 19 Feb 2013 16:12:01 +0000 (11:12 -0500)]
Release 1.35.8
Jasper St. Pierre [Mon, 18 Feb 2013 21:33:13 +0000 (16:33 -0500)]
tests: Add RegressTestReferenceEnum to the doc tests
I really messed this one up :(
Jasper St. Pierre [Mon, 18 Feb 2013 21:29:01 +0000 (16:29 -0500)]
sourcescanner: Copy over the unsignedness as well
Jasper St. Pierre [Mon, 18 Feb 2013 21:28:36 +0000 (16:28 -0500)]
sourcescanner: Make sure to mark constants as set
This fixes complex constants.
Jasper St. Pierre [Mon, 18 Feb 2013 21:28:17 +0000 (16:28 -0500)]
sourcescanner: Fix issues with double constants in the copy
Jasper St. Pierre [Sat, 16 Feb 2013 05:43:36 +0000 (00:43 -0500)]
sourcescanner: Fix symbolic references in enum members
We need to copy the source symbols, otherwise we'll
overwrite their values. This isn't good.
https://bugzilla.gnome.org/show_bug.cgi?id=693939
Jasper St. Pierre [Sat, 16 Feb 2013 05:38:37 +0000 (00:38 -0500)]
sourcescanner: Remove unused "id" field
https://bugzilla.gnome.org/show_bug.cgi?id=693939
Jasper St. Pierre [Fri, 15 Feb 2013 13:23:10 +0000 (08:23 -0500)]
docwriter: Use the fully-qualified name for functions and methods
Jasper St. Pierre [Fri, 15 Feb 2013 11:04:11 +0000 (06:04 -0500)]
doctool: Use format_xref to format some links to pages
We don't do a full 100% conversion for all link tags, yet,
because I don't want to break too much here. This may come
later.
Jasper St. Pierre [Fri, 15 Feb 2013 11:00:51 +0000 (06:00 -0500)]
docwriter: Add support for adding additional attrs to the xref writer
Jasper St. Pierre [Fri, 15 Feb 2013 11:40:20 +0000 (06:40 -0500)]
docwriter: Clean up make_page_id
Make it use a simple recursive technique similar to format_page_name.
Jasper St. Pierre [Fri, 15 Feb 2013 21:05:24 +0000 (16:05 -0500)]
ast: Fix indentation
Jasper St. Pierre [Fri, 15 Feb 2013 11:31:49 +0000 (06:31 -0500)]
ast: Fall back to the namespace for the parent of a Node
https://bugzilla.gnome.org/show_bug.cgi?id=693876
Jasper St. Pierre [Fri, 15 Feb 2013 11:19:00 +0000 (06:19 -0500)]
ast: Rename Class.parent to parent_type
The eventual model I want to have is that .parent is the "container"
of the node. In all the cases where we don't explicitly set the parent,
this is the namespace, but having this under one field name would be
a big cleanup for the docwriter.
https://bugzilla.gnome.org/show_bug.cgi?id=693876
Jasper St. Pierre [Fri, 15 Feb 2013 11:19:58 +0000 (06:19 -0500)]
girparser: Clean up code
This makes it only use kwargs
https://bugzilla.gnome.org/show_bug.cgi?id=693876
Torsten Schönfeld [Thu, 14 Feb 2013 19:51:57 +0000 (20:51 +0100)]
girepository: Document g_enum_info_get_error_domain
https://bugzilla.gnome.org/show_bug.cgi?id=693838
Jasper St. Pierre [Fri, 15 Feb 2013 13:18:06 +0000 (08:18 -0500)]
doctool: Make sure to add "new"
Jasper St. Pierre [Fri, 15 Feb 2013 13:16:16 +0000 (08:16 -0500)]
doctool: Don't put curly braces around the construct props if there are none
Jasper St. Pierre [Fri, 15 Feb 2013 11:12:32 +0000 (06:12 -0500)]
doctool: Don't link to the namespace from the namespace page
Jasper St. Pierre [Fri, 15 Feb 2013 11:05:31 +0000 (06:05 -0500)]
doctool: Rename page_style to page_kind
Jasper St. Pierre [Fri, 15 Feb 2013 10:58:01 +0000 (05:58 -0500)]
tests: Clean up doc generation tests
We no longer have to mkdir -p
Jasper St. Pierre [Fri, 15 Feb 2013 10:49:55 +0000 (05:49 -0500)]
docmain: Create the output dir for us if it doesn't exist
Jasper St. Pierre [Fri, 15 Feb 2013 10:45:27 +0000 (05:45 -0500)]
docwriter: Don't render constants for now
Clutter has thousands of keysym constants, and until we get them
all on one page, this is just tons of tiny files that are just
noise.
Jasper St. Pierre [Fri, 15 Feb 2013 10:29:16 +0000 (05:29 -0500)]
doctool: Remove an extra <p> in the signals
Rico Tzschichholz [Fri, 15 Feb 2013 07:27:52 +0000 (08:27 +0100)]
Update annotations from glib git
Jasper St. Pierre [Fri, 15 Feb 2013 04:14:56 +0000 (23:14 -0500)]
doctool: Remove the ctype from the signal return value
WTF was this here for?
Jasper St. Pierre [Fri, 15 Feb 2013 04:14:02 +0000 (23:14 -0500)]
doctool: Add an link for signal methods
Jasper St. Pierre [Fri, 15 Feb 2013 04:04:41 +0000 (23:04 -0500)]
doctool: Fix Gjs class signature
Jasper St. Pierre [Fri, 15 Feb 2013 04:00:51 +0000 (23:00 -0500)]
doctool: Gjs doesn't have extra signal parameters
Jasper St. Pierre [Fri, 15 Feb 2013 03:47:10 +0000 (22:47 -0500)]
doctool: Fix use of <dl> tag in templates
This isn't legal Mallard
Jasper St. Pierre [Fri, 15 Feb 2013 03:28:16 +0000 (22:28 -0500)]
docwriter: Skip non-introspectable nodes in introspectable languages
Jasper St. Pierre [Fri, 15 Feb 2013 03:24:52 +0000 (22:24 -0500)]
docwriter: Introduce a base formatter for introspectable languages
Introspectable languages share a non-zero set of base semantics,
so it will become easier to implement these shared semantics here,
rather than copy-paste code.
Jasper St. Pierre [Fri, 15 Feb 2013 03:15:30 +0000 (22:15 -0500)]
docwriter: Format list types as if they are arrays
Language bindings don't actually care
Jasper St. Pierre [Fri, 15 Feb 2013 04:15:03 +0000 (23:15 -0500)]
.gitignore: Update for some testing stuff
I'm building html docs to test, and I don't want git thinking it's
untracked stuff.
Stef Walter [Wed, 13 Feb 2013 21:16:50 +0000 (22:16 +0100)]
giscanner: Suppress deprecation warnings when introspecting types
https://bugzilla.gnome.org/show_bug.cgi?id=693742
Rico Tzschichholz [Tue, 12 Feb 2013 20:02:08 +0000 (21:02 +0100)]
tests/scanner: add Regress-1.0-*-expected to EXTRA_DIST
Jasper St. Pierre [Sat, 9 Feb 2013 04:23:36 +0000 (23:23 -0500)]
ast: Allow more options in unresolved_type
If there's an unresolved type for an annotation, it's very likely
it's using a target_giname.
https://bugzilla.gnome.org/show_bug.cgi?id=693598
Jasper St. Pierre [Sun, 3 Feb 2013 11:58:53 +0000 (06:58 -0500)]
tests: Use Regress GIR for doctool
This makes us test a lot more functionality in the doc tool, and
removes the need to have a lot of different test libraries, and
different test infrastructure.
Jasper St. Pierre [Sun, 3 Feb 2013 13:15:28 +0000 (08:15 -0500)]
docwriter: Support formatting of types without c:types
This can happen for properties/signals.
Jasper St. Pierre [Sun, 3 Feb 2013 15:19:42 +0000 (10:19 -0500)]
docwriter: Support varargs in parameter names
Jasper St. Pierre [Sat, 2 Feb 2013 16:40:51 +0000 (11:40 -0500)]
docwriter: Skip lots of special kinds of parameters
Gjs ignores all of these when constructing function signatures.
Jasper St. Pierre [Sat, 2 Feb 2013 16:24:13 +0000 (11:24 -0500)]
docwriter: Define a new formatter method for getting params
This will let us gracefully skip over parameters that aren't exposed
by specific language bindings.
It also fixes a bug in the C/Python documentation where we weren't
iterating over the right parameters.
Jasper St. Pierre [Sat, 2 Feb 2013 16:07:42 +0000 (11:07 -0500)]
doctool: Don't use zip(range(L))
Instead, remove it entirely (since we don't need the index) or instead
use enumerate().
Jasper St. Pierre [Sun, 3 Feb 2013 12:31:52 +0000 (07:31 -0500)]
docmain: Support an include path for GIRs
We need this to replace the test infrastructure so it can find
Utility-1.0.gir
Colin Walters [Mon, 11 Feb 2013 16:49:31 +0000 (11:49 -0500)]
build: Enable g-ir-doctool if mako is found
Let's lift it out of the disabled-by-default ghetto.
Torsten Schönfeld [Sun, 2 Oct 2011 15:20:45 +0000 (17:20 +0200)]
scanner: remove backcompat copies more safely
Instead of modifying the namespace while we are iterating over it, which
leads to nodes not being tested, set an 'internal_skipped' property on the
function and read it in the GIR writer.
https://bugzilla.gnome.org/show_bug.cgi?id=660698
Colin Walters [Thu, 7 Feb 2013 20:25:25 +0000 (15:25 -0500)]
scanner: Fix use of undeclared variable in previous commit
Fixes the NetworkManager build.
Jasper St. Pierre [Sun, 3 Feb 2013 13:54:16 +0000 (08:54 -0500)]
transformer: Ensure that types aren't resolved if we can't find them
This ensures that things can't try to reference undefined/invalid types
without emitting warnings, and that users need to include other GIRs at
build time if they want to reference another type.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Jasper St. Pierre [Sun, 3 Feb 2013 15:07:23 +0000 (10:07 -0500)]
ast: Add a quick __repr__ to Field and Member
Nothing too specific, just something to help with debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Jasper St. Pierre [Sun, 3 Feb 2013 14:29:23 +0000 (09:29 -0500)]
annotation: Fix invalid type
I'm quite sure this is a typo rather than an intended thing. This
will gain a test and a warning soon.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Jasper St. Pierre [Sun, 3 Feb 2013 15:39:36 +0000 (10:39 -0500)]
transformer: Warn on unnamed params in declarations
These params are unannotatable and undocumentable. They really
should not be allowed.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Jasper St. Pierre [Sun, 3 Feb 2013 16:13:53 +0000 (11:13 -0500)]
warningtester: Sort the list of warnings
This means that we can simply put all warnings at the bottom,
unrelated to the order that they're emitted in the code, keeping
line numbers more stable.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Jasper St. Pierre [Sun, 3 Feb 2013 15:50:21 +0000 (10:50 -0500)]
tests: Move do_moo to warnlib
We want to warn on unnamed params in declarations to ensure that
all functions are bindable. Thus, we need to move a test containing
unnamed params to WarnLib so it can be tested.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Jasper St. Pierre [Sat, 2 Feb 2013 17:00:15 +0000 (12:00 -0500)]
tests: Move TestInherit into Regress
https://bugzilla.gnome.org/show_bug.cgi?id=693097
Jasper St. Pierre [Sat, 2 Feb 2013 16:53:53 +0000 (11:53 -0500)]
tests: Move Foo into Regress
https://bugzilla.gnome.org/show_bug.cgi?id=693097
Jasper St. Pierre [Sat, 2 Feb 2013 16:49:48 +0000 (11:49 -0500)]
tests: Move Annotation into Regress
The goal here is to have one master library for testing lots of
edge cases for GIRs rather than lots of individual libraries.
https://bugzilla.gnome.org/show_bug.cgi?id=693097
Jasper St. Pierre [Sun, 3 Feb 2013 13:24:54 +0000 (08:24 -0500)]
Update .gitignore
https://bugzilla.gnome.org/show_bug.cgi?id=693096
Jasper St. Pierre [Sun, 3 Feb 2013 13:24:19 +0000 (08:24 -0500)]
tests: Support warning tests in modern automake
https://bugzilla.gnome.org/show_bug.cgi?id=693096
Jasper St. Pierre [Sun, 3 Feb 2013 12:02:25 +0000 (07:02 -0500)]
tests: Update Makefile.am
https://bugzilla.gnome.org/show_bug.cgi?id=693096
Simon Feltman [Wed, 6 Feb 2013 20:54:14 +0000 (12:54 -0800)]
gimarshalingtests: fix spelling mistake in new vfunc object helpers
Rico Tzschichholz [Tue, 5 Feb 2013 08:12:38 +0000 (09:12 +0100)]
build: Really fix make dist
Rico Tzschichholz [Tue, 5 Feb 2013 07:44:14 +0000 (08:44 +0100)]
build: Fix make dist
Martin Pitt [Mon, 4 Feb 2013 18:08:09 +0000 (19:08 +0100)]
Update annotations from glib git
Jasper St. Pierre [Sat, 2 Feb 2013 02:15:27 +0000 (21:15 -0500)]
doctool: Rebrand mallardwriter as docwriter
We eventually want to stop using Mallard as a documentation language.
Rationale incoming when I convert all templates back to DocBook.
Jasper St. Pierre [Sat, 2 Feb 2013 02:13:16 +0000 (21:13 -0500)]
giscanner: Add a new quick hack module for scanning section files
This will be used to group symbols into documentation sections.
Jasper St. Pierre [Sat, 2 Feb 2013 01:41:53 +0000 (20:41 -0500)]
doctool: Move signal/vfunc templates to extend function.tmpl
Jasper St. Pierre [Sat, 2 Feb 2013 01:19:12 +0000 (20:19 -0500)]
doctool: Update templates to include the actual instance parameter
Rather than fabricating one with a fake name.
Jasper St. Pierre [Sat, 2 Feb 2013 01:01:56 +0000 (20:01 -0500)]
mallardwriter: Fix code for self-parameter forcing
Jasper St. Pierre [Sat, 2 Feb 2013 01:15:32 +0000 (20:15 -0500)]
doc-examples-obj: Rename @self to @obj in doc_examples_obj_method
This will be used to test Python "self" parameter forcing.