From 8d7e4b7a1e5881dd5b93a99a1ec3ee8529d67f35 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 6 Apr 2023 15:14:52 +0200 Subject: codegen: Stabilize CCode.cname for backing method of lamdba expression Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern --- tests/methods/bug649562.c-expected | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/methods/bug649562.c-expected') diff --git a/tests/methods/bug649562.c-expected b/tests/methods/bug649562.c-expected index ec1d60c13..ec493286e 100644 --- a/tests/methods/bug649562.c-expected +++ b/tests/methods/bug649562.c-expected @@ -4,11 +4,11 @@ #include static void _vala_main (void); -static gboolean __lambda4_ (void); -static gboolean ___lambda4__gsource_func (gpointer self); +static gboolean _vala_lambda0_ (void); +static gboolean __vala_lambda0__gsource_func (gpointer self); static gboolean -__lambda4_ (void) +_vala_lambda0_ (void) { static const gint b = 3; gboolean result; @@ -17,10 +17,10 @@ __lambda4_ (void) } static gboolean -___lambda4__gsource_func (gpointer self) +__vala_lambda0__gsource_func (gpointer self) { gboolean result; - result = __lambda4_ (); + result = _vala_lambda0_ (); return result; } @@ -33,7 +33,7 @@ _vala_main (void) { static const gint a = 2; } - f = ___lambda4__gsource_func; + f = __vala_lambda0__gsource_func; f_target = NULL; f_target_destroy_notify = NULL; (f_target_destroy_notify == NULL) ? NULL : (f_target_destroy_notify (f_target), NULL); -- cgit v1.2.1