Commit 076b41ee by Alexandre Oliva Committed by Alexandre Oliva

jcf-path.c (add_entry): recognize ".jar" too

	* jcf-path.c (add_entry): recognize ".jar" too
	* lang-specs.h: ditto

From-SVN: r23907
parent c5941a9f
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}\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment