3 * Copyright (C) 1991, 1992, 1993, 1999, 2001, 2002, 2003, 2004, 2005,
4 * 2007, by Larry Wall and others
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Artistic License, as specified in the README file.
12 # define PERL_FILE_IS_ABSOLUTE(f) \
15 || ((*(f) == '[' || *(f) == '<') \
16 && (isALNUM((f)[1]) || strchr("$-_]>",(f)[1])))))
19 # if defined(WIN32) || defined(__CYGWIN__)
20 # define PERL_FILE_IS_ABSOLUTE(f) \
21 (*(f) == '/' || *(f) == '\\' /* UNC/rooted path */ \
22 || ((f)[0] && (f)[1] == ':')) /* drive name */
25 # define PERL_FILE_IS_ABSOLUTE(f) \
26 (((f)[0] && (f)[1] == ':') /* drive name */ \
27 || ((f)[0] == '\\' && (f)[1] == '\\') /* UNC path */ \
28 || ((f)[3] == ':')) /* volume name, currently only sys */
30 # if defined(DOSISH) || defined(EPOC) || defined(__SYMBIAN32__)
31 # define PERL_FILE_IS_ABSOLUTE(f) \
33 || ((f)[0] && (f)[1] == ':')) /* drive name */
34 # else /* NEITHER DOSISH NOR EPOCISH NOR SYMBIANISH */
35 # define PERL_FILE_IS_ABSOLUTE(f) (*(f) == '/')
43 * c-indentation-style: bsd
48 * ex: set ts=8 sts=4 sw=4 noet: