Mail Archives: djgpp/1997/02/22/23:13:52
David May wrote:
>
> There is an environment variable called INFOPATH that you can set to a
> list of directories where .info or .inf files are stored. I believe there
> is a setting in the djgpp.env file, but if you use any other editors (like
> JED) that let you read info files, they may not know about DJGPP's unique
> environment provisions. Set INFOPATH like this under DOS:
>
> set INFOPATH=c:/djgpp/info;c:/djgpp/gnu/emacs/info;...
>
> These should be all the directories where you have info files you want
> found by info, emacs, JED, etc.
Any DJGPP-compiled executable will automatically look at the 'djgpp.env'
file for a section that starts with the name of the executable
(argv[0]), and load any variable settings from that section into its
environment. Thus, if you add an [emacs] section to 'djgpp.env', you
can define the INFOPATH variable there and not have to worry about doing
it in DOS. The 'djgpp.env' from DJGPP v2.01 comes with a preset [emacs]
section.
It is possible to disable this environment loading in your DJGPP
programs by including <crt0.h> and defining a null version of the
__crt0_load_environment_file() function. This can reduce the size of
your compiled code by a few kilobytes, but will prevent it from having
access to the enhanced DJGPP environment.
Of course, for non-DJGPP programs, you'll need to set the INFOPATH
explicitly.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -