| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Add type tags for short and ushort, plus all of the requisite code needed
to utilize them in libgirepository.
Add support in the scanner's AST files.
Add test functions to the everything library and the expected gir file.
gtypelib.c constant validation fixed by Colin Walters <walters@verbum.org>
|
|
|
|
|
| |
Since we're not writing out the zero-terminated flag now when
we shouldn't, update the tests too.
|
|
|
|
|
| |
Rationalize our setting of the zero_terminated flag; we shouldn't
set it if the gir doesn't say to.
|
| |
|
|
|
|
|
| |
and that it uses the uninstalled version.
Fixes make check (when libeverything.so.1 was uninstalled).
|
|
|
|
|
| |
As discussed in bug 585908, we also rename CHECKGIRS and EXPECTEDGIRS to
match the naming in tests/scanner/Makefile.am.
|
| |
|
| |
|
|
|
|
| |
changes.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
You can now specify a nested parameterized type in annotations as
(for example):
@param: (type GLib.HashTable<utf8,GLib.HashTable<utf,utf>>)
or
@param: (element-type utf8 GLib.HashTable<utf,utf>)
New test functions for the Everything typelib show how it works.
|
|
|
|
|
|
|
|
|
|
|
| |
When ./configure --prefix $HOME/some/where is used gobject-introspection
will happily install the files into $HOME/some/where/data/gir-1.0 but
it will refuse to find them. Apply the same trick as in
girepository/girepository.c:init_globals to find the gir files.
Unifiy the name gir-1.0 in GIR_SUFFIX and use it throughout the
project, introduce GIR_DIR which holds the path to the gir files and
update girparser and transformer.py to look into this path.
|
|
|
|
| |
Printing to stdout is legitimate.
|
|
|
|
| |
No need to list them twice, and it confuses/breaks some install tools.
|
|
|
|
| |
Patch modified from one by Norbert Freese <nf2.email@gmail.com>.
|
|
|
|
|
| |
This avoids having processes with the typelibs currently open exploding
immediately.
|
|
|
|
|
|
|
|
|
| |
This patch fixes our default handling of char **. We add Return
node types as a case where we test for array handling.
Remove the hardcoded assumption of array = "no transfer", just
use the separate Parameter/Return cases. This change causes
inout char ** to be transfer="full", but that seems more correct.
|
|
|
|
|
|
|
|
|
| |
test_strv_out_container
We need a test case for a plain unannotated char ** return value, which
should be an array.
Keep the old annotated test as a test case for the container transfer.
|
|
|
|
| |
We need to link with gobject.
|
|
|
|
|
| |
Everything isn't a test for quite a while now, it's a public library.
So move it to gir/.
|
|
|
|
| |
We should be testing the Everything library as well.
|
|
|
|
|
|
| |
The GLclampf type is missing from the GL definitions.
http://bugzilla.gnome.org/show_bug.cgi?id=584816
|
|
|
|
|
| |
These annotations match those for gtk_init(), which takes the same
types of arguments.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
pep8.py:input_file() normally returns the number of errors found in a
given file, but it returns an empty dict if the file is excluded. Change
it to return 0 instead.
config.py is auto-generated with a prefix that may be longer than
80 characters. Exclude config.py in the pep8.py check. This fixes
4042.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously we tried to guess what the "underscore version" of a class name
would be, but for classes like NMSetting8021x we'd guess "nm_setting8021x"
instead of "nm_setting_802_1x". All such guesses are subject to error:
instead let's try to use the prefix of the _get_type() method instead, and
only guess if that doesn't work.
We do this for both class names and when detecting methods. An additional
type with a "non-standard" underscored version (TestWi8021x) added to the
everything.[ch] test suite to test proper conversion.
GdkWindow and GObject have unusual get_type methods; add special quirks
to handle these (at least until the methods are renamed upstream).
(Slightly modified for PEP8 compliance by Colin Walters)
Signed-off-by: Colin Walters <walters@verbum.org>
|
|
|
|
|
|
| |
The enumeration values cited here were out of date. Rewrite to eliminate
the explicit mention of the enumeration value, to prevent it from
drifting out of date again in the future.
|
| |
|
|
|
|
|
|
| |
We weren't checking the length of the input list, and we were erroneously
comparing every element in the test sequence against the *first* element
of the passed-in list.
|
| |
|
| |
|
|
|
|
| |
We needed to tweak a couple of the tests for correctness.
|
|
|
|
|
|
| |
As originally implemented, this annotation was only used for method
overloading (argument signature polymorphism). Allow it to be used to
clean up historically poorly-named methods as well.
|
| |
|
|
|
|
|
|
| |
Right now these annotations don't work; (out) is for callee-allocates.
For more information see
http://bugzilla.gnome.org/show_bug.cgi?id=573314
|
| |
|
| |
|
|
|
|
|
| |
g_app_info_launch and g_app_info_launch_uris needed element type annotations
for their GList arguments.
|
|
|
|
|
| |
Zero length arrays are a GNU C extension, so this way we don't
fail on non-GCC.
|
|
|
|
| |
Also plug a leak; girname was previously only freed on error.
|
|
|
|
| |
Remove support for (scope object) as it lacks a real use case.
|
| |
|
| |
|
|
|
|
|
| |
- Make the destroy-notfied callback test harder by retaining the
callbacks until test_callback_thaw_notifications() is called.
|
|
|
|
|
|
| |
<ptitjes@free.fr>
Signed-off-by: Colin Walters <walters@verbum.org>
|
|
|
|
| |
and other make distcheck fixes.
|
| |
|