bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slight problem with recent change?


From: Paul Eggert
Subject: Re: Slight problem with recent change?
Date: Thu, 09 Jun 2005 13:47:15 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Paul Hilfinger <address@hidden> 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  <address@hidden>

        * 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(address@hidden@], address@hidden@])[
 #  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 */
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]