Paul Hilfinger <[EMAIL PROTECTED]> writes:
> Yes, maybe (who knows what constitutes "good style" in automatically
> generated code), and yes.
Thanks for checking. I installed it. Here it is again with a
changelog entry this time, for the record:
2005-06-09 Paul Eggert <[EMAIL PROTECTED]>
* data/yacc.c (malloc, free) [defined __cplusplus]: Wrap inside
extern "C" {}. This fixes a problem reported by Paul Hilfinger,
which stems from the 2005-05-27 patch.
--- data/yacc.c 30 May 2005 17:22:55 -0000 1.91
+++ data/yacc.c 9 Jun 2005 20:36:27 -0000
@@ -262,6 +262,9 @@ b4_syncline([EMAIL PROTECTED]@], [EMAIL PROTECTED]@])[
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
# endif
+# ifdef __cplusplus
+extern "C" {
+# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
@@ -276,6 +279,9 @@ void *malloc (YYSIZE_T); /* INFRINGES ON
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
+# ifdef __cplusplus
+}
+# endif
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */