🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.std.unix
Article #43

limits ltd.

#43
From: Moderator, John Quarterman
Date: Fri, 22 Nov 1985 17:26
23 lines
1440 bytes
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
Technical Details
Message-ID: <3625@ut-sally.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!gatech!seismo!ut-sally!std-unix

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site ut-sally.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!gatech!seismo!ut-sally!std-unix
From: std-unix@ut-sally.UUCP (Moderator, John Quarterman)
Newsgroups: mod.std.unix
Subject: limits ltd.
Message-ID: <3625@ut-sally.UUCP>
Date: Fri, 22-Nov-85 12:26:40 EST
Article-I.D.: ut-sally.3625
Posted: Fri Nov 22 12:26:40 1985
Date-Received: Sun, 24-Nov-85 05:31:37 EST
Organization: IEEE/P1003 Portable Operating System Environment Committee
Lines: 23
Approved: jsq@ut-sally.UUCP