Re: [PATCH] Changes to ext_skel for C++

From: Date: Fri, 29 Nov 2002 20:08:19 +0000
Subject: Re: [PATCH] Changes to ext_skel for C++
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-91939@lists.php.net to get a copy of this message
On Fri, 29 Nov 2002, J Smith wrote: > > Attached is a patch to ext_skel that adds an optional argument (--cpp) that > will create a PHP extension in C++ rather than C. Also attached is > skeleton.cpp, which basically mirrors ext/skeleton/skeleton.c with a few > modifications for using C++. I could've just made some changes to > skeleton.c and done some sed work in the ext_skel script, but I think it's > clearer to have them separated into two files. I'm reluctant to duplicate the contents of the .c file for maintenance reason. Cannot you just put the C++ specific code into a /* Remove this part, if this is not a C++ extension */ #ifdef __cplusplus #endif section? - Sascha

« previous php.dev (#91939) next »