Commit ab535dac by Mumit Khan Committed by Jason Merrill

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
parent d1fefbce
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> Wed Jan 21 10:29:57 1998 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
* pt.c (coerce_template_parms): Don't access elements of ARGLIST * pt.c (coerce_template_parms): Don't access elements of ARGLIST
......
...@@ -73,6 +73,10 @@ extern int errno; /* needed for VAX. */ ...@@ -73,6 +73,10 @@ extern int errno; /* needed for VAX. */
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #define obstack_chunk_free free
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
extern struct obstack permanent_obstack; extern struct obstack permanent_obstack;
extern struct obstack *current_obstack, *saveable_obstack; extern struct obstack *current_obstack, *saveable_obstack;
...@@ -104,7 +108,7 @@ char * ...@@ -104,7 +108,7 @@ char *
file_name_nondirectory (x) file_name_nondirectory (x)
char *x; char *x;
{ {
char *tmp = (char *) rindex (x, '/'); char *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