jcf-path.c (add_entry): recognize ".jar" too
* jcf-path.c (add_entry): recognize ".jar" too * lang-specs.h: ditto From-SVN: r23907
This commit is contained in:
parent
c5941a9f1d
commit
076b41ee48
3 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Nov 26 22:03:58 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* jcf-path.c (add_entry): recognize ".jar" too
|
||||
* lang-specs.h: ditto
|
||||
|
||||
Thu Nov 26 12:44:07 1998 Per Bothner <bothner@cygnus.com>
|
||||
|
||||
* jcf-write.c (generate_bytecode_insns): In Call_EXPR, handle
|
||||
|
|
|
@ -141,7 +141,8 @@ add_entry (entp, filename, is_system)
|
|||
n->next = NULL;
|
||||
|
||||
len = strlen (filename);
|
||||
if (len > 4 && ! strcmp (filename + len - 4, ".zip"))
|
||||
if (len > 4 && (! strcmp (filename + len - 4, ".zip")
|
||||
|| ! strcmp (filename + len - 4, ".jar")))
|
||||
{
|
||||
n->flags |= FLAG_ZIP;
|
||||
/* If the user uses -classpath then he'll have to include
|
||||
|
|
|
@ -27,6 +27,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
|
|||
{".java", {"@java"} },
|
||||
{".class", {"@java"} },
|
||||
{".zip", {"@java"} },
|
||||
{".jar", {"@java"} },
|
||||
{"@java",
|
||||
{"%{!E:jc1 %i %1 %{!Q:-quiet} %{d*} %{m*} %{a}\
|
||||
%{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
|
||||
|
|
Loading…
Add table
Reference in a new issue