[1474] in Source-Commits
athena/bin/olc/clients/motif main.c
daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Apr 30 13:45:31 1997
From: Greg Hudson <ghudson@MIT.EDU>
To: source-commits@MIT.EDU
Date: Wed, 30 Apr 1997 13:45:27 EDT
Update of /afs/dev.mit.edu/source/repository/athena/bin/olc/clients/motif
In directory the-light-fantastic:/afs/dev.mit.edu/user/ghudson/progress/olc/clients/motif
Modified Files:
main.c
Log Message:
From bert:
Changes to support config files (to make olc*, olt* and owl* one
binary):
* Removed extern declarations for int OLC and OLCR.
In main():
* Removed "magic" comparison to determine from argv[0] if this
is supposed to be a user or a consulting client.
* Added code to support "incarnating" a particular client from
its configuration file, found in path given by OLXX_PATH or
cmd line.
* Added new command line options to deal with:
- specifying client name without argv[0] hacking
("-name")
- specifying the search path for the config file
("-config")
In olc_init():
* OLC (in an irrelevant context) changed to 0
[NOTE: xolc is still not capable of being an OLTA/OWL client,
since things like "OLC" and "consultant" are hardcoded in too
many places, but the libraries now require configuration file
support in all clients.]
Decreased ugliness: Changed all putenv()/setenv() alternatives to use
a single function call instead (to set_env_var(), which was also
added).
Removed a bug which made flags with no arguments cause unusual
behavior or segmentation faults.