[Info-vax] For OpenVMS hackers

VAXman- at SendSpamHere.ORG VAXman- at SendSpamHere.ORG
Thu Aug 30 17:08:48 EDT 2012


In article <feydnc269OGyK6LNnZ2dnUVZ_qadnZ2d at insightbb.com>, "John Reagan" <johnrreagan at earthlink.net> writes:
>
>> const char ELF_magic[16] = "\x7f\x45\x4c\x46\2\1\1\xd\2\0\0\0\0\0\0";
>> 
>> Yuck!!!  You included ELFDEF, why not use it?
>
>Certainly won't work for any big-endian version of OpenVMS... ;)

LOL!

I hate seeing stuff like that.  Hell, I hate seeing C but that's another
nit for picking another day.  There are constants defined in the ELFDEF
to symbolically denote the various values in that "yuck" and there are
offsets defined symbolically for the positions which become occupied by
those constants.  I like to look at code and be able to see what and why
values are used.  Of course, that's C which is self-documenting, right?

-- 
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