This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Remove OS-specific defines (was: _WIN32?)
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.
Kevin