summaryrefslogtreecommitdiff
path: root/codegen/valaccodemethodcallmodule.vala
Commit message (Collapse)AuthorAgeFilesLines
* codegen: Perform required casts for generic types of return-values and ↵Rico Tzschichholz2023-01-311-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 signalsLorenz Wildberg2022-01-251-1/+5
|
* codegen: Don't uncoditionally null check callback_func for GLib.ClosureRico Tzschichholz2022-01-241-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"Alvarito0505062022-01-181-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 emissionLorenz Wildberg2022-01-041-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 earlierRico Tzschichholz2021-12-141-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)ListRico Tzschichholz2021-10-151-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.36Rico Tzschichholz2021-06-081-1/+18
|
* codegen/vala: Improve check for GLib.Source derived classesRico Tzschichholz2021-05-201-2/+2
|
* codegen: More use of get_this_{class|interface}_cexpression()Rico Tzschichholz2021-05-041-20/+3
|
* codegen: Add CCodeBaseModule.get_this_class_cexpression() and use where possibleRico Tzschichholz2021-05-031-22/+2
|
* codegen: Replace wrongly hard coded usage of G_OBJECT_GET_CLASSRico Tzschichholz2021-05-031-2/+2
| | | | This is used by plain GTypeInstance classes as well.
* codegen: More use of get_variable_cexpression()Rico Tzschichholz2021-04-191-3/+2
|
* codegen: Unify handling of GenericType arguments/parametersRico Tzschichholz2021-04-191-10/+10
|
* codegen: Use ArrayType.length_type in type specific wrappersRico Tzschichholz2021-04-151-2/+2
|
* codegen: Don't override valid target/destroy of previous lambda argumentRico Tzschichholz2021-04-061-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 NULLRico Tzschichholz2021-04-061-1/+1
|
* codegen: Fix default value of get_ccode_destroy_notify_pos() and make use of itRico Tzschichholz2021-04-061-4/+4
|
* codegen: Also check array type of variable argument for ref parametersRico Tzschichholz2021-02-011-3/+3
|
* codegen: Add get_ccode_no_wrapper() and use itRico Tzschichholz2021-02-011-1/+1
|
* codegen: Always use G_TYPE_INSTANCE_GET_CLASS/INTERFACE for external symbolsRico Tzschichholz2021-01-301-4/+18
| | | | and get_ccode_type_get_function() for SourceFileType.SOURCE symbols.
* codegen: Handle NoWrapper attribute of async methods on caller sideRico Tzschichholz2021-01-301-0/+22
|
* codegen: Support chain up to simple generics constructorSimon Werbeck2020-12-301-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 Tzschichholz2020-11-151-1/+1
| | | | Found by clang with "posix/string-printf" test
* Revert errornous git pushRico Tzschichholz2020-11-141-3/+2
| | | | | | | This reverts commit 9319f309dd97532a3174de995a83884739d70460. This reverts commit 9ccdd25eaf0c57ac0cb18380b81d76a9d7113f7f. This reverts commit 6689c356dade08a0d04a4d6f3add15a71125e925. This reverts commit 4f560d0bb2753bed14b2f0688f2d3e686a39d6ca.
* DEBUGRico Tzschichholz2020-11-141-0/+1
|
* vala: More copying of dedicated data-type instances for code-nodesRico Tzschichholz2020-11-141-2/+2
|
* codegen: More use of delegate_target_type and delegate_target_destroy_type (2)Jeremy Philippe2020-10-231-1/+1
|
* codegen: Update outdated array _size_ variable of captured local-variableRico Tzschichholz2020-10-221-4/+2
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1090
* codegen: More use of delegate_target_type and delegate_target_destroy_typeJeremy Philippe2020-10-071-6/+6
|
* Don't use locale dependent string functions on syntax stringsRico Tzschichholz2020-09-021-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 itRico Tzschichholz2020-07-221-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 methodsRico Tzschichholz2020-06-041-1/+3
| | | | and restrict evaluation of CCode.finish_* attributes to async methods only
* codegen: Use loop index instead of get_ccode_pos() for ellipsis parameterRico Tzschichholz2020-05-181-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" attributeRico Tzschichholz2020-03-171-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 invocationRico Tzschichholz2020-03-171-1/+2
|
* codegen: Reset outdated array _size_ variable after use as ref parameterRico Tzschichholz2020-03-121-0/+14
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/929
* codegen: Actually respect "delegate_target" attribute of method/parameterRico Tzschichholz2020-03-081-4/+7
|
* codegen: Don't re-evaluate "itype" when "deleg" variable is already availableRico Tzschichholz2020-03-081-8/+4
|
* codegen: Fix support of dynamic DBus methodsRico Tzschichholz2019-11-141-0/+7
|
* codegen: Correctly transform arguments of Array.resize() for realloc (POSIX)Rico Tzschichholz2019-10-191-1/+8
|
* codegen: Add required includes or generate used symbols (POSIX)Rico Tzschichholz2019-10-191-0/+4
|
* codegen: Reduce code duplications when generation base-accessRico Tzschichholz2019-10-181-9/+8
|
* codegen: Use G_TYPE_INSTANCE_GET_INTERFACE to get vtable for base-accessRico Tzschichholz2019-10-171-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 parameterRico Tzschichholz2019-10-031-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_symbolRico Tzschichholz2019-09-301-4/+4
|
* codegen: Move type-argument checks to SemanticAnalyzerRico Tzschichholz2019-09-251-1/+1
| | | | and don't apply type-argument check on external symbols.
* codegen: Real structs are allowed by simple generics and passed as referenceRico Tzschichholz2019-07-081-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 functionsRico Tzschichholz2019-03-191-1/+1
|
* codegen: Rename to CCodeMethodCallModule.generate_enum_to_string_function()Rico Tzschichholz2019-02-231-2/+2
|