limits ltd.

Moderator, John Quarterman std-unix at ut-sally.UUCP
Sat Nov 23 03:26:40 AEST 1985


Date: Fri, 22 Nov 85 08:58:04 cst
From: allegra!jpl (John P. Linderman)

It is possible to combine several of the proposed solutions to
run time lookup of symbolic constants.  For example, one might
do the following to establish the values V1 ... Vn as defined
in file H.h:

1)  Attempt the cc -E lookup in H.h.
2)  If any (or all) values remain undefined, try the table lookup
    in /etc/H.
3)  If the user has specified environment variable H-Vi, use that
    instead of any lookup value.
4)  Return the values.

Shuffle the precedence as you see fit.  You can arrange for /etc/H to
override the values in H.h.  You can ignore what's in the environment.
Perhaps we can agree on what makes the most sense, and then somebody
can crank out a routine for public use.

John P. Linderman  allegra!jpl

Volume-Number: Volume 3, Number 35



More information about the Mod.std.unix mailing list