[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: One more (hopefully last) patch for Bison and C++ before release
From: |
Hans Aberg |
Subject: |
Re: One more (hopefully last) patch for Bison and C++ before release |
Date: |
Tue, 18 Dec 2001 08:10:48 +0100 |
At 15:58 -0800 2001/12/17, Paul Eggert wrote:
>> I had one problem when compiling under C++, using alloca:
>> Error : undefined identifier 'size_t'
>>
>> There is a trick one can use: First in the file put:
>>
>> #ifdef __cplusplus
>> # define YYSTD(x) std::x
>> #else
>> # define YYSTD(x) x
>> #endif
>
>OK, that looks harmless for C, so I checked in the following patch to
>the bison-1_29-branch. I'll do the same for the mainline branch soon.
I figure this looks OK, so not let's this issue sealy 1.30 anymore.
>It is a bit amusing that alloca itself violates the C++ namespace
>rules, but never mind....
I am not sure what you mean here: alloca isn't in the C++ standard (and
never will be). Thus, it can be named whatever.
Hans Aberg
- Re: Bison 1.30g, Hans Aberg, 2001/12/15
- Message not available
- Re: One more (hopefully last) patch for Bison and C++ before release,
Hans Aberg <=