summaryrefslogtreecommitdiffstats
path: root/gettext-tools/lib/basename.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2004-08-08 16:58:11 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:53 +0200
commitdeec1d2bfc96e8273ff94ace8f6011d87451628d (patch)
tree92ddee460a6d75e19f5990516c7266359aeb8e25 /gettext-tools/lib/basename.c
parent43571d9baf0f2f9f7dc49e798eabca6ddba7875e (diff)
downloadexternal_gettext-deec1d2bfc96e8273ff94ace8f6011d87451628d.zip
external_gettext-deec1d2bfc96e8273ff94ace8f6011d87451628d.tar.gz
external_gettext-deec1d2bfc96e8273ff94ace8f6011d87451628d.tar.bz2
Rename FILESYSTEM_PREFIX_LEN.
Diffstat (limited to 'gettext-tools/lib/basename.c')
-rw-r--r--gettext-tools/lib/basename.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gettext-tools/lib/basename.c b/gettext-tools/lib/basename.c
index d993347..8fd3438 100644
--- a/gettext-tools/lib/basename.c
+++ b/gettext-tools/lib/basename.c
@@ -36,12 +36,12 @@
# define HAS_DEVICE(P) \
((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \
&& (P)[1] == ':')
-# define FILESYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0)
+# define FILE_SYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0)
# define ISSLASH(C) ((C) == '/' || (C) == '\\')
#endif
-#ifndef FILESYSTEM_PREFIX_LEN
-# define FILESYSTEM_PREFIX_LEN(Filename) 0
+#ifndef FILE_SYSTEM_PREFIX_LEN
+# define FILE_SYSTEM_PREFIX_LEN(Filename) 0
#endif
#ifndef ISSLASH
@@ -63,7 +63,7 @@
char *
basename (char const *name)
{
- char const *base = name += FILESYSTEM_PREFIX_LEN (name);
+ char const *base = name += FILE_SYSTEM_PREFIX_LEN (name);
int all_slashes = 1;
char const *p;