home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5372 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  2.3 KB

  1. Path: sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!nigel.msen.com!caen!uakari.primate.wisc.edu!ames!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
  2. From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: BGI Env variable
  5. Message-ID: <exuptr.542.716424482@exu.ericsson.se>
  6. Date: 13 Sep 92 22:48:02 GMT
  7. References: <2148.2AAF90B7@catpe.alt.za> <1992Sep11.125327.20440@kth.se> <1992Sep12.070621.17525@lugb.latrobe.edu.au>
  8. Sender: news@exu.ericsson.se
  9. Organization: Ericsson Network Systems, Inc.
  10. Lines: 36
  11. Nntp-Posting-Host: pc254167.exu.ericsson.se
  12.  
  13. In article <1992Sep12.070621.17525@lugb.latrobe.edu.au> 9125113g@lux.latrobe.edu.au (Mitch Davis) writes:
  14. >From: 9125113g@lux.latrobe.edu.au (Mitch Davis)
  15. >Subject: Re: BGI Env variable
  16. >Date: 12 Sep 92 07:06:21 GMT
  17.  
  18. >In article <1992Sep11.125327.20440@kth.se> kjell@weber.e.kth.se (Kjell Rilbe) writes:
  19. >>In article <2148.2AAF90B7@catpe.alt.za> Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org (Louis Mandelstam) writes:
  20. >>>.....
  21. >>
  22. >>Wouldn't it be best to fo it this way: Let the program check for the 
  23. >>environment variable BGI, and if it exists, use the BGI it sepcifies,
  24. >>otherwise use the built-in autodetect to find which one of the standard
  25. >>(and linked-in) BGI:s to use.
  26.  
  27. >In fact, (since a LOT of programs just pass an empty string to the BGI
  28. >Init thingy), the '' can be replaced with GetEnv('BGI'), and you get the
  29. >best of both worlds - downward compatibility and support for the BGI
  30. >variable.
  31.  
  32. >I also think (Duncan!) BGIDRV and BGIFNT are suitable names for the
  33. >other options.
  34.  
  35. >Mitch.
  36.  
  37. How about replacing the '' with getenv('BGI') + ';' + getenv('PATH');
  38. The latter segment is what I currently use, and since most (but admittedly
  39. not all) programs called in this way are on the path, presumably the BGI
  40. files would be also.
  41.  
  42.  ----------------------------------------------------------------------------
  43.     "This must be Thursday.  I never could get the hang of Thursdays"
  44.                                                        - Douglas Adams
  45.   - Patrick Taylor                                       (Arthur Dent)
  46.     Ericsson Network Systems
  47.     exuptr@exu.ericsson.se                       "Don't let the .se fool you"
  48.     or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
  49.