lex.c (DIR_SEPARATOR): Define to be '/' if not already defined.

* lex.c (DIR_SEPARATOR): Define to be '/' if not already defined.
	(file_name_nondirectory): Use.

From-SVN: r17461
This commit is contained in:
Mumit Khan 1998-01-23 18:35:06 +00:00 committed by Jason Merrill
parent d1fefbce9d
commit ab535daca9
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Jan 23 18:34:37 1998 Mumit Khan <khan@xraylith.wisc.edu>
* lex.c (DIR_SEPARATOR): Define to be '/' if not already defined.
(file_name_nondirectory): Use.
Wed Jan 21 10:29:57 1998 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
* pt.c (coerce_template_parms): Don't access elements of ARGLIST

View file

@ -73,6 +73,10 @@ extern int errno; /* needed for VAX. */
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
extern struct obstack permanent_obstack;
extern struct obstack *current_obstack, *saveable_obstack;
@ -104,7 +108,7 @@ char *
file_name_nondirectory (x)
char *x;
{
char *tmp = (char *) rindex (x, '/');
char *tmp = (char *) rindex (x, DIR_SEPARATOR);
if (tmp)
return (char *) (tmp + 1);
else