Commit d5ff227d by Tom Tromey Committed by Tom Tromey

parse-scan.y (report_main_declaration): Recognize `java.lang.String' in argument to main.

	* parse-scan.y (report_main_declaration): Recognize
	`java.lang.String' in argument to main.

From-SVN: r24361
parent 2df8df36
1998-12-17 Tom Tromey <tromey@cygnus.com>
* parse-scan.y (report_main_declaration): Recognize
`java.lang.String' in argument to main.
Wed Dec 16 16:18:59 1998 Per Bothner <bothner@cygnus.com>
* parse.y (create_interface): Remove bogus test.
......
......@@ -2368,7 +2368,8 @@ report_main_declaration (declarator)
&& !strcmp (declarator->method_name, "main")
&& declarator->args
&& declarator->args [0] == '['
&& !strcmp( declarator->args+1, "String")
&& (! strcmp (declarator->args+1, "String")
|| ! strcmp (declarator->args + 1, "java.lang.String"))
&& current_class)
{
if (!previous_output)
......
......@@ -1126,7 +1126,8 @@ report_main_declaration (declarator)
&& !strcmp (declarator->method_name, "main")
&& declarator->args
&& declarator->args [0] == '['
&& !strcmp( declarator->args+1, "String")
&& (! strcmp (declarator->args+1, "String")
|| ! strcmp (declarator->args + 1, "java.lang.String"))
&& current_class)
{
if (!previous_output)
......
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