[Info-vax] C... the only winning move is not to play...
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Mon Feb 10 06:55:15 EST 2014
In article <52f844d6$0$53720$c3e8da3$14a0410e at news.astraweb.com>, JF Mezei <jfmezei.spamnot at vaxination.ca> writes:
>On 14-02-09 21:09, VAXman- @SendSpamHere.ORG wrote:
>
>> Grrr... I have to build against VMS version variants back to V7.2 for this
>> particular project.
>
>Do a "diff" on the faulty header on multiple versions to see if anything
>significant has changed between versions for ANY function in that
>header. If not, then you are safe in creating your own local copy that
>you include instead of the one from the faulty system library.
>
>Remember that the function prototypes only exist to please the
>compiler's syntax checking. I doubt very much that it changes generated
>code.
Correct. However, I'm #include'ing the OpenVMS system supplied prototype
definitions with are WRONG! The problem has been remedied with V8.* but
they're farked pre-V8.*.
>One suggestion which I have not checked/tested.
>
>If you can't redefine SYS$BINTIM(), try this:
>
>VAXMAN$BINTIN(int *binary, struct dsc$w_descriptor *string_time);
>#define VAXMAN$BINTIM SYS$BINTIM
>
>This might might work if the compiler does the function prototype
>checking before symbol substitution. Again, untested.
Kludge... Oh, that's right, this is C the lingo of the kludge.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
Well I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list