diff options
author | Nic Ferrier <nferrier@gcc.gnu.org> | 2002-02-20 23:12:25 +0000 |
---|---|---|
committer | Nic Ferrier <nferrier@gcc.gnu.org> | 2002-02-20 23:12:25 +0000 |
commit | db444fbe8e0c175e38c49560c852181678c8ef1d (patch) | |
tree | 8669888d476de6362ca887ed220ce715d09dd392 /gcc/java/jcf-path.c | |
parent | 3704ef744f0b39b4c28d84bef7702644b62ccefb (diff) | |
download | gcc-db444fbe8e0c175e38c49560c852181678c8ef1d.zip gcc-db444fbe8e0c175e38c49560c852181678c8ef1d.tar.gz gcc-db444fbe8e0c175e38c49560c852181678c8ef1d.tar.bz2 |
gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes...
* 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.
From-SVN: r49918
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 079cb36..efdd843 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); |