Commit 847fe791 by Tom Tromey Committed by Tom Tromey

parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently.

	* parse.y (check_class_interface_creation): Use DIR_SEPARATOR
	consistently.

From-SVN: r24370
parent 31f72738
1998-12-18 Tom Tromey <tromey@cygnus.com>
* parse.y (check_class_interface_creation): Use DIR_SEPARATOR
consistently.
1998-12-17 Tom Tromey <tromey@cygnus.com> 1998-12-17 Tom Tromey <tromey@cygnus.com>
* parse.y (DIR_SEPARATOR): New define. * parse.y (DIR_SEPARATOR): New define.
......
...@@ -5423,7 +5423,7 @@ check_class_interface_creation (is_interface, flags, raw_name, qualified_name, d ...@@ -5423,7 +5423,7 @@ check_class_interface_creation (is_interface, flags, raw_name, qualified_name, d
f != input_filename && f[0] != '/' && f[0] != DIR_SEPARATOR; f != input_filename && f[0] != '/' && f[0] != DIR_SEPARATOR;
f--) f--)
; ;
if (f[0] == '/') if (f[0] == '/' || f[0] == DIR_SEPARATOR)
f++; f++;
if (strncmp (IDENTIFIER_POINTER (raw_name), if (strncmp (IDENTIFIER_POINTER (raw_name),
f , IDENTIFIER_LENGTH (raw_name)) || f , IDENTIFIER_LENGTH (raw_name)) ||
......
...@@ -2785,7 +2785,7 @@ check_class_interface_creation (is_interface, flags, raw_name, qualified_name, d ...@@ -2785,7 +2785,7 @@ check_class_interface_creation (is_interface, flags, raw_name, qualified_name, d
f != input_filename && f[0] != '/' && f[0] != DIR_SEPARATOR; f != input_filename && f[0] != '/' && f[0] != DIR_SEPARATOR;
f--) f--)
; ;
if (f[0] == '/') if (f[0] == '/' || f[0] == DIR_SEPARATOR)
f++; f++;
if (strncmp (IDENTIFIER_POINTER (raw_name), if (strncmp (IDENTIFIER_POINTER (raw_name),
f , IDENTIFIER_LENGTH (raw_name)) || f , IDENTIFIER_LENGTH (raw_name)) ||
......
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