From 733b3a87ca33556dec810133a1ccf57ead86b504 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 12 Nov 1998 11:43:19 +0000 Subject: jcf-io.c (find_class): Added explanatory comment. * 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. From-SVN: r23615 --- gcc/java/jcf-io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/java/jcf-io.c') diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index 43e96cf..c1c5b7a 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++) -- cgit v1.1