summaryrefslogtreecommitdiffstats
path: root/gcc/java/jcf-io.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-12 11:43:19 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-12 11:43:19 +0000
commite97418967c52d92c05f137516e58a9c010d98c83 (patch)
treed52233da6156ebaa9797083f8e59e615bba76a63 /gcc/java/jcf-io.c
parentc37492b0014292e0bff20003af24425eff1e584c (diff)
downloadppe42-gcc-e97418967c52d92c05f137516e58a9c010d98c83.tar.gz
ppe42-gcc-e97418967c52d92c05f137516e58a9c010d98c83.zip
* jcf-io.c (find_class): Added explanatory comment.
* jcf-path.c (add_entry): Look for `.zip' at end of filename. Add trailing slash to `.zip' entries. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23615 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r--gcc/java/jcf-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index 43e96cf94c0..c1c5b7aa783 100644
--- a/gcc/java/jcf-io.c
+++ b/gcc/java/jcf-io.c
@@ -282,6 +282,8 @@ DEFUN(find_class, (classname, classname_length, jcf, do_class_file),
strcpy (buffer, jcf_path_name (entry));
i = strlen (buffer);
+ /* This is right because we know that `.zip' entries will have a
+ trailing slash. See jcf-path.c. */
dir_len = i - 1;
for (k = 0; k < classname_length; k++, i++)
OpenPOWER on IntegriCloud