diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-03 19:57:57 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-03 19:57:57 +0000 |
commit | 7ea88ecede57486de67dd078e553d83cdaa0e057 (patch) | |
tree | 84f7f5419368cb392cb58ad30d136ee73739f552 /gcc | |
parent | 834b17b7ae0831290c5ab5cce54472610c216639 (diff) | |
download | gcc-7ea88ecede57486de67dd078e553d83cdaa0e057.tar.gz |
* lex.c (file_name_nondirectory): Also check for '/'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/lex.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4e33900d442..6b2147b8e1b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +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> * parse.y (primary): Deal with statement-expressions in diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 2960d24b9fe..550ca34d076 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -117,7 +117,9 @@ char * file_name_nondirectory (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) return (char *) (tmp + 1); else |