diff options
author | seawood%netscape.com <devnull@localhost> | 2003-04-04 05:03:55 +0000 |
---|---|---|
committer | seawood%netscape.com <devnull@localhost> | 2003-04-04 05:03:55 +0000 |
commit | 92da9233a4b930854e0a414eea7ff86649bc039f (patch) | |
tree | 8d22b8909b05cc1e7ca32a8c52b55018f3260dab | |
parent | 100ca7265ea8035fd647dab629bbc54627435a8b (diff) | |
download | nspr-hg-92da9233a4b930854e0a414eea7ff86649bc039f.tar.gz |
Add PR_GetPathSeparator function.
Bug #171883 r=wtc
-rw-r--r-- | pr/include/prsystem.h | 7 | ||||
-rw-r--r-- | pr/src/misc/prsystem.c | 5 | ||||
-rw-r--r-- | pr/src/nspr.def | 5 |
3 files changed, 17 insertions, 0 deletions
diff --git a/pr/include/prsystem.h b/pr/include/prsystem.h index 9484148a..73404920 100644 --- a/pr/include/prsystem.h +++ b/pr/include/prsystem.h @@ -57,6 +57,13 @@ NSPR_API(char) PR_GetDirectorySeparator(void); NSPR_API(char) PR_GetDirectorySepartor(void); +/* +** Get the host' path separator. +** Paths are assumed to be of the form: +** <directory>[<sep><directory>]* +*/ + +NSPR_API(char) PR_GetPathSeparator(void); /* Types of information available via PR_GetSystemInfo(...) */ typedef enum { diff --git a/pr/src/misc/prsystem.c b/pr/src/misc/prsystem.c index 5c84e5e7..edf5dbd0 100644 --- a/pr/src/misc/prsystem.c +++ b/pr/src/misc/prsystem.c @@ -86,6 +86,11 @@ PR_IMPLEMENT(char) PR_GetDirectorySepartor(void) return PR_GetDirectorySeparator(); } /* PR_GetDirectorySepartor */ +PR_IMPLEMENT(char) PR_GetPathSeparator(void) +{ + return PR_PATH_SEPARATOR; +} /* PR_GetPathSeparator */ + PR_IMPLEMENT(PRStatus) PR_GetSystemInfo(PRSysInfo cmd, char *buf, PRUint32 buflen) { PRUintn len = 0; diff --git a/pr/src/nspr.def b/pr/src/nspr.def index a9b6295c..ba798d6a 100644 --- a/pr/src/nspr.def +++ b/pr/src/nspr.def @@ -396,3 +396,8 @@ NSPR_4.3 { PR_CallOnceWithArg; PR_GetLibraryFilePathname; } NSPR_4.1; + +NSPR_4.4 { + global: + PR_GetPathSeparator; +} NSPR_4.3; |