diff options
author | wlemb <wlemb> | 2003-12-06 13:09:40 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2003-12-06 13:09:40 +0000 |
commit | a0ec1c694798a91a3df34eee89c5547dac90e432 (patch) | |
tree | ed2273a0aeb7c3e0d154ae74294e5e864fc32b9a /src/libs | |
parent | 0c132242916f13129299fe6739b1be939a85d456 (diff) | |
download | groff-a0ec1c694798a91a3df34eee89c5547dac90e432.tar.gz |
Use path separator character of target platform for compiled-in
default paths.
* aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
* configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
* configure: Regenerated.
* Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
* src/include/nonposix.h (PATH_SEP_CHAR): New definition.
Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/libgroff/searchpath.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/libgroff/searchpath.cpp b/src/libs/libgroff/searchpath.cpp index ce08cdf2..122f8e56 100644 --- a/src/libs/libgroff/searchpath.cpp +++ b/src/libs/libgroff/searchpath.cpp @@ -76,11 +76,11 @@ void search_path::command_line_dir(const char *s) char *p = dirs; p += old_len - init_len; if (init_len == 0) - *p++ = PATH_SEP[0]; + *p++ = PATH_SEP_CHAR; memcpy(p, s, slen); p += slen; if (init_len > 0) { - *p++ = PATH_SEP[0]; + *p++ = PATH_SEP_CHAR; memcpy(p, old + old_len - init_len, init_len); p += init_len; } @@ -104,7 +104,7 @@ FILE *search_path::open_file(const char *name, char **pathp) unsigned namelen = strlen(name); char *p = dirs; for (;;) { - char *end = strchr(p, PATH_SEP[0]); + char *end = strchr(p, PATH_SEP_CHAR); if (!end) end = strchr(p, '\0'); int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0; @@ -156,7 +156,7 @@ FILE *search_path::open_file_cautious(const char *name, char **pathp, unsigned namelen = strlen(name); char *p = dirs; for (;;) { - char *end = strchr(p, PATH_SEP[0]); + char *end = strchr(p, PATH_SEP_CHAR); if (!end) end = strchr(p, '\0'); int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0; |