cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and IS_DIR_SEPARATOR macros.

2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>

	* cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
	IS_DIR_SEPARATOR macros.
	* collect2.c: Likewise.
	* cppinit.c: Likewise.
	* dwarf2out.c: Likewise.
	* gcc.c: Likewise.
	* gcov.c: Likewise.
	* prefix.c: Likewise.
	* rtl.c: Likewise.
	* toplev.c: Likewise.
	* system.h: And move to here.

From-SVN: r31264
This commit is contained in:
Mumit Khan 2000-01-07 00:16:51 +00:00 committed by Mumit Khan
parent 44545f2790
commit d5b6516da5
11 changed files with 29 additions and 76 deletions

View File

@ -1,5 +1,17 @@
2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
* cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
IS_DIR_SEPARATOR macros.
* collect2.c: Likewise.
* cppinit.c: Likewise.
* dwarf2out.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* prefix.c: Likewise.
* rtl.c: Likewise.
* toplev.c: Likewise.
* system.h: And move to here.
* prefix.c (update_path): Fix typo in variable name.
2000-01-06 Richard Henderson <rth@cygnus.com>

View File

@ -46,16 +46,6 @@ typedef unsigned char U_CHAR;
# define STANDARD_INCLUDE_DIR "/usr/include"
#endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
# define PATH_SEPARATOR ':'
#endif
/* By default, a slash separates directory names. */
#ifndef DIR_SEPARATOR
# define DIR_SEPARATOR '/'
#endif
/* By default, the suffix for object files is ".o". */
#ifdef OBJECT_SUFFIX
# define HAVE_OBJECT_SUFFIX

View File

@ -49,18 +49,6 @@ Boston, MA 02111-1307, USA. */
#include "obstack.h"
#include "intl.h"
#ifndef DIR_SEPARATOR
# define DIR_SEPARATOR '/'
# define IS_DIR_SEPARATOR(ch) ((ch) == '/')
#else /* DIR_SEPARATOR */
# ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
# else /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
# endif /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
#endif /* DIR_SEPARATOR */
/* Obstack allocation and deallocation routines. */
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
@ -648,11 +636,6 @@ is_ctor_dtor (s)
return 0;
}
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
/* We maintain two prefix lists: one from COMPILER_PATH environment variable
and one from the PATH variable. */

View File

@ -37,11 +37,6 @@ extern char *version_string;
#define GET_ENV_PATH_LIST(VAR,NAME) do { (VAR) = getenv (NAME); } while (0)
#endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
#ifndef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR "/usr/include"
#endif

View File

@ -65,10 +65,6 @@ Boston, MA 02111-1307, USA. */
# define assert(e) do { if (! (e)) abort (); } while (0)
#endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* Decide whether we want to emit frame unwind information for the current
translation unit. */

View File

@ -65,15 +65,6 @@ extern int getrusage PROTO ((int, struct rusage *));
#define OBJECT_SUFFIX ".o"
#endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
#ifndef VMS
/* FIXME: the location independence code for VMS is hairier than this,
and hasn't been written. */
@ -82,14 +73,6 @@ extern int getrusage PROTO ((int, struct rusage *));
#endif /* DIR_UP */
#endif /* VMS */
/* Define IS_DIR_SEPARATOR. */
#ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
#else /* DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
#endif /* DIR_SEPARATOR_2 */
static char dir_separator_str[] = {DIR_SEPARATOR, 0};
#define obstack_chunk_alloc xmalloc

View File

@ -281,10 +281,6 @@ fnotice VPROTO ((FILE *file, const char *msgid, ...))
va_end (ap);
}
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* More 'friendly' abort that prints the line and file.
config.h can #define abort fancy_abort if you like that sort of thing. */
extern void fancy_abort PROTO ((void)) ATTRIBUTE_NORETURN;

View File

@ -82,17 +82,6 @@ static char *lookup_key PROTO((char *));
static HKEY reg_key = (HKEY) INVALID_HANDLE_VALUE;
#endif
#ifndef DIR_SEPARATOR
# define IS_DIR_SEPARATOR(ch) ((ch) == '/')
#else /* DIR_SEPARATOR */
# ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
# else /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
# endif /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
#endif /* DIR_SEPARATOR */
/* Given KEY, as above, return its value. */
static const char *

View File

@ -32,10 +32,6 @@ Boston, MA 02111-1307, USA. */
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* Obstack used for allocating RTL objects.
Between functions, this is the permanent_obstack.
While parsing and expanding a function, this is maybepermanent_obstack

View File

@ -528,6 +528,23 @@ extern void abort PARAMS ((void));
# endif
#endif /* ! HOST_PTR_PRINTF */
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* Define IS_DIR_SEPARATOR. */
#ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
#else /* DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
#endif /* DIR_SEPARATOR_2 */
/* Get libiberty declarations. */
#include "libiberty.h"

View File

@ -137,10 +137,6 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
#define PREFERRED_DEBUGGING_TYPE NO_DEBUG
#endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
#if ! (defined (VMS) || defined (OS2))
extern char **environ;
#endif