Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vala: Improve initialization of namespace fields with compound literal | Rico Tzschichholz | 2023-03-27 | 1 | -1/+8 |
| | | | | | | Regression of 9c35019ef300082243ef7c71c22088c52d3db38e Fixes https://gitlab.gnome.org/GNOME/vala/issues/1424 | ||||
* | codegen: Minor refactoring of TypeRegisterFunction and its subclasses | Rico Tzschichholz | 2023-03-21 | 6 | -66/+41 |
| | |||||
* | codegen: Use G_TYPE_FLAG_NONE when targetting glib >= 2.74 | Rico Tzschichholz | 2023-03-21 | 2 | -1/+7 |
| | |||||
* | vala: Owned property accessors are not allowed for non-null simple types | Rico Tzschichholz | 2023-03-21 | 1 | -15/+0 |
| | | | | Additionally drop invalid g_value_take_* references for enums | ||||
* | vala: Allow assignment of namespace fields with inline allocated arrays | Rico Tzschichholz | 2023-03-20 | 1 | -0/+2 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/945 | ||||
* | codegen: Add declaration for register call of dynamic DBus interfaces | Rico Tzschichholz | 2023-03-18 | 1 | -10/+20 |
| | | | | | | | | The call was added without the required extern declaration Found by -Werror=implicit-function-declaration Fixes https://gitlab.gnome.org/GNOME/vala/issues/1422 | ||||
* | codegen: Use g_object_class_override_property to implement generic interface ↵ | Rico Tzschichholz | 2023-03-13 | 1 | -3/+19 |
| | | | | | | | | | | | | properties This caused the criticals like: GLib-GObject-CRITICAL **: Read/writable property 'data' on class 'Foo' has type 'gchararray' which is not exactly equal to the type 'gpointer' of the property on the interface 'IFoo' Fixes https://gitlab.gnome.org/GNOME/vala/issues/1419 | ||||
* | codegen: Add cast to accessor calls for generic property implementations | Rico Tzschichholz | 2023-03-13 | 1 | -2/+10 |
| | | | | Found by -Werror=int-conversion | ||||
* | codegen: Consistently handle GLib.Error as boxed type | Rico Tzschichholz | 2023-03-09 | 3 | -6/+17 |
| | | | | | | Use G_TYPE_ERROR and GBoxed API for all error domains. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1418 | ||||
* | Require and target GLib >= 2.56 | Rico Tzschichholz | 2023-02-28 | 1 | -20/+5 |
| | | | | | | | 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 | ||||
* | gtkmodule: Improve error messages | Niels De Graef | 2023-02-20 | 1 | -2/+2 |
| | | | | | | | | Be a bit more specific about some of the errors that valac can encounter when parsing a UI file. (for my use case specifically, it helped me to figure out I had a <property> tag without a name attribute in one of my UI files) | ||||
* | codegen: Cast vfunc of property accessors by using cast_method_pointer() | Rico Tzschichholz | 2023-02-05 | 1 | -27/+17 |
| | | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408 | ||||
* | codegen: Cast return value of generic type accessor functions | Rico Tzschichholz | 2023-02-05 | 1 | -1/+1 |
| | | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408 | ||||
* | codegen: Perform required cast while assigning and passing function pointers | Rico Tzschichholz | 2023-02-05 | 1 | -0/+6 |
| | | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408 | ||||
* | vala: Allow more general usage of PropertyAccessor.get_method() | Rico Tzschichholz | 2023-02-05 | 1 | -3/+3 |
| | |||||
* | codegen: Perform required casts for generic types of return-values and ↵ | Rico Tzschichholz | 2023-01-31 | 2 | -0/+6 |
| | | | | | | | | in/out-parameters Found by -Werror=int-conversion Fixes https://gitlab.gnome.org/GNOME/vala/issues/1407 | ||||
* | codegen: Add foreach support for strings | Frederik Zipp | 2023-01-11 | 1 | -0/+34 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/108 | ||||
* | codegen: Improve handling of 'extern' on Win32 and Cygwin | wszqkzqk | 2023-01-11 | 1 | -1/+1 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1398 | ||||
* | codegen: Correctly handle fixed-length array initialization of fields in classes | Rico Tzschichholz | 2023-01-04 | 2 | -111/+4 |
| | |||||
* | vala: Allow to use store_field() for initializations | Rico Tzschichholz | 2023-01-04 | 3 | -6/+12 |
| | |||||
* | parser: Properly handle chained equality expressions | wszqkzqk | 2022-12-22 | 1 | -2/+11 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1385 | ||||
* | codegen: Use a special CCodeBinaryExpression for string comparisons | Rico Tzschichholz | 2022-12-22 | 1 | -8/+7 |
| | | | | | This preserves support for recursive replacement of arguments while this expression was actually transformed into a function call. | ||||
* | Fix output decoding error of non-ASCII character on Win32 | wszqkzqk | 2022-11-27 | 1 | -1/+1 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1379 | ||||
* | Actually use printf-like way of Report.*() | Rico Tzschichholz | 2022-11-20 | 2 | -2/+2 |
| | |||||
* | codegen: Append VALA_EXTERN also when using fast-vapi | Alberts Muktupāvels | 2022-10-23 | 1 | -0/+8 |
| | |||||
* | codegen: Add glib.h include for TRUE/FALSE literal | Rico Tzschichholz | 2022-10-02 | 1 | -0/+1 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1364 | ||||
* | codegen: Check cname of fields and methods against reserved identfiers | Rico Tzschichholz | 2022-06-14 | 1 | -3/+9 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1329 | ||||
* | codegen: Split reserved identifiers for C and Vala | Rico Tzschichholz | 2022-06-14 | 2 | -6/+9 |
| | |||||
* | codegen: Make sure to initialize static collections | Rico Tzschichholz | 2022-06-14 | 2 | -0/+11 |
| | |||||
* | codegen: Detect usage of static type-parameter in runtime context | Rico Tzschichholz | 2022-05-31 | 1 | -0/+5 |
| | | | | | | | Compact classes doesn't carry runtime information of its type-parameters. In case this information is required we need report an error. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1326 | ||||
* | codegen: Correctly set array-length for NoAccessorMethods properties | Rico Tzschichholz | 2022-05-10 | 1 | -0/+12 |
| | | | | | | If value is a null-terminated array then calculate and set its length. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1316 | ||||
* | codegen: Drop confusing warning when accessing interface members | Rico Tzschichholz | 2022-03-08 | 1 | -4/+0 |
| | | | | | | Making assumptions for member access using the current class is not correct. Introduced by 0aace7bd6d3ec72e77f4eabbb7d5fffd3b2e86a8 | ||||
* | codegen: Emit GType definition for error domains | Rico Tzschichholz | 2022-02-24 | 8 | -5/+135 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/699 | ||||
* | codegen: Default to "has_type_id = false" for external error-domains | Rico Tzschichholz | 2022-02-24 | 1 | -1/+5 |
| | |||||
* | codegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structs | Rico Tzschichholz | 2022-02-24 | 1 | -0/+17 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1293 | ||||
* | codegen: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for interfaces with base class | Rico Tzschichholz | 2022-02-24 | 1 | -1/+12 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1292 | ||||
* | codegen: Split out GTypeModule.generate_autoptr_cleanup() | Rico Tzschichholz | 2022-02-24 | 1 | -6/+10 |
| | |||||
* | gtkmodule: Recurse inner classes of ObjectTypeSymbols (2) | Rico Tzschichholz | 2022-02-09 | 1 | -5/+14 |
| | |||||
* | gtkmodule: Improve UI parsing and handling of nested objects and properties | Rico Tzschichholz | 2022-02-09 | 1 | -32/+102 |
| | | | | Don't restrict GtkCallback to instance methods | ||||
* | gtkmodule: Recurse inner classes of ObjectTypeSymbols | Rico Tzschichholz | 2022-02-09 | 1 | -5/+14 |
| | |||||
* | codegen: Stop generating wrappers for dynamic property access | Rico Tzschichholz | 2022-02-06 | 3 | -102/+13 |
| | |||||
* | vala: Move dynamic property errors to semantic analyzer pass | Rico Tzschichholz | 2022-02-06 | 1 | -1/+1 |
| | |||||
* | codegen: Use correct target/destroy of delegate field initializer | Rico Tzschichholz | 2022-01-31 | 1 | -3/+12 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1285 | ||||
* | codegen: Write array length of formal parameters with fixed length | Rico Tzschichholz | 2022-01-26 | 1 | -5/+1 |
| | | | | "void foo (gint i[3]) { ... }" instead of "void foo (gint* i) { ... }" | ||||
* | codegen: Cast generic return value from g_sequence_get() | Princeton Ferro | 2022-01-25 | 1 | -1/+10 |
| | | | | | | | | | Use convert_from_generic_pointer() to generate C code without warnings when accessing scalar elements from a GSequence. Addtionally check type arguments of given GSequence during codegen. In addition to 44195a02c9d26453dc698282deb4947425a4b0b1 | ||||
* | vala: Add support to infer return type of dynamic signals | Lorenz Wildberg | 2022-01-25 | 1 | -1/+5 |
| | |||||
* | vala: Add foreach statement support for GLib.Sequence | Princeton Ferro | 2022-01-25 | 2 | -0/+36 |
| | | | | It is now possible to use foreach with a GLib.Sequence | ||||
* | vala: Add foreach statement support for GLib.Array | Princeton Ferro | 2022-01-24 | 2 | -2/+36 |
| | | | | It is now possible to use foreach with a GLib.Array | ||||
* | codegen: Access of stack allocated struct is guaranteed to be non null | Rico Tzschichholz | 2022-01-24 | 1 | -0/+2 |
| | | | | | | Found by -Werror=address with GCC 12 See https://gitlab.gnome.org/GNOME/vala/issues/1282 | ||||
* | codegen: Don't uncoditionally null check callback_func for GLib.Closure | Rico Tzschichholz | 2022-01-24 | 1 | -1/+6 |
| | | | | | | Found by -Werror=address with GCC 12 See https://gitlab.gnome.org/GNOME/vala/issues/1282 |