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.
Jasper St. Pierre [Sat, 2 Feb 2013 01:10:06 +0000 (20:10 -0500)]
ast: Allow lookup of the instance parameter by name
This will be used by the doctool to properly identify the
instance parameter.
Jasper St. Pierre [Sat, 2 Feb 2013 01:08:34 +0000 (20:08 -0500)]
doc-examples-obj: Fix documentation for doc_examples_obj_method
We need to properly document the first argument, here. We don't
actually iterate over the instance parameter yet, so this will
just affect the documentation for @first_arg.
Jasper St. Pierre [Sat, 2 Feb 2013 01:01:39 +0000 (20:01 -0500)]
ast: Add a new all_parameters property to Callable
This will be used by the doctool to show the self parameter in C
and Python docs.
Jasper St. Pierre [Fri, 1 Feb 2013 06:11:23 +0000 (01:11 -0500)]
doctool: Switch to UI v1.0
This is to shut yelp up about experimental UI and expanded.
Jasper St. Pierre [Fri, 1 Feb 2013 04:40:20 +0000 (23:40 -0500)]
doctool: Initial import of a Gjs language that we support
Copy/pasted from Python.
Jasper St. Pierre [Fri, 1 Feb 2013 05:17:39 +0000 (00:17 -0500)]
ast: Make sure to export c:type for signals and properties
Jasper St. Pierre [Fri, 1 Feb 2013 04:25:26 +0000 (23:25 -0500)]
mallardwriter: Clean up node filtering
Instead of checking strings, pass this to the Formatter, which is
really mostly about language semantics now.
Jasper St. Pierre [Fri, 1 Feb 2013 00:19:28 +0000 (19:19 -0500)]
mallardwriter: Don't set content for links
These are set automatically.
Jasper St. Pierre [Fri, 1 Feb 2013 00:10:11 +0000 (19:10 -0500)]
mallardwriter: Use xmlwriter for xrefs
Jasper St. Pierre [Thu, 31 Jan 2013 23:58:13 +0000 (18:58 -0500)]
doctool: Use a base template for all node kinds that make sense
Jasper St. Pierre [Thu, 31 Jan 2013 23:44:09 +0000 (18:44 -0500)]
doctool: Rename templates to exclude mallard/the language
As templates are in their own directory and segregated into language
already, this is sort of repeating the issue. At the same time, always
explicitly use relative ("./") or absolute ("/") lookups for templates.
We want to eventually have base templates to share between languages, so
to do so without namespace clashes makes sense.
Jasper St. Pierre [Thu, 31 Jan 2013 23:35:01 +0000 (18:35 -0500)]
mallardwriter: Use lookup_typenode to look up a Type node
Functions that do what we want? What a concept!
Jasper St. Pierre [Thu, 31 Jan 2013 23:23:46 +0000 (18:23 -0500)]
mallardwriter: Simply use the parent page name for nested pages
If we have a parent page, we might as well use it so that parent
names are consistent across pages.
Jasper St. Pierre [Thu, 31 Jan 2013 23:23:07 +0000 (18:23 -0500)]
mallardwriter: Don't use function symbols for vfuncs/signals
Jasper St. Pierre [Thu, 31 Jan 2013 23:15:35 +0000 (18:15 -0500)]
doctool: Use definition lists instead of tables
Jasper St. Pierre [Thu, 31 Jan 2013 17:52:23 +0000 (12:52 -0500)]
doctool: Define a standard order of items for all pages
Jasper St. Pierre [Thu, 31 Jan 2013 16:46:13 +0000 (11:46 -0500)]
doctool: Use a base template for all pages
Jasper St. Pierre [Fri, 1 Feb 2013 00:25:43 +0000 (19:25 -0500)]
tests: Don't remove the built doctool directories if we're done
Jasper St. Pierre [Thu, 31 Jan 2013 15:52:53 +0000 (10:52 -0500)]
tests: Ignore whitespace differences in template comparisons
Adding more Mako code to reduce duplicate code will add newlines to
the output. Ignore these.
Jasper St. Pierre [Thu, 31 Jan 2013 16:33:57 +0000 (11:33 -0500)]
doctool: Use a standard title for both links and for page titles
Jasper St. Pierre [Thu, 31 Jan 2013 16:32:16 +0000 (11:32 -0500)]
mallardwriter: Fix format_page_name for Namespace
Namespace doesn't have a namespace member.
Jasper St. Pierre [Thu, 31 Jan 2013 16:14:19 +0000 (11:14 -0500)]
doctool: Switch to a computed page_style for all page templates
This is a quick cleanup before we inherit from a common template
for all pages.
Jasper St. Pierre [Thu, 31 Jan 2013 15:54:20 +0000 (10:54 -0500)]
mallardwriter: Remove unused import
Jasper St. Pierre [Wed, 30 Jan 2013 15:07:59 +0000 (10:07 -0500)]
mallardwriter: Parse %ENUM_FIELDs
Jasper St. Pierre [Wed, 30 Jan 2013 14:50:43 +0000 (09:50 -0500)]
mallardwriter: Use the same code to lookup fundamentals as the rest
Also, put <code> blocks around fundamentals.
Jasper St. Pierre [Thu, 31 Jan 2013 17:58:15 +0000 (12:58 -0500)]
mallardwriter: Use mkdtemp
We should not litter /tmp
Jasper St. Pierre [Thu, 31 Jan 2013 14:36:07 +0000 (09:36 -0500)]
girparser: Serialize and read back the instance_parameter
g-ir-doc-tool wants to use the instance parameter to read docs
and the parameter name, so it needs to be shuttled through the
GIR.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Fri, 1 Feb 2013 04:02:02 +0000 (23:02 -0500)]
girparser: Clean up passthrough handling
Instead of remembering to have to set unknown_depth, smarten up
state_switch to do it for us.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Fri, 1 Feb 2013 03:59:23 +0000 (22:59 -0500)]
girparser: Move <doc> handling to passthrough
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Fri, 1 Feb 2013 02:42:32 +0000 (21:42 -0500)]
giscanner: Apply standard annotations to constant values
While there's no particular reason I need to do this, there
really isn't any reason to not do this, and it helps with doctool
or whatever in the future if we want to document when a constant
showed up. g-ir-compiler also keeps track of constant deprecations,
so this fixes constants not ever being deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Wed, 30 Jan 2013 15:02:41 +0000 (10:02 -0500)]
ast: Track enum/bitfield member parents
We need this for the doctool so that we can link to an enum
definition when we reference one of the member values.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Wed, 30 Jan 2013 14:57:18 +0000 (09:57 -0500)]
ast: Track enum members by symbol
The doctool eventually wants to parse inline references to
constant values like %GTK_TEXT_DIRECTION_LTR, so we need to
have a way to look up the original symbol value for an enum
member.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Wed, 9 Jan 2013 19:26:26 +0000 (14:26 -0500)]
tests: %NULL-terminated is wrong
This translates into "None-terminated" in Python, which is bad.
We should eventually strip this phrase entirely for certain languages
with a prefilter.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Wed, 30 Jan 2013 15:09:55 +0000 (10:09 -0500)]
Remove the insane pre-commit hook
I'm sick and tired of this.
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Wed, 30 Jan 2013 15:52:20 +0000 (10:52 -0500)]
Update .gitignore
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Jasper St. Pierre [Wed, 30 Jan 2013 14:45:48 +0000 (09:45 -0500)]
girparser: Remove unused method
pylint was complaining about the non-existent instance member,
self._filename
https://bugzilla.gnome.org/show_bug.cgi?id=693040
Simon Feltman [Wed, 2 Jan 2013 10:14:08 +0000 (02:14 -0800)]
gimarshallingtests: Add test helpers for marshaling of object arguments
Add a number of vfuncs and methods which can be used for testing
marshaling of objects with different combinations of ownership
transference. An important part of these test vfuncs and methods is
they do not pass object returns and arguments through them. Instead
the methods return reference counts and floating attributes. This allows
isolation and ensures any problem with round trip object marshaling
does not obscure what should be tested from the perspective of C as the
caller of a vfunc. Tests and vfuncs can then be written in any language
with gi bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=687522
Chun-wei Fan [Tue, 22 Jan 2013 04:59:26 +0000 (12:59 +0800)]
Visual C++ builds: "Install" gdump.c
The gdump.c source/data file was missed from the "install" process, which
is required for a proper installation of G-I. Make up for that.
Chun-wei Fan [Mon, 21 Jan 2013 06:04:24 +0000 (14:04 +0800)]
build/win32/gengir.bat: Process the bundled .gir files
This will compile the .typelib files for FreeType, GL and libxml2, and
copy the these .gir and their resulting .typelib files to the appropriate
folder to prepare for the "install" phase.
Note that the ones that aren't normally used in Windows are not processed.
Chun-wei Fan [Mon, 21 Jan 2013 03:51:20 +0000 (11:51 +0800)]
Update Visual C++ README.txt files.
Be a little bit more clear on how certain environmental variables are to
be set.
Chun-wei Fan [Mon, 21 Jan 2013 03:41:21 +0000 (11:41 +0800)]
Fix _giscanner Python module Visual C++ projects
We need to force-include io.h as there is no longer a prototype for
isatty() in the generated scannerlexer.c source file, which broke the
build. (possibly due to a flex program or calling change/update?)
Chun-wei Fan [Mon, 21 Jan 2013 02:53:42 +0000 (10:53 +0800)]
Visual C++ 2010 projects: Prepare for VS 2012 support
Add the PlatformToolset tag to the project configs so that we can use
a simple script later to the autotools files to copy the projects and
change the value of that tag (v100 -> v110, and other simple changes)
in order that we can quickly provide and maintain support for Visual
Studio 2012 with minimal effort.
Note that at the moment G-I does not yet support the API/SDK requirements
for Windows 8 Modern UI (formerly known as Metro), but this paves the very
initial step.