3 * Copyright (c) 1991-1997, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 # define PERL_FILE_IS_ABSOLUTE(f) \
14 || ((*(f) == '[' || *(f) == '<') \
15 && (isALNUM((f)[1]) || strchr("$-_]>",(f)[1])))))
19 # define PERL_FILE_IS_ABSOLUTE(f) \
21 || ((f)[0] && (f)[1] == ':') /* drive name */ \
22 || ((f)[0] == '\\' && (f)[1] == '\\')) /* UNC path */
25 # define PERL_FILE_IS_ABSOLUTE(f) \
27 || ((f)[0] && (f)[1] == ':')) /* drive name */
29 # define PERL_FILE_IS_ABSOLUTE(f) (*(f) == '/')