Skip to contentSkip to conversation

duplicate YYSTYPE_IS_TRIVIAL =>1st *_DECLARED

PATCH In review Roel Kluin 2 participants 2 messages Jan 30, 2008

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 duplicate YYSTYPE_IS_TRIVIAL =>1st *_DECLARED

Untested patch, please confirm it's the right fix.
--
duplicate YYSTYPE_IS_TRIVIAL, 2nd should be YYSTYPE_IS_DECLARED

---

scripts/genksyms/parse.c_shipped +1 -1
index 3e6079f..61f7539 100644
@@ -377,7 +377,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
 
 #if (! defined yyoverflow \
      && (! defined __cplusplus \
-	 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+	 || (defined YYSTYPE_IS_DECLARED && YYSTYPE_IS_TRIVIAL)))
 
 /* A type that is properly aligned for any stack member.  */
 union yyalloc
scripts/kconfig/zconf.tab.c_shipped +1 -1
index d22d924..9a7bcc7 100644
@@ -389,7 +389,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
 
 #if (! defined yyoverflow \
      && (! defined __cplusplus \
-	 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+	 || (defined YYSTYPE_IS_DECLARED && YYSTYPE_IS_TRIVIAL)))
 
 /* A type that is properly aligned for any stack member.  */
 union yyalloc
#1 lore raw
Quoted 1 line · Roel Kluin

Untested patch, please confirm it's the right fix.

First off - I do not see what problem you are trying to fix. Second - this is generated files that we never manually edit. If the generated files are wrong the tools to generate the files should be fixed.

Sam