]> git.ipfire.org Git - thirdparty/gcc.git/commit
filenames.h (IS_DIR_SEPARATOR_1): Rename from IS_DIR_SEPARATOR...
authorPedro Alves <pedro@codesourcery.com>
Sat, 24 Apr 2010 00:55:41 +0000 (00:55 +0000)
committerDJ Delorie <dj@gcc.gnu.org>
Sat, 24 Apr 2010 00:55:41 +0000 (20:55 -0400)
commit3009276c375bf3aa661dba71a1968ecfa41396a5
tree69200e3764b98a3e99f34a5565afb55749e7ce70
parent5b29e4f6dde3163cf40ee14282008d6566281d6a
filenames.h (IS_DIR_SEPARATOR_1): Rename from IS_DIR_SEPARATOR...

2010-04-23  Pedro Alves  <pedro@codesourcery.com>

include/
* filenames.h (IS_DIR_SEPARATOR_1): Rename from IS_DIR_SEPARATOR,
always define it independently of host, add `dos_based' parameter,
and handle it.
(HAS_DRIVE_SPEC_1): Rename from HAS_DRIVE_SPEC, always define it
independently of host, add `dos_based' parameter, and handle it.
(IS_ABSOLUTE_PATH_1): Rename from IS_ABSOLUTE_PATH, always define
it independently of host, add `dos_based' parameter, and handle
it.
(IS_DOS_DIR_SEPARATOR, IS_DOS_ABSOLUTE_PATH)
(IS_UNIX_DIR_SEPARATOR, IS_UNIX_ABSOLUTE_PATH)
(HAS_DOS_DRIVE_SPEC): New.
(HAS_DRIVE_SPEC): Reimplement on top of HAS_DRIVE_SPEC_1.
(IS_DIR_SEPARATOR): Reimplement on top of IS_DIR_SEPARATOR_1.
(IS_ABSOLUTE_PATH): Reimplement on top of IS_ABSOLUTE_PATH_1.
* libiberty.h (dos_lbasename, unix_lbasename): Declare.

libiberty/
* lbasename.c (lbasename): Split into ...
(unix_lbasename, dos_basename): ... these.
(lbasename): ... and reimplement on top of them.
* Makefile.in (lbasename.o): Add dependency on
$(INCDIR)/filenames.h.

From-SVN: r158681
include/ChangeLog
include/filenames.h
include/libiberty.h
libiberty/ChangeLog
libiberty/Makefile.in
libiberty/lbasename.c