summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update the NEWS for 2.581.57.2Emmanuele Bassi2018-08-061-0/+33
|
* gir: Update annotations from glib git masterRico Tzschichholz2018-08-032-11/+11
|
* girnode: remove wrongly added g_assert_not_reached(). Fixes #218Christoph Reiter2018-08-031-1/+1
| | | | | Added in 9535fc48. After the switch it calls _g_ir_node_build_typelib() again handling the other types.
* Merge branch 'warn-flags' into 'master'Christoph Reiter2018-08-0230-102/+150
|\ | | | | | | | | autotools: add various compiler warning flags and enable -Werror for CI See merge request GNOME/gobject-introspection!56
| * girepository: port from g_type_class_add_private() to G_ADD_PRIVATE()Christoph Reiter2018-07-302-7/+2
| | | | | | | | This lets us enable -Wdeprecated-declarations
| * build: enable -Wredundant-declsChristoph Reiter2018-07-293-12/+2
| | | | | | | | | | The ffi decls were added in cbdd9ee09e367e4dd to work around broken ffi headers. Let's assume this is fixed now.
| * build: enable -Wswitch-defaultChristoph Reiter2018-07-298-2/+26
| | | | | | | | | | | | | | In case the surrounding code handles missing cases break, otherwise add a g_assert_not_reached(). The generated parser code triggers this as well, so disable it there only.
| * build: enable -Wtype-limitsChristoph Reiter2018-07-292-2/+2
| | | | | | | | hashv is unsigned, no need to check if >= 0
| * build: enable -Wimplicit-fallthroughChristoph Reiter2018-07-292-2/+1
| | | | | | | | and fix a missplaced break
| * build: enable -Wsign-compareChristoph Reiter2018-07-292-2/+6
| | | | | | | | | | Except for the generated lexer code which triggers it with the version of flex used in our CI.
| * build: enable -WshadowChristoph Reiter2018-07-296-26/+27
| |
| * g-ir-generate: fix missing error handling for command line parsingChristoph Reiter2018-07-291-1/+6
| | | | | | | | The error arg was used but the result never checked.
| * build: enable -Wcast-function-typeChristoph Reiter2018-07-297-11/+23
| | | | | | | | | | | | | | | | Where it's easy add dummy args to match the cast; where the target is a subset just prevent the warning with a cast to void*. Provide a real copy function for the boxed type code in regress_foo. This code is never executed afaics, but why not.
| * build: enable -Wsuggest-attribute=formatChristoph Reiter2018-07-292-1/+4
| | | | | | | | And use G_GNUC_PRINTF for the suggested function.
| * build: enable -Wdouble-promotionChristoph Reiter2018-07-292-2/+2
| |
| * build: enable -Wincompatible-pointer-typesChristoph Reiter2018-07-293-3/+2
| |
| * build: enable -Wdiscarded-qualifiersChristoph Reiter2018-07-296-9/+13
| | | | | | | | | | Except for the Python module because nothing in the CPython API is marked const and we'd have to cast everywhere.
| * autotools: start using AX_COMPILER_FLAGS, enable -Werror on CIChristoph Reiter2018-07-2912-39/+51
|/ | | | | | | | | * This adds a new dependency on autoconf-archive. * Pass WARN_CFLAGS/WARN_LDFLAGS/WARN_SCANNERFLAGS to everything we control the source of * Disables all warning flags which make the build error out for now, we'll re-enable them in followup commits. * AX_COMPILER_FLAGS is used with the release flag always on so we don't get -Werror by default.
* gimarshallingtests: Fix g_boxed_free usagePhilip Chimento2018-07-281-1/+5
| | | | | | | I made this edit to Simon's commit to resolve a merge conflict, but I messed it up. Revert to what it was before. See #113.
* Factor out pkg-config functionality to a separate module.Tomasz Miąsko2018-07-288-36/+197
| | | | | | | | | | | | | | Functional changes: * Consistently check that return code from pkg-config is zero. * Use shell word splitting rules to process pkg-config output to match behaviour obtained by running `cc program.cc $(pkg-config --cflags ...)`. Fixes issue #171 . * Use user preferred encoding to process output from pkg-config on Python 3. Python 2 behaviour defaults to using ascii encoding as before. edit creiter: still ignore pkg-config errors by default for now as we depend on it when glib is a subproject.
* ccompiler: simplify check_is_msvc()Christoph Reiter2018-07-281-4/+1
| | | | as was pointed out in !12
* Merge branch '113-fix-memory-leaks' into 'master'Philip Chimento2018-07-282-18/+19
|\ | | | | | | | | | | | | Resolve "Memory leaks in GI regress and marshalling tests property setters" Closes #113 See merge request GNOME/gobject-introspection!55
| * gimarshallingtests: Don't leak properties in destructionSimon Feltman2018-07-271-9/+6
| | | | | | | | | | | | | | | | | | Clear strv, boxed_struct, variant, boxed_glist, and object properties during destruction. This fixes trivial memory leaks found in the PyGObject tests suite. https://bugzilla.gnome.org/show_bug.cgi?id=735013 Closes #113
| * regress: Don't leak in property setter and destructorSimon Feltman2018-07-271-0/+10
| | | | | | | | | | | | | | | | | | | | | | Clear the string property of RegressTestObj prior to setting within the property setter. Make sure the linked list, hash table, and string properties are cleared during destruction. This fixes trivial memory leaks found with the PyGObject test suite. https://bugzilla.gnome.org/show_bug.cgi?id=735013 Closes #113
| * regress: Use g_list_free_full and g_list_copy_deepSimon Feltman2018-07-271-9/+3
|/ | | | | | | | Cleanup which replaces manual loop implementation with API calls when setting the linked list property. https://bugzilla.gnome.org/show_bug.cgi?id=735013 Closes #113
* tests: add .exe extension when calling the offset test binaryChristoph Reiter2018-07-271-1/+2
| | | | autotools is picky on Windows and errors out otherwise
* python.m4: don't pass redundant --libs to python-configChristoph Reiter2018-07-271-1/+1
| | | | | | --libs is a subset of --ldflags which is already passed. This works around a msys2 bug in python-config: https://github.com/Alexpux/MINGW-packages/pull/4118
* scanner: remove some unnecessary Windows includesChristoph Reiter2018-07-271-9/+1
|
* scanner: fix the return type for GetFullPathNameAChristoph Reiter2018-07-271-1/+1
| | | | It's DWORD and gcc complained about defaulting to int.
* scanner: remove use of USE_WINDOWSChristoph Reiter2018-07-272-10/+0
| | | | It was never defined because G_OS_WIN32 was used before the glib include.
* scanner: remove hacks to make mingw g-i work with msvc PythonChristoph Reiter2018-07-271-84/+0
| | | | | | | | | From what I understand this was to support a g-i built with mingw using a different msvcrt to work with the official CPython built with msvc. Now that we can build with meson there is no need for this anymore as far as I can see. Just remove the code. Please file a bug if this affects you.
* xmlwriter: move collect_attributes() back to a Python implementationChristoph Reiter2018-07-273-167/+50
| | | | | | | | | This reverts f345916405d94829696985 and related. The commit states that both versions are about the same in performance, but the C version is more code and harder to maintain. It also states that the behaviour re invalid control characters is better with the C version which produces entities. But those make any Python xml parser fail, which given that most of our tooling is Python, doesn't seem better to me, see #135.
* tests: add some basic tests for collect_attributes() and build_xml_tag()Christoph Reiter2018-07-271-1/+57
|
* tests: run xmlwriter tests during make checkChristoph Reiter2018-07-274-25/+32
| | | | | There was a stray test() function already there. Move it to a unittest file and run it with the other tests.
* Merge branch 'tests-transformer-win32' into 'master'Christoph Reiter2018-07-274-29/+39
|\ | | | | | | | | transformer: don't shell out for filter commands and make the tests work on Windows See merge request GNOME/gobject-introspection!54
| * transformer: don't shell out for filter commands and make the tests work on ↵Christoph Reiter2018-07-254-29/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | Windows Instead of passing the filter commands to the shell, split them with the shlex module. This gives us more control and a more similar behaviour on unix/win32 systems. I could only find two users in Debian which just call python with some script, so this seems safe to me. Adjust the tests accordingly and use the running python executable to test the functionality as we can be sure that's available on all platforms. Also add a new test for the symbol filter commadn which wasn't tested before.
* | tests: port offset tests to PythonChristoph Reiter2018-07-262-5/+52
|/ | | | | | | Use the test executable to generate files in a temporary location and use difflib to compare their content. This removes the requirement on "diff" for the test.
* Merge branch 'warning-fixes' into 'master'Christoph Reiter2018-07-231-3/+3
|\ | | | | | | | | tests: Fix function incompatibility See merge request GNOME/gobject-introspection!53
| * tests: Fix function incompatibilityFlorian Müllner2018-07-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Casting a function type to a type with more parameters is invalid and triggers a warning on some compilers: installed-tests/gimarshallingtests.c: In function ‘gi_marshalling_tests_interface_get_type’: error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type] Add those additional parameters to shut up the warnings. https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/53
* | ci: switch back to the gitlab docker registryChristoph Reiter2018-07-232-2/+2
|/ | | | it seems to be working again now
* ci: add a msvc jobChristoph Reiter2018-07-223-1/+38
|
* meson: Provide our Python tools for builds. See !51Christoph Reiter2018-07-221-1/+4
| | | | So that meson projects using gi as a subproject can find them.
* gi-tester: Port to PythonChristoph Reiter2018-07-224-63/+124
| | | | | | Removes the dependency on bash there, so we can potentially use it on Windows as well. Not integrated with meson yet, but will hopefully make it easier to do so.
* ci: add a python 2 job using autotoolsChristoph Reiter2018-07-221-0/+16
|
* ci: add an autotools jobChristoph Reiter2018-07-223-6/+26
| | | | | | Switch to docker hub for now as the gitlab registry is broken. Disable the glib version check in configure.ac because we don't strictly need it for testing.
* Fix scanner tests for new functions added with !32Christoph Reiter2018-07-2213-0/+399
| | | | These tests only get run with autotools atm
* Merge branch 'python-shebang' into 'master'Christoph Reiter2018-07-201-1/+2
|\ | | | | | | | | meson: Just use python2/python3 in the tool shebang line See merge request GNOME/gobject-introspection!52
| * meson: Just use python2/python3 in the tool shebang lineChristoph Reiter2018-07-201-1/+2
|/ | | | | So we end up using the same version as glib will be using. See glib!187.
* Bump to 1.57.2Rico Tzschichholz2018-07-202-4/+4
|
* gir: Update annotations to glib 2.57.2Rico Tzschichholz2018-07-201-4/+28
|