Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | codegen: Use __once instead of __volatile in generated code | Val Och | 2022-01-03 | 13 | -84/+84 |
| | | | | | This better reflects purpose of relevant variables, especially given that they aren't volatile anymore on GLib 2.68+. | ||||
* | codegen: Initialize "result" variable on declaration for abstract methods only | Rico Tzschichholz | 2022-01-03 | 16 | -53/+53 |
| | |||||
* | codegen: Use a dedicated EmitContext for _variant_get*() functions | Rico Tzschichholz | 2021-12-13 | 3 | -493/+493 |
| | |||||
* | vala: NullLiteral is not a valid argument for string concatenation | wxx | 2021-12-08 | 3 | -0/+24 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1260 | ||||
* | codegen: Drop inconsistent space for ObjectType parameters | Rico Tzschichholz | 2021-11-27 | 2 | -8/+8 |
| | |||||
* | codegen: Emit constants without initializer list in defines section | Rico Tzschichholz | 2021-11-07 | 4 | -5/+7 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/440 | ||||
* | tests: Split "Variant (de)serialization" test to trigger one error at a time | Rico Tzschichholz | 2021-10-18 | 3 | -12/+12 |
| | |||||
* | codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List | Rico Tzschichholz | 2021-10-15 | 2 | -0/+690 |
| | | | | | | | | | | When using e.g. GLib.List.remove() there is no context/feedback whether an item was removed or needed manual free'ing. Replace such calls with custom wrappers where items required free'ing if they were found. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1238 | ||||
* | tests: Add "integer/float literal" tests to increase coverage | Rico Tzschichholz | 2021-09-29 | 4 | -0/+136 |
| | |||||
* | vala: Don't restrict element type of GLib.Array | Rico Tzschichholz | 2021-09-15 | 2 | -0/+89 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1227 | ||||
* | tests: Add expected generated C sources | Rico Tzschichholz | 2021-07-16 | 50 | -0/+12347 |
| | |||||
* | vala: Add foreach statement support for GLib.GenericArray | Corentin Noël | 2021-05-03 | 1 | -0/+48 |
| | | | | It is now possible to use foreach with a GLib.GenericArray type | ||||
* | tests: Extend "GArray" tests to increase coverage | Rico Tzschichholz | 2021-04-11 | 1 | -5/+14 |
| | |||||
* | codegen: Report error for missing type-arguments of HashTable (de)serialization | Rico Tzschichholz | 2021-03-07 | 1 | -0/+12 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1147 | ||||
* | tests: Don't leak array if length is -1 | Rico Tzschichholz | 2021-02-04 | 1 | -0/+3 |
| | | | | Found by -fsanitize=address | ||||
* | glib-2.0: Bind assert_cmp* functions | Christopher White | 2020-12-02 | 1 | -0/+108 |
| | | | | | | | | | | | | | Add assert_cmpstr, assert_cmpint, assert_cmpuint, assert_cmphex, assert_cmpfloat, assert_cmpfloat_with_epsilon and assert_cmpvariant. Add enum GLib.CompareOperator which defines the supported operators. "g_assert_cmpint(foo,==,1)" translates to "assert_cmpint(foo, EQ, 1)" Based on patch by Luca Bruno Fixes https://gitlab.gnome.org/GNOME/vala/issues/395 | ||||
* | glib-2.0: Add GLib.[S]List.is_empty() convenience methods for non-null | Rico Tzschichholz | 2020-11-25 | 1 | -0/+6 |
| | |||||
* | tests: Add string.printf() test to increase coverage | Rico Tzschichholz | 2020-11-14 | 1 | -0/+6 |
| | |||||
* | vala: Use DataType.compatible() to check for string concatenation | Rico Tzschichholz | 2020-11-02 | 1 | -0/+22 |
| | | | | | | | Make the checks match the ones performed by the code-generator to prevent invalid c-code to be created. See https://gitlab.gnome.org/GNOME/vala/issues/1100 | ||||
* | codegen: The actual struct size is required for calloc (POSIX) | Rico Tzschichholz | 2020-09-07 | 1 | -0/+8 |
| | | | | | | | | | | | Found by -Werror=array-bounds on ppc64el with gcc 10.2 and musl 1.2 basic_types_arrays.c:1268:2: error: 'memcpy' forming offset [8, 23] is out of the bounds [0, 8] [-Werror=array-bounds] 1268 | memcpy (dup, self, sizeof (Foo)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes https://gitlab.gnome.org/GNOME/vala/issues/1068 | ||||
* | tests: Extend "default gtype" tests to increase coverage | Rico Tzschichholz | 2020-07-05 | 1 | -0/+34 |
| | |||||
* | tests: Don't use invalid syntax to declare local variable with array type | Rico Tzschichholz | 2020-07-02 | 1 | -2/+2 |
| | | | | See https://gitlab.gnome.org/GNOME/vala/issues/942 | ||||
* | parser: Map empty start/end index to 0/length for slice expressions | wb9688 | 2020-05-26 | 2 | -0/+29 |
| | | | | | | | | This allows a syntax like a[:], a[2:] or a[:3] for arrays and strings. Co-authored-by: Simon Werbeck <simon.werbeck@gmail.com> Fixes https://gitlab.gnome.org/GNOME/vala/issues/238 | ||||
* | tests: Extend "s[p]lice" tests to increase coverage | Rico Tzschichholz | 2020-05-24 | 2 | -0/+13 |
| | |||||
* | Revert "glib-2.0: Map given end == 0 for string.slice/splice() to string.length" | Rico Tzschichholz | 2020-05-24 | 1 | -12/+0 |
| | | | | This reverts commit f844ad1c02fb5b17e923a7ba4e69cf2a7df96a14. | ||||
* | glib-2.0: Map given end == 0 for string.slice/splice() to string.length | wb9688 | 2020-05-23 | 1 | -0/+12 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/179 | ||||
* | vala: Transform cast from integer-type to boxed-type | Rico Tzschichholz | 2020-05-10 | 1 | -0/+13 |
| | | | | | | Don't generate faulty c-code with results in segmentation faults. Fixes https://gitlab.gnome.org/GNOME/vala/issues/992 | ||||
* | vala: Transform cast from floating-type to boxed-type | Rico Tzschichholz | 2020-05-10 | 1 | -0/+7 |
| | | | | | | Don't generate invalid c-code leading to "cannot convert to a pointer type" Fixes https://gitlab.gnome.org/GNOME/vala/issues/991 | ||||
* | vala: Consider boolean types are compatible with each other | Rico Tzschichholz | 2020-04-01 | 2 | -1/+22 |
| | |||||
* | tests: Drop usage of "--main main" and avoid ambigious entry-points | Rico Tzschichholz | 2020-03-22 | 1 | -5/+0 |
| | |||||
* | tests: Split array tests to provide a GLib-independent test | Rico Tzschichholz | 2020-03-06 | 2 | -48/+50 |
| | |||||
* | codegen: Explicitly include <glib.h> as needed for null-literal | Rico Tzschichholz | 2020-02-01 | 1 | -0/+3 |
| | |||||
* | tests: Extend "float and integer" tests to increase coverage | Rico Tzschichholz | 2019-11-24 | 2 | -2/+8 |
| | |||||
* | tests: Add "typeof" tests for fundamental GLib.Type | Rico Tzschichholz | 2019-10-23 | 1 | -0/+44 |
| | |||||
* | tests: Make (u)int.try_parse() tests more 32bit friendly | Rico Tzschichholz | 2019-10-21 | 1 | -2/+2 |
| | |||||
* | glib-2.0: Add (u)int.try_parse() | Rico Tzschichholz | 2019-10-21 | 1 | -0/+15 |
| | | | | See https://gitlab.gnome.org/GNOME/vala/issues/649 | ||||
* | tests: Null-terminate arrays for compatibility test of uint8 and uchar | Rico Tzschichholz | 2019-06-17 | 1 | -4/+4 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/809 | ||||
* | codegen: Implement silent-cast for GLib.Variant | Rico Tzschichholz | 2019-03-28 | 1 | -0/+74 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/767 | ||||
* | tests: Add "struct (un)boxing" variant test | Rico Tzschichholz | 2019-03-27 | 1 | -0/+16 |
| | |||||
* | tests: Add "custom types" struct tests to increase coverage | Rico Tzschichholz | 2019-02-23 | 1 | -0/+51 |
| | |||||
* | tests: Add "struct in array" test to increase coverage | Rico Tzschichholz | 2019-02-23 | 1 | -0/+9 |
| | |||||
* | tests: Add regression test for modulo operation on double and float | Rico Tzschichholz | 2019-02-21 | 1 | -0/+22 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=610660 | ||||
* | tests: Fix try_parse() tests to not compare to already free'd memory | Rico Tzschichholz | 2019-01-04 | 1 | -4/+8 |
| | | | | Found with valgrind | ||||
* | vala: Array with fixed length don't require explicit instantiation | Rico Tzschichholz | 2018-12-16 | 1 | -0/+27 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/720 | ||||
* | tests: Extend assignment and array element access tests | Rico Tzschichholz | 2018-11-22 | 2 | -0/+33 |
| | |||||
* | tests: Add more GLib.Array tests | Corentin Noël | 2018-11-16 | 1 | -1/+65 |
| | |||||
* | tests: Avoid use of g_ptr_array_find() which requires glib >= 2.54 | Rico Tzschichholz | 2018-11-12 | 1 | -0/+4 |
| | |||||
* | tests: Add GenericArray (GPtrArray) tests | Rico Tzschichholz | 2018-11-08 | 1 | -0/+108 |
| | |||||
* | tests: Add more string method tests | Rico Tzschichholz | 2018-10-30 | 1 | -0/+77 |
| | |||||
* | tests: Add implicit conversion tests for GLib.Variant | Rico Tzschichholz | 2018-10-25 | 1 | -0/+65 |
| |