[Info-vax] C... the only winning move is not to play...

Neil Rieck n.rieck at sympatico.ca
Fri Feb 14 07:27:33 EST 2014


On Sunday, February 9, 2014 6:17:04 PM UTC-5, VAXm... at SendSpamHere.ORG wrote:
> I've encountered a VMS library call prototype that is incorrect.  How can
> 
> I override/overwrite the prototype in my source to make it correct?  I've
> 
> used other routines from this library without issue save for this one.  Is
> 
> there a #pragma that allows for or provides this?  I've read the on-line
> 
> help but don't see anything under #pragma.
> 
> 
> 
> -- 
> 
> VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG
> 
> 
> 
> Well I speak to machines with the voice of humanity.

Is this a VAX or Alpha problem? I am assuming it is not an Itanium problem because Itanium code generation tools (both C and C++ compilers) as well as the Linker were developed past Alpha. BTW, HP did not add Itanium features to Alpha (even though the new HP was supposed to be a merger of HP and Compaq, Alpha was treated like the proverbial red-headed step child)
 
On a related note, anyone doing code maintenance on C or C++ sources would be wise to insert this directive as close to the top as possible.
 
#define __NEW_STARLET 1 // enable new (strict) starlet for OpenVMS Alpha 7.0
 
for more information about this, please read:
http://h71000.www7.hp.com/doc/82final/5841/5841pro_059.html

The compile-time directive discussed in section 21.2 will allow you to pretest your code to see how broken it is before code renovation.

Neil Rieck
Kitchener / Waterloo / Cambridge,
Ontario, Canada.
http://www3.sympatico.ca/n.rieck/ 
 




More information about the Info-vax mailing list