[gobject-introspection/wip/jtojnar/designated-initializers: 2/2] Revert "giscanner: Support C99 designated initializers"
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/jtojnar/designated-initializers: 2/2] Revert "giscanner: Support C99 designated initializers"
- Date: Wed, 17 Aug 2022 14:56:26 +0000 (UTC)
commit 9a9a632e5136b187e018dbf20fd7578d5b06e58a
Author: Jan Tojnar <jtojnar gmail com>
Date: Wed Aug 17 16:55:34 2022 +0200
Revert "giscanner: Support C99 designated initializers"
This reverts commit 88049f80867dc6e738bd7837ac2e6885353925da.
giscanner/scannerparser.y | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y
index 52fc19963..e0709cde4 100644
--- a/giscanner/scannerparser.y
+++ b/giscanner/scannerparser.y
@@ -1406,23 +1406,8 @@ initializer
;
initializer_list
- : initializer_list_item
- | initializer_list ',' initializer_list_item
- ;
-
-initializer_list_item
- : designator_list '=' initializer
- | initializer
- ;
-
-designator_list
- : designator
- | designator_list designator
- ;
-
-designator
- : '[' constant_expression ']'
- | '.' identifier
+ : initializer
+ | initializer_list ',' initializer
;
/* A.2.3 Statements. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]