diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-06 15:14:52 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-06 16:11:37 +0200 |
commit | 8d7e4b7a1e5881dd5b93a99a1ec3ee8529d67f35 (patch) | |
tree | aab61576077b16aa7726705b154acce7f23f383a /tests/basic-types/gptrarray.c-expected | |
parent | 6ad0e233e6f67f5b30810203b43b160e4c529f37 (diff) | |
download | vala-8d7e4b7a1e5881dd5b93a99a1ec3ee8529d67f35.tar.gz |
codegen: Stabilize CCode.cname for backing method of lamdba expression
Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern
Diffstat (limited to 'tests/basic-types/gptrarray.c-expected')
-rw-r--r-- | tests/basic-types/gptrarray.c-expected | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/basic-types/gptrarray.c-expected b/tests/basic-types/gptrarray.c-expected index bc641afa3..d771e84f1 100644 --- a/tests/basic-types/gptrarray.c-expected +++ b/tests/basic-types/gptrarray.c-expected @@ -76,16 +76,16 @@ static void _vala_main (void); static void _g_object_unref0_ (gpointer var); static Block1Data* block1_data_ref (Block1Data* _data1_); static void block1_data_unref (void * _userdata_); -static gint ___lambda1__gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); +static gint __vala_lambda0__gcompare_data_func (gconstpointer a, + gconstpointer b, + gpointer self); static gint _compare_foo_gcompare_func (gconstpointer a, gconstpointer b); static Block2Data* block2_data_ref (Block2Data* _data2_); static void block2_data_unref (void * _userdata_); -static gint ___lambda2__gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); +static gint __vala_lambda1__gcompare_data_func (gconstpointer a, + gconstpointer b, + gpointer self); static gint _compare_foo_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self); @@ -215,9 +215,9 @@ block1_data_unref (void * _userdata_) } static gint -__lambda1_ (Block1Data* _data1_, - gconstpointer** a, - gconstpointer** b) +_vala_lambda0_ (Block1Data* _data1_, + gconstpointer** a, + gconstpointer** b) { GPtrArray* self; gint result; @@ -227,12 +227,12 @@ __lambda1_ (Block1Data* _data1_, } static gint -___lambda1__gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) +__vala_lambda0__gcompare_data_func (gconstpointer a, + gconstpointer b, + gpointer self) { gint result; - result = __lambda1_ (self, a, b); + result = _vala_lambda0_ (self, a, b); return result; } @@ -246,7 +246,7 @@ vala_g_ptr_array_sort (GPtrArray* self, _data1_->_ref_count_ = 1; _data1_->self = g_ptr_array_ref (self); _data1_->compare_func = compare_func; - g_ptr_array_sort_with_data (self, ___lambda1__gcompare_data_func, _data1_); + g_ptr_array_sort_with_data (self, __vala_lambda0__gcompare_data_func, _data1_); block1_data_unref (_data1_); _data1_ = NULL; } @@ -281,9 +281,9 @@ block2_data_unref (void * _userdata_) } static gint -__lambda2_ (Block2Data* _data2_, - gconstpointer** a, - gconstpointer** b) +_vala_lambda1_ (Block2Data* _data2_, + gconstpointer** a, + gconstpointer** b) { GPtrArray* self; gint result; @@ -293,12 +293,12 @@ __lambda2_ (Block2Data* _data2_, } static gint -___lambda2__gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) +__vala_lambda1__gcompare_data_func (gconstpointer a, + gconstpointer b, + gpointer self) { gint result; - result = __lambda2_ (self, a, b); + result = _vala_lambda1_ (self, a, b); return result; } @@ -314,7 +314,7 @@ vala_g_ptr_array_sort_with_data (GPtrArray* self, _data2_->self = g_ptr_array_ref (self); _data2_->compare_func = compare_func; _data2_->compare_func_target = compare_func_target; - g_ptr_array_sort_with_data (self, ___lambda2__gcompare_data_func, _data2_); + g_ptr_array_sort_with_data (self, __vala_lambda1__gcompare_data_func, _data2_); block2_data_unref (_data2_); _data2_ = NULL; } |