]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Don't take the chance to conflict with C99 constant of stdbool.h
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 18 May 2024 14:22:02 +0000 (16:22 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 29 May 2024 08:35:35 +0000 (10:35 +0200)
tests/errors/bug778224.c-expected
tests/errors/bug778224.vala

index 1e080fd22d1e215c01a5ada68362a887dd1fe1ed..166d17a85fa5ca78192eb6554581d7463595ef6a 100644 (file)
@@ -34,8 +34,8 @@ struct _Foo {
        gint i;
 };
 
-VALA_EXTERN gboolean true;
-gboolean true = TRUE;
+VALA_EXTERN gboolean truesy;
+gboolean truesy = TRUE;
 
 VALA_EXTERN GQuark foo_error_quark (void);
 VALA_EXTERN GType foo_error_get_type (void) G_GNUC_CONST ;
@@ -75,7 +75,7 @@ foo (GError** error)
        Foo _tmp3_ = {0};
        GError* _inner_error0_ = NULL;
        Foo result;
-       if (true) {
+       if (truesy) {
                GError* _tmp0_;
                _tmp0_ = g_error_new_literal (FOO_ERROR, FOO_ERROR_BAR, "");
                _inner_error0_ = _tmp0_;
index 3a61a029b6052ec00fddc667b3e4bc15311282b5..cfbbfc39bcc604918d5f7c2fd0e598a40b67dbaf 100644 (file)
@@ -7,10 +7,10 @@ struct Foo {
        int i;
 }
 
-bool @true = true;
+bool truesy = true;
 
 Foo foo () throws FooError {
-       if (@true) {
+       if (truesy) {
                throw new FooError.BAR ("");
        }