Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | codegen: Perform required casts for generic types of return-values and ↵ | Rico Tzschichholz | 2023-01-31 | 1 | -0/+2 |
| | | | | | | | | in/out-parameters Found by -Werror=int-conversion Fixes https://gitlab.gnome.org/GNOME/vala/issues/1407 | ||||
* | vala: Add support to infer return type of dynamic signals | Lorenz Wildberg | 2022-01-25 | 1 | -1/+5 |
| | |||||
* | 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 | ||||
* | codegen: Avoid symbol clashes with "va_*" from "stdarg.h" | Alvarito050506 | 2022-01-18 | 1 | -8/+8 |
| | | | | | A few more symbol clashes with the va_* macros from stdarg.h, that seem to happen only in some systems, like Alpine Linux or NetBSD. | ||||
* | Support "emit" for explicit signal emission | Lorenz Wildberg | 2022-01-04 | 1 | -1/+3 |
| | | | | | If "foo" is a signal then "foo.emit (...);" is allowed now additionally to "foo (...);". This is required to emit dynamic signals. | ||||
* | codegen: Initialize type parameter properties for generics earlier | Rico Tzschichholz | 2021-12-14 | 1 | -1/+16 |
| | | | | | | | If g_object_new() is used then additionally initialize type parameter properties with it. Fixes https://gitlab.gnome.org/GNOME/vala/issues/67 | ||||
* | codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List | Rico Tzschichholz | 2021-10-15 | 1 | -0/+22 |
| | | | | | | | | | | 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 | ||||
* | codegen: Implementing GLib.Source.prepare/check is optional since 2.36 | Rico Tzschichholz | 2021-06-08 | 1 | -1/+18 |
| | |||||
* | codegen/vala: Improve check for GLib.Source derived classes | Rico Tzschichholz | 2021-05-20 | 1 | -2/+2 |
| | |||||
* | codegen: More use of get_this_{class|interface}_cexpression() | Rico Tzschichholz | 2021-05-04 | 1 | -20/+3 |
| | |||||
* | codegen: Add CCodeBaseModule.get_this_class_cexpression() and use where possible | Rico Tzschichholz | 2021-05-03 | 1 | -22/+2 |
| | |||||
* | codegen: Replace wrongly hard coded usage of G_OBJECT_GET_CLASS | Rico Tzschichholz | 2021-05-03 | 1 | -2/+2 |
| | | | | This is used by plain GTypeInstance classes as well. | ||||
* | codegen: More use of get_variable_cexpression() | Rico Tzschichholz | 2021-04-19 | 1 | -3/+2 |
| | |||||
* | codegen: Unify handling of GenericType arguments/parameters | Rico Tzschichholz | 2021-04-19 | 1 | -10/+10 |
| | |||||
* | codegen: Use ArrayType.length_type in type specific wrappers | Rico Tzschichholz | 2021-04-15 | 1 | -2/+2 |
| | |||||
* | codegen: Don't override valid target/destroy of previous lambda argument | Rico Tzschichholz | 2021-04-06 | 1 | -4/+9 |
| | | | | | | | This does not enable proper support for delegates sharing a data argument, but allows this special case. See https://gitlab.gnome.org/GNOME/vala/issues/59 | ||||
* | codegen: Always use CCodeConstant for NULL | Rico Tzschichholz | 2021-04-06 | 1 | -1/+1 |
| | |||||
* | codegen: Fix default value of get_ccode_destroy_notify_pos() and make use of it | Rico Tzschichholz | 2021-04-06 | 1 | -4/+4 |
| | |||||
* | codegen: Also check array type of variable argument for ref parameters | Rico Tzschichholz | 2021-02-01 | 1 | -3/+3 |
| | |||||
* | codegen: Add get_ccode_no_wrapper() and use it | Rico Tzschichholz | 2021-02-01 | 1 | -1/+1 |
| | |||||
* | codegen: Always use G_TYPE_INSTANCE_GET_CLASS/INTERFACE for external symbols | Rico Tzschichholz | 2021-01-30 | 1 | -4/+18 |
| | | | | and get_ccode_type_get_function() for SourceFileType.SOURCE symbols. | ||||
* | codegen: Handle NoWrapper attribute of async methods on caller side | Rico Tzschichholz | 2021-01-30 | 1 | -0/+22 |
| | |||||
* | codegen: Support chain up to simple generics constructor | Simon Werbeck | 2020-12-30 | 1 | -2/+13 |
| | | | | | | | This allows subclassing bindings like GLib.HashTable and GLib.Sequence that require implicit DestroyNotify parameters to chain up. Fixes https://gitlab.gnome.org/GNOME/vala/issues/342 | ||||
* | codegen: Apply CCodeModifiers.PRINTF to "string_printf" (POSIX) | Rico Tzschichholz | 2020-11-15 | 1 | -1/+1 |
| | | | | Found by clang with "posix/string-printf" test | ||||
* | Revert errornous git push | Rico Tzschichholz | 2020-11-14 | 1 | -3/+2 |
| | | | | | | | This reverts commit 9319f309dd97532a3174de995a83884739d70460. This reverts commit 9ccdd25eaf0c57ac0cb18380b81d76a9d7113f7f. This reverts commit 6689c356dade08a0d04a4d6f3add15a71125e925. This reverts commit 4f560d0bb2753bed14b2f0688f2d3e686a39d6ca. | ||||
* | DEBUG | Rico Tzschichholz | 2020-11-14 | 1 | -0/+1 |
| | |||||
* | vala: More copying of dedicated data-type instances for code-nodes | Rico Tzschichholz | 2020-11-14 | 1 | -2/+2 |
| | |||||
* | codegen: More use of delegate_target_type and delegate_target_destroy_type (2) | Jeremy Philippe | 2020-10-23 | 1 | -1/+1 |
| | |||||
* | codegen: Update outdated array _size_ variable of captured local-variable | Rico Tzschichholz | 2020-10-22 | 1 | -4/+2 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1090 | ||||
* | codegen: More use of delegate_target_type and delegate_target_destroy_type | Jeremy Philippe | 2020-10-07 | 1 | -6/+6 |
| | |||||
* | Don't use locale dependent string functions on syntax strings | Rico Tzschichholz | 2020-09-02 | 1 | -4/+4 |
| | | | | | | | Replace usage of string.down() with string.ascii_down(), and string.up() with string.ascii_up() Fixes https://gitlab.gnome.org/GNOME/vala/issues/1067 | ||||
* | codegen: Check param for null before using it | Rico Tzschichholz | 2020-07-22 | 1 | -1/+1 |
| | | | | | | | | | | Regression of 5490b0b21a4089d803d51c91311430d60d266f7b This caused criticals like: vala_get_ccode_array_length: assertion 'node != NULL' failed See https://gitlab.gnome.org/GNOME/vala/issues/929 | ||||
* | codegen: Don't call get_ccode_finish_instance() with non-async methods | Rico Tzschichholz | 2020-06-04 | 1 | -1/+3 |
| | | | | and restrict evaluation of CCode.finish_* attributes to async methods only | ||||
* | codegen: Use loop index instead of get_ccode_pos() for ellipsis parameter | Rico Tzschichholz | 2020-05-18 | 1 | -1/+1 |
| | | | | | | | | | Otherwise this will cause an index clash resulting in loosing the first variable list parameter. Regression of b1cb7036bee1f21e98e93ac34b31a95eeed32815 Fixes https://gitlab.gnome.org/GNOME/vala/issues/995 | ||||
* | codegen: Improve handling of "array_length_type" attribute | Rico Tzschichholz | 2020-03-17 | 1 | -4/+4 |
| | | | | | | This affects methods, parameters, field and properties. Fixes https://gitlab.gnome.org/GNOME/vala/issues/938 | ||||
* | codegen: Use correctly typed array-length variable for delegate invocation | Rico Tzschichholz | 2020-03-17 | 1 | -1/+2 |
| | |||||
* | codegen: Reset outdated array _size_ variable after use as ref parameter | Rico Tzschichholz | 2020-03-12 | 1 | -0/+14 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/929 | ||||
* | codegen: Actually respect "delegate_target" attribute of method/parameter | Rico Tzschichholz | 2020-03-08 | 1 | -4/+7 |
| | |||||
* | codegen: Don't re-evaluate "itype" when "deleg" variable is already available | Rico Tzschichholz | 2020-03-08 | 1 | -8/+4 |
| | |||||
* | codegen: Fix support of dynamic DBus methods | Rico Tzschichholz | 2019-11-14 | 1 | -0/+7 |
| | |||||
* | codegen: Correctly transform arguments of Array.resize() for realloc (POSIX) | Rico Tzschichholz | 2019-10-19 | 1 | -1/+8 |
| | |||||
* | codegen: Add required includes or generate used symbols (POSIX) | Rico Tzschichholz | 2019-10-19 | 1 | -0/+4 |
| | |||||
* | codegen: Reduce code duplications when generation base-access | Rico Tzschichholz | 2019-10-18 | 1 | -9/+8 |
| | |||||
* | codegen: Use G_TYPE_INSTANCE_GET_INTERFACE to get vtable for base-access | Rico Tzschichholz | 2019-10-17 | 1 | -3/+3 |
| | | | | | Usage of the pre-assigned *_parent_iface field is only possible in classes which explicitly implement an interface. | ||||
* | codegen: Allow passing/retrieving any delegate to/from varargs parameter | Rico Tzschichholz | 2019-10-03 | 1 | -0/+24 |
| | | | | | | | | Initialize target/notify cvalues of delegate-typed arguments/result of inferred varargs parameters and va_list.arg() calls. Only the actual function pointer will be passed or retrieved. The target and destroy values will be null. | ||||
* | codegen: Follow rename of DataType data_type property to type_symbol | Rico Tzschichholz | 2019-09-30 | 1 | -4/+4 |
| | |||||
* | codegen: Move type-argument checks to SemanticAnalyzer | Rico Tzschichholz | 2019-09-25 | 1 | -1/+1 |
| | | | | and don't apply type-argument check on external symbols. | ||||
* | codegen: Real structs are allowed by simple generics and passed as reference | Rico Tzschichholz | 2019-07-08 | 1 | -0/+10 |
| | | | | | | Add the required pointer-indirections to fix invalid memory accesses. Fixes https://gitlab.gnome.org/GNOME/vala/issues/819 | ||||
* | codegen: Move and make a few methods to static functions | Rico Tzschichholz | 2019-03-19 | 1 | -1/+1 |
| | |||||
* | codegen: Rename to CCodeMethodCallModule.generate_enum_to_string_function() | Rico Tzschichholz | 2019-02-23 | 1 | -2/+2 |
| |