Re: [PATCH] Changes to ext_skel for C++
| From: | J Smith | Date: | Mon, 02 Dec 2002 15:06:48 +0000 |
| Subject: | Re: [PATCH] Changes to ext_skel for C++ | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92008@lists.php.net to get a copy of this message | ||
That's what I was thinking. The new patch updates skeleton.c a bit and fixes
ext_skel to either add extern "C" stuff to skeleton.c or get rid of it. I
think it would be simpler for extension first-timers to not worry about
what __cplusplus means, or why extern "C" is there in the first place, etc.
J
Sterling Hughes wrote:
>> Is there any reason the ifdef __cplusplus doesn't work? There shouldn't
>> be any need for extra processing or config options.
>>
>
> well, i think c++ code might confuse people just starting out writing a C
> extension...
>
> -Sterling
>