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 <firstname.lastname@example.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.
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.
Patch modified from one by Norbert Freese <email@example.com>.
…erwrite 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.
…_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.
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.
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 <firstname.lastname@example.org>