diff options
Diffstat (limited to 'include/c-pathch.h')
-rw-r--r-- | include/c-pathch.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/include/c-pathch.h b/include/c-pathch.h new file mode 100644 index 0000000..78c3b24 --- /dev/null +++ b/include/c-pathch.h @@ -0,0 +1,71 @@ +/* c-pathch.h: define the characters which separate components of + pathnames and environment variable paths. + +Copyright (C) 1992 Free Software Foundation, Inc. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#ifndef C_PATHCH_H +#define C_PATHCH_H + +/* What separates pathname components? */ +#ifndef PATH_SEP +#ifdef VMS +#define PATH_SEP ':' +#define PATH_SEP_STRING ":" +#else +#ifdef DOS +#define PATH_SEP '\\' +#define PATH_SEP_STRING "\\" +/* On DOS, it's good to allow both \ and / between directories. */ +#define IS_PATH_SEP(ch) ((ch) == PATH_SEP || (ch) == '/') +#else +#ifdef VMCMS +#define PATH_SEP ' ' +#define PATH_SEP_STRING " " +#else +#define PATH_SEP '/' +#define PATH_SEP_STRING "/" +#endif /* not VM/CMS */ +#endif /* not DOS */ +#endif /* not VMS */ +#endif /* not PATH_SEP */ + +#ifndef IS_PATH_SEP +#define IS_PATH_SEP(ch) ((ch) == PATH_SEP) +#endif + +/* What separates elements in environment variable path lists? */ +#ifndef PATH_DELIMITER +#ifdef VMS +#define PATH_DELIMITER ',' +#define PATH_DELIMITER_STRING "," +#else +#ifdef DOS +#define PATH_DELIMITER ';' +#define PATH_DELIMITER_STRING ";" +#else +#ifdef VMCMS +#define PATH_DELIMITER ' ' +#define PATH_DELIMITER_STRING " " +#else +#define PATH_DELIMITER ':' +#define PATH_DELIMITER_STRING ":" +#endif /* not VM/CMS */ +#endif /* not DOS */ +#endif /* not VMS */ +#endif /* not PATH_DELIMITER */ + +#endif /* not C_PATHCH_H */ |