Revision 14545,
904 bytes
checked in by ghudson, 24 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r14544,
which included commits to RCS files with non-trunk default branches.
|
Rev | Line | |
---|
[10723] | 1 | /* util.h |
---|
[9008] | 2 | * |
---|
[14544] | 3 | * Copyright (c) 1991-2000, Larry Wall |
---|
[9008] | 4 | * |
---|
| 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. |
---|
| 7 | * |
---|
| 8 | */ |
---|
[14544] | 9 | |
---|
| 10 | #ifdef VMS |
---|
| 11 | # define PERL_FILE_IS_ABSOLUTE(f) \ |
---|
| 12 | (*(f) == '/' \ |
---|
| 13 | || (strchr(f,':') \ |
---|
| 14 | || ((*(f) == '[' || *(f) == '<') \ |
---|
| 15 | && (isALNUM((f)[1]) || strchr("$-_]>",(f)[1]))))) |
---|
| 16 | |
---|
| 17 | #else /* !VMS */ |
---|
| 18 | # ifdef WIN32 |
---|
| 19 | # define PERL_FILE_IS_ABSOLUTE(f) \ |
---|
| 20 | (*(f) == '/' \ |
---|
| 21 | || ((f)[0] && (f)[1] == ':') /* drive name */ \ |
---|
| 22 | || ((f)[0] == '\\' && (f)[1] == '\\')) /* UNC path */ |
---|
| 23 | # else /* !WIN32 */ |
---|
| 24 | # ifdef DOSISH |
---|
| 25 | # define PERL_FILE_IS_ABSOLUTE(f) \ |
---|
| 26 | (*(f) == '/' \ |
---|
| 27 | || ((f)[0] && (f)[1] == ':')) /* drive name */ |
---|
| 28 | # else /* !DOSISH */ |
---|
| 29 | # define PERL_FILE_IS_ABSOLUTE(f) (*(f) == '/') |
---|
| 30 | # endif /* DOSISH */ |
---|
| 31 | # endif /* WIN32 */ |
---|
| 32 | #endif /* VMS */ |
---|
Note: See
TracBrowser
for help on using the repository browser.