Commit 4197ac78 by Mumit Khan Committed by Richard Henderson

xm-cygwin.h (HAVE_BCOPY): Delete unneeded macro.

        * i386/xm-cygwin.h (HAVE_BCOPY): Delete unneeded macro.
        (HAVE_BZERO): Likewise.
        (HAVE_BCMP): Likewise.
        (HAVE_RINDEX): Likewise.
        (HAVE_INDEX): Likewise.
        (DIR_SEPARATOR_2): Define.
        (GET_ENV_PATH_LIST): Turn path lists into POSIX.
        (PATH_SEPARATOR): Use ':'.

From-SVN: r26584
parent 12d03f66
Thu Apr 22 14:39:43 1999 Mumit Khan <khan@xraylith.wisc.edu>
* i386/xm-cygwin.h (HAVE_BCOPY): Delete unneeded macro.
(HAVE_BZERO): Likewise.
(HAVE_BCMP): Likewise.
(HAVE_RINDEX): Likewise.
(HAVE_INDEX): Likewise.
(DIR_SEPARATOR_2): Define.
(GET_ENV_PATH_LIST): Turn path lists into POSIX.
(PATH_SEPARATOR): Use ':'.
1999-04-22 Bruce Korb <ddsinc09@ix.netcom.com> 1999-04-22 Bruce Korb <ddsinc09@ix.netcom.com>
* configure.in: enable disabling of fast fixincludes * configure.in: enable disabling of fast fixincludes
......
...@@ -21,11 +21,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -21,11 +21,6 @@ Boston, MA 02111-1307, USA. */
#define EXECUTABLE_SUFFIX ".exe" #define EXECUTABLE_SUFFIX ".exe"
#define NO_SYS_SIGLIST 1 #define NO_SYS_SIGLIST 1
#define HAVE_BCOPY 1
#define HAVE_BZERO 1
#define HAVE_BCMP 1
#define HAVE_RINDEX 1
#define HAVE_INDEX 1
/* We support both "/" and "\" since everybody tests both but we /* We support both "/" and "\" since everybody tests both but we
default to "/". This is important because if gcc produces Win32 default to "/". This is important because if gcc produces Win32
...@@ -34,33 +29,28 @@ Boston, MA 02111-1307, USA. */ ...@@ -34,33 +29,28 @@ Boston, MA 02111-1307, USA. */
slashes so using a forward slash shouldn't be problematic from the slashes so using a forward slash shouldn't be problematic from the
perspective of wanting gcc to produce native Win32 paths. */ perspective of wanting gcc to produce native Win32 paths. */
#define DIR_SEPARATOR '/' #define DIR_SEPARATOR '/'
#define DIR_SEPARATOR_2 '\\'
/* If we allow both '/' and '\' as dir separators, then /* Convert win32 style path lists to POSIX style for consistency. */
allow both unix and win32 PATH syntax. */
#undef GET_ENV_PATH_LIST #undef GET_ENV_PATH_LIST
#define GET_ENV_PATH_LIST(VAR,NAME) \ #define GET_ENV_PATH_LIST(VAR,NAME) \
do { \ do { \
char *_epath; \ char *_epath; \
char *_win32epath; \ char *_posixepath; \
_epath = _win32epath = getenv (NAME); \ _epath = _posixepath = getenv (NAME); \
/* if we have a posix path list, convert to win32 path list */ \ /* if we have a posix path list, convert to posix path list */ \
if (_epath != NULL && *_epath != 0 \ if (_epath != NULL && *_epath != 0 \
&& cygwin32_posix_path_list_p (_epath)) \ && ! cygwin_posix_path_list_p (_epath)) \
{ \ { \
char *p; \ char *p; \
_win32epath = (char *) xmalloc \ _posixepath = (char *) xmalloc \
(cygwin32_posix_to_win32_path_list_buf_size (_epath)); \ (cygwin_win32_to_posix_path_list_buf_size (_epath)); \
cygwin32_posix_to_win32_path_list (_epath, _win32epath); \ cygwin_win32_to_posix_path_list (_epath, _posixepath); \
for (p = _win32epath; p && *p; ++p) \
{ \
if (*p == '\\') \
*p = '/'; \
} \
} \ } \
(VAR) = _win32epath; \ (VAR) = _posixepath; \
} while (0) } while (0)
#define PATH_SEPARATOR ';' #define PATH_SEPARATOR ':'
/* This is needed so that protoize will compile. */ /* This is needed so that protoize will compile. */
#ifndef POSIX #ifndef POSIX
......
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