home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v3 / text0033.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  835 b 

  1. Date: Fri, 22 Nov 85 08:58:04 cst
  2. From: allegra!jpl (John P. Linderman)
  3.  
  4. It is possible to combine several of the proposed solutions to
  5. run time lookup of symbolic constants.  For example, one might
  6. do the following to establish the values V1 ... Vn as defined
  7. in file H.h:
  8.  
  9. 1)  Attempt the cc -E lookup in H.h.
  10. 2)  If any (or all) values remain undefined, try the table lookup
  11.     in /etc/H.
  12. 3)  If the user has specified environment variable H-Vi, use that
  13.     instead of any lookup value.
  14. 4)  Return the values.
  15.  
  16. Shuffle the precedence as you see fit.  You can arrange for /etc/H to
  17. override the values in H.h.  You can ignore what's in the environment.
  18. Perhaps we can agree on what makes the most sense, and then somebody
  19. can crank out a routine for public use.
  20.  
  21. John P. Linderman  allegra!jpl
  22.  
  23. Volume-Number: Volume 3, Number 35
  24.  
  25.