Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | codegen: Stabilize CCode.cname for backing method of lamdba expression | Rico Tzschichholz | 2023-04-06 | 1 | -22/+22 |
| | | | | Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern | ||||
* | vala: Correctly handle pre/post-increment expression as index of element access | Rico Tzschichholz | 2023-03-08 | 1 | -9/+5 |
| | | | | | | Regression of cb1828cfc5273aca752de9b39a77e0cd53305e61 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1417 | ||||
* | Require and target GLib >= 2.56 | Rico Tzschichholz | 2023-02-28 | 2 | -215/+253 |
| | | | | | | | The next stable release of vala will happen over 5 years after the release of GLib 2.56.0. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1415 | ||||
* | vala: Add support for Hexadecimal floating point literals | wszqkzqk | 2023-01-30 | 2 | -0/+101 |
| | | | | https://gcc.gnu.org/onlinedocs/gcc/Hex-Floats.html#Hex-Floats | ||||
* | vala: Improve missing exponent check for real literals | Rico Tzschichholz | 2023-01-30 | 2 | -0/+10 |
| | |||||
* | glib-2.0: Improve string.replace() | wszqkzqk | 2023-01-30 | 1 | -62/+42 |
| | | | | | | Use string.split() and string.joinv() which is way faster than GLib.Regex() Fixes https://gitlab.gnome.org/GNOME/vala/issues/1402 | ||||
* | tests: Extend string.replace() test to increase coverage | Rico Tzschichholz | 2023-01-18 | 2 | -0/+20 |
| | |||||
* | tests: Update c-expected | wszqkzqk | 2023-01-11 | 33 | -33/+33 |
| | |||||
* | codegen: Correctly handle fixed-length array initialization of fields in classes | Rico Tzschichholz | 2023-01-04 | 1 | -0/+2 |
| | |||||
* | tests: Add "string relation" tests to increase coverage | Rico Tzschichholz | 2022-12-22 | 2 | -0/+48 |
| | |||||
* | vala: Add support for binary/octal integer literal | 星外之神 | 2022-12-08 | 11 | -0/+147 |
| | |||||
* | vala: Improve integer literal checks | Rico Tzschichholz | 2022-12-08 | 5 | -0/+25 |
| | |||||
* | codegen: Add glib.h include for TRUE/FALSE literal | Rico Tzschichholz | 2022-10-02 | 2 | -0/+28 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1364 | ||||
* | codegen: Emit GType definition for error domains | Rico Tzschichholz | 2022-02-24 | 1 | -0/+25 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/699 | ||||
* | codegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structs | Rico Tzschichholz | 2022-02-24 | 4 | -0/+5 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1293 | ||||
* | codegen: Write array length of formal parameters with fixed length | Rico Tzschichholz | 2022-01-26 | 2 | -35/+57 |
| | | | | "void foo (gint i[3]) { ... }" instead of "void foo (gint* i) { ... }" | ||||
* | vala: Transform assignment of an array element as needed | wxx | 2022-01-26 | 2 | -0/+130 |
| | | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/889 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1258 | ||||
* | glib-2.0: Fix criticals in string.joinv() with arrays that start with null | Nahuel Gomez | 2022-01-25 | 2 | -37/+63 |
| | |||||
* | vala: Add foreach statement support for GLib.Array | Princeton Ferro | 2022-01-24 | 2 | -0/+222 |
| | | | | It is now possible to use foreach with a GLib.Array | ||||
* | codegen: Access of inline allocated array is guaranteed to be non null | Rico Tzschichholz | 2022-01-23 | 1 | -5/+5 |
| | | | | | | | | and improve null check for container in slice expression Found by -Werror=address with GCC 12 See https://gitlab.gnome.org/GNOME/vala/issues/1282 | ||||
* | 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 |
| |