diff options
author | Nic Ferrier <nferrier@tapsellferrier.co.uk> | 2002-02-20 23:12:25 +0000 |
---|---|---|
committer | Nic Ferrier <nferrier@tapsellferrier.co.uk> | 2002-02-20 23:12:25 +0000 |
commit | f5ff288103f5222009327f9694dfa363639b8984 (patch) | |
tree | 8669888d476de6362ca887ed220ce715d09dd392 /gcc/java/jcf-path.c | |
parent | 83f3867d049910bcd2cffb553cbf640f187004c0 (diff) |
* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option
`--CLASSPATH' becomes `--classpath.'
* gjavah.c: Likewise.
* jcf-dump.c: Likewise.
* lang-options.h: Likewise.
* lang.c: Likewise.
* jcf-path.c: Updated comment.
(jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.'
(jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.'
* jcf.h (jcf_path_CLASSPATH_arg): Ditto.
(jcf_path_CLASSPATH_arg): Ditto.
(classpath_u): Updated leading comment.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@49918 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-path.c')
-rw-r--r-- | gcc/java/jcf-path.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c index 079cb365411..efdd8433302 100644 --- a/gcc/java/jcf-path.c +++ b/gcc/java/jcf-path.c @@ -71,8 +71,8 @@ static void add_path PARAMS ((struct entry **, const char *, int)); built-in system directory (only libgcj.jar) CLASSPATH environment variable - -CLASSPATH overrides CLASSPATH - -classpath option - overrides CLASSPATH, -CLASSPATH, and built-in + -classpath option overrides $CLASSPATH + -CLASSPATH option overrides $CLASSPATH, -classpath, and built-in -I prepends path to list We implement this by keeping several path lists, and then simply @@ -84,10 +84,10 @@ static struct entry *include_dirs; /* This holds the CLASSPATH environment variable. */ static struct entry *classpath_env; -/* This holds the -CLASSPATH command-line option. */ +/* This holds the -classpath command-line option. */ static struct entry *classpath_u; -/* This holds the -classpath command-line option. */ +/* This holds the -CLASSPATH command-line option. */ static struct entry *classpath_l; /* This holds the default directories. Some of these will have the @@ -284,18 +284,23 @@ jcf_path_init () add_path (&classpath_env, cp, 0); } -/* Call this when -classpath is seen on the command line. */ +/* Call this when -CLASSPATH is seen on the command line. + This is the override-all switch, even the built in classes + are overridden. + */ void -jcf_path_classpath_arg (path) +jcf_path_CLASSPATH_arg (path) const char *path; { free_entry (&classpath_l); add_path (&classpath_l, path, 0); } -/* Call this when -CLASSPATH is seen on the command line. */ +/* Call this when -classpath is seen on the command line. + This overrides only the $CLASSPATH environment variable. + */ void -jcf_path_CLASSPATH_arg (path) +jcf_path_classpath_arg (path) const char *path; { free_entry (&classpath_u); |