Commit e95d117b by Mumit Khan Committed by Jason Merrill

* lex.c (file_name_nondirectory): Also check for '/'.

From-SVN: r17634
parent 309ca998
Tue Jan 6 01:42:44 1998 Mumit Khan <khan@xraylith.wisc.edu>
* lex.c (file_name_nondirectory): Also check for '/'.
Mon Feb 2 11:24:22 1998 Mark Mitchell <mmitchell@usa.net> Mon Feb 2 11:24:22 1998 Mark Mitchell <mmitchell@usa.net>
* parse.y (primary): Deal with statement-expressions in * parse.y (primary): Deal with statement-expressions in
......
...@@ -117,7 +117,9 @@ char * ...@@ -117,7 +117,9 @@ char *
file_name_nondirectory (x) file_name_nondirectory (x)
char *x; char *x;
{ {
char *tmp = (char *) rindex (x, DIR_SEPARATOR); char *tmp = (char *) rindex (x, '/');
if (DIR_SEPARATOR != '/' && ! tmp)
tmp = (char *) rindex (x, DIR_SEPARATOR);
if (tmp) if (tmp)
return (char *) (tmp + 1); return (char *) (tmp + 1);
else else
......
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