On Jun 24, 2010, at 4:54 PM, John E. Malmberg wrote: > On 6/24/2010 2:03 PM, Mark Berryman wrote: >> >> On Jun 24, 2010, at 12:08 PM, Craig A. Berry wrote: >> >>> >>>> 4. Too many extensions like to use labels that differ only in >>>> case or reference external libraries that are built with >>>> /names=(as_is,short). By editing 3 include files in Perl, extern.h, >>>> perl.h, and xsub.h in PERL_ROOT:[.LIB.VMS_arch.5_12_1.CORE], to set the >>>> NAMES pragma to uppercase at the beginning of the file and restore it at >>>> the end, I am able to modify the generated DESCRIP.MMS file of the >>>> extension being built to include the names=(as_is,short) switch and >>>> build the extension without difficulty. I believe this would be worth >>>> doing as part of the standard installation. It would also be nice if >>>> there were an option to add this switch into the generated DESCRIP.MMS >>>> automatically. >>> >>> You can get /NAMES=AS_IS by configuring the Perl build with: >>> >>> $ @configure -"Dbe_case_sensitive=Y" -"des" > > Unfortunately pragma names are not standardized. While they may end up > meaning the same thing on different compilers, nothing enforces that, so > pragmas must be wrapped with a test for the compilers that they are known to > be valid on that may be used for the compilation. It gets messy fast.
I may not have been clear. I am suggesting that the build procedure add these pragmas to the appropriate .H files as they are copied into the target install directory. I was not suggesting that they be added into the actual source code. Mark Berryman