Yeah, I hope that the Proj folks just change the identifiter. This sort of
nonsense is one of the major reasons I prefer Perl over C: proper namespace
handling. I've gotten much more skilled at it lately, but I wish I didn't
need to. :-)
On Mon, May 25, 2015 at 8:22 PM, <sisyph...@optusnet.com.au> wrote:
> -----Original Message----- From: sisyph...@optusnet.com.au
> Sent: Tuesday, May 26, 2015 9:40 AM
> To: David Mertens
> Cc: pdl-devel@lists.sourceforge.net
> Subject: Re: [Pdl-devel] Insert C code before '#include "EXTERN.h"'
>
> OK - all they would need to do is change:
>>
>> typedef union { double f; int i; char *s; } PVALUE;
>>
>> to something like:
>>
>> typedef union { double f; int i; char *s; } PROJVALUE;
>>
>> and then add:
>>
>> /* For backwards compatibility. PVALUE is deprecated - use PROJVALUE */
>> #ifndef _WINREG_ /* _WINREG_ is defined by winreg.h */
>> #define PVALUE PROJVALUE
>> #endif
>>
>
> Forgot to mention that they (obviously) also need to replace all other
> occurrences of PVALUE in the source with PROJVALUE.
>
> Also, deprecating PVALUE (following their rules regarding deprecation),
> should open the door to its eventual removal in an acceptable manner.
>
> Cheers,
> Rob
>
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." -- Brian Kernighan
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel