Re: C++, XS, and dNOOP, or Doing Nothing is Hard Work
[email protected] (Tony Cook) Sat, 5 May 2012 12:13:34 +1000
| Newsgroups | perl.perl5.porters,perl.vmsperl |
|---|---|
| Message-ID | <[email protected]> |
On Fri, May 04, 2012 at 11:57:42AM -0500, Craig A. Berry wrote: > I've been taking a swing at compiling Perl with the HP C++ compiler for OpenVMS.[1] There are a number of wrinkles to iron out, one of which boils down to: > > $ type try.c > #define dNOOP extern int Perl___notused(void) > #define XSPROTO(name) void name(void) > #define XS(name) extern "C" XSPROTO(name) C++ has allowed mixed statements and declarations since its creation, how about: #ifdef __cplusplus #define dNOOP #else #define dNOOP extern int Perl___notused(void) #endif Tony