Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
To: kevinb@cygnus.com
Cc: gdb-patches@sources.redhat.com, Christopher Faylor <cgf@redhat.com>
Subject: Re: [RFA] Remove OS-specific defines (was: _WIN32?)
Date: Sun, 10 Jun 2001 06:28:00 -0000	[thread overview]
Message-ID: <200106101329.QAA08014@is.elta.co.il> (raw)
In-Reply-To: <1010507173855.ZM18890@ocotillo.lan>

> Date: Mon, 7 May 2001 10:38:55 -0700
> From: Kevin Buettner <kevinb@cygnus.com>
> 
> On May 7,  7:10pm, Eli Zaretskii wrote:
> 
> > 	* solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
> > 	instead of SLASH_CHAR, ROOTED_P and SLASH_P.
> > 	(top-level): #include "filenames.h".
> 
> Your changes to solib.c are approved.  (FWIW, I glanced over your
> changes to the other files and they look good too.)
> 
> > 	* defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
> > 	(SLASH_STRING): Define only for _WIN32.
> 
> Once your changes to the other .c files are approved, I think this
> one can be regarded as an obvious change.
> 
> Don't forget to also remove the definitions of SLASH_P, SLASH_CHAR, and
> ROOTED_P in config/i386/xm-cygwin.h and config/i386/xm-go32.h.

This time is now.  Chris, is the patch below okay with you?

2001-06-10  Eli Zaretskii  <eliz@is.elta.co.il>

	* config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
	(SLASH_STRING): Remove unised definitions
	* config/i386/xm-go32.h: Likewise.


--- gdb/config/i386/xm-go32.h~0	Mon Apr  3 17:44:56 2000
+++ gdb/config/i386/xm-go32.h	Sun Jun 10 15:50:42 2001
@@ -24,13 +24,6 @@
 
 #define GDBINIT_FILENAME "gdb.ini"
 
-#define SLASH_P(X) ((X)=='\\' || (X) == '/')
-
-#define ROOTED_P(X) ((SLASH_P((X)[0])) || ((X)[0] && (X)[1] ==':'))
-
-#define SLASH_CHAR '/'
-#define SLASH_STRING "/"
-
 #define CRLF_SOURCE_FILES
 
 #define DIRNAME_SEPARATOR ';'
--- gdb/config/i386/xm-cygwin.h~0	Fri Mar  2 05:14:48 2001
+++ gdb/config/i386/xm-cygwin.h	Sun Jun 10 16:00:46 2001
@@ -24,11 +24,6 @@
 
 #define GDBINIT_FILENAME "gdb.ini"
 
-#define SLASH_P(X) ((X)=='\\' || (X) == '/')
-#define ROOTED_P(X) ((SLASH_P((X)[0]))|| ((X)[1] ==':'))
-#define SLASH_CHAR '/'
-#define SLASH_STRING "/"
-
 /* Define this if source files use \r\n rather than just \n.  */
 #define CRLF_SOURCE_FILES
 


  parent reply	other threads:[~2001-06-10  6:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010503211502.21716.qmail@web6401.mail.yahoo.com>
     [not found] ` <3AF1DAA0.3060702@cygnus.com>
     [not found]   ` <200105071610.TAA24144@is.elta.co.il>
2001-05-13  1:29     ` Eli Zaretskii
2001-05-13  7:09       ` Fernando Nasser
2001-05-13 23:34         ` Eli Zaretskii
2001-05-14 13:18           ` Andrew Cagney
2001-06-04  0:46             ` Eli Zaretskii
     [not found]     ` <1010507173855.ZM18890@ocotillo.lan>
2001-05-07 11:24       ` Eli Zaretskii
2001-06-10  6:28       ` Eli Zaretskii [this message]
2001-06-12 17:14         ` Christopher Faylor
2001-06-13  2:08           ` Eli Zaretskii
     [not found]   ` <200105071609.TAA24129@is.elta.co.il>
     [not found]     ` <200105081141.OAA06131@is.elta.co.il>
2001-06-10  6:27       ` [RFA] Re: DOS/Windows-specific code: cli-cmds.c Eli Zaretskii
     [not found] <3AF6EB58.1020904@cygnus.com>
2001-05-10  3:31 ` [RFA] Remove OS-specific defines (was: _WIN32?) Eli Zaretskii
2001-05-07 11:36 David Taylor
2001-05-08  0:12 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200106101329.QAA08014@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    --cc=cgf@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox