Adds the new "share" configuration option to allow to share the pool directory in Windows.

This commit is contained in:
Andrea Mazzoleni 2013-12-18 19:26:57 +01:00
parent b10a1c890f
commit 3df99a03ee
12 changed files with 240 additions and 24 deletions

16
util.c
View file

@ -1172,7 +1172,7 @@ void pathimport(char* dst, size_t size, const char* src)
pathcpy(dst, size, src);
#ifdef _WIN32
/* convert all Windows '\' to '/' */
/* convert all Windows '\' to C '/' */
while (*dst) {
if (*dst == '\\')
*dst = '/';
@ -1181,6 +1181,20 @@ void pathimport(char* dst, size_t size, const char* src)
#endif
}
void pathexport(char* dst, size_t size, const char* src)
{
pathcpy(dst, size, src);
#ifdef _WIN32
/* convert all C '/' to Windows '\' */
while (*dst) {
if (*dst == '/')
*dst = '\\';
++dst;
}
#endif
}
void pathprint(char* dst, size_t size, const char* format, ...)
{
size_t len;