[net.unix-wizards] Naming conventions for library funct

mark (03/16/83)

#R:watmath:-469500:zinfandel:12400020:000:822
zinfandel!mark    Mar 10 11:37:00 1983

This is easily done without language extensions, and we've done it here
to allow standard C programs to access routines and variables in an HP
operating system, which uses long identifiers without a prepended underscore.

After compiling your source you run the object through a post-processor
which systematically changes a known set of undefined global C names
into the HP equivalent names.  An extension which we haven't yet added
(it hasn't been needed yet)
is to allow the user to specify {more,only} names to be changed.

Of course there should be a note in the source code somewhere to mention
that those names are magic ...

This is a little bit non-portable, but it only requires porting the post
processor, which is easy but dependent on byte-order and word size.


Mark Wittenberg
...!decvax!sytek!zehntel!mark