glib-mkenums: evaluate private symbols too

This allows them to be referenced in other symbols value computation.

In addition, this fixes the automatically assigned value of a public
symbol that is preceded by a private one:

        typedef enum {
          /*< private >*/
          ENUM_VALUE_PRIVATE,
          /*< public >*/
          ENUM_VALUE_PUBLIC,                    <--- value is 1, not 0.
        } SomeExampleEnum;
This commit is contained in:
Patrick Monnerat
2022-11-01 15:46:13 +01:00
parent 0120cd772a
commit 96fa9752b2
2 changed files with 11 additions and 10 deletions

View File

@@ -649,7 +649,7 @@ comment: {standard_bottom_comment}
"ENUM",
"ENUM_VALUE_PUBLIC2",
"public2",
"0",
"1",
)
def test_available_in(self):