diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/process.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/win32/process.c b/win32/process.c index 60fea01ad..37496db7b 100644 --- a/win32/process.c +++ b/win32/process.c | |||
@@ -24,26 +24,6 @@ int waitpid(pid_t pid, int *status, int options) | |||
24 | return -1; | 24 | return -1; |
25 | } | 25 | } |
26 | 26 | ||
27 | const char * | ||
28 | next_path_sep(const char *path) | ||
29 | { | ||
30 | static const char *from = NULL, *to; | ||
31 | static int has_semicolon; | ||
32 | int len = strlen(path); | ||
33 | |||
34 | if (!from || !(path >= from && path+len <= to)) { | ||
35 | from = path; | ||
36 | to = from+len; | ||
37 | has_semicolon = strchr(path, ';') != NULL; | ||
38 | } | ||
39 | |||
40 | /* Semicolons take precedence, it's Windows PATH */ | ||
41 | if (has_semicolon) | ||
42 | return strchr(path, ';'); | ||
43 | /* PATH=C:, not really a separator */ | ||
44 | return strchr(has_dos_drive_prefix(path) ? path+2 : path, ':'); | ||
45 | } | ||
46 | |||
47 | typedef struct { | 27 | typedef struct { |
48 | char *path; | 28 | char *path; |
49 | char *name; | 29 | char *name; |