OSDN Git Service

2010-04-23 Pedro Alves <pedro@codesourcery.com>
authordj@138bc75d-0d04-0410-961f-82ee72b054a4 <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Apr 2010 00:55:41 +0000 (00:55 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:35:23 +0000 (14:35 +0900)
commit6f14a6742fba0ca8693c182fccdab3400eca3aa3
treec344414a574a8d3e0d8a6c912254ccb110732b0f
parent789ff559099540b746e53b5ea08ccd214331b12e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158681 138bc75d-0d04-0410-961f-82ee72b054a4
include/ChangeLog
include/filenames.h
libiberty/ChangeLog