www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/22/23:13:52

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C-h i can't find the Info directory node
Date: Sat, 22 Feb 1997 22:17:01 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 37
Message-ID: <330FE0DD.765@cs.com>
References: <Pine DOT SOL DOT 3 DOT 95 DOT 970222121455 DOT 4661C-100000 AT curie DOT tvi DOT cc DOT nm DOT us>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp103.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019