mirror of
https://github.com/reactos/ccache.git
synced 2024-12-03 09:00:43 +00:00
Export argvtos() as win32argvtos()
This commit is contained in:
parent
6fc46e5403
commit
4b0f4f6d99
1
ccache.h
1
ccache.h
@ -238,6 +238,7 @@ typedef int (*COMPAR_FN_T)(const void *, const void *);
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
char *win32argvtos(char *prefix, char **argv);
|
||||
int win32execute(char *path, char **argv, int doreturn,
|
||||
const char *path_stdout, const char *path_stderr);
|
||||
# ifndef _WIN32_WINNT
|
||||
|
@ -26,8 +26,8 @@ find_executable_in_path(const char *name, const char *exclude_name, char *path);
|
||||
* Re-create a win32 command line string based on **argv.
|
||||
* http://msdn.microsoft.com/en-us/library/17w5ykft.aspx
|
||||
*/
|
||||
static char *
|
||||
argvtos(char *prefix, char **argv)
|
||||
char *
|
||||
win32argvtos(char *prefix, char **argv)
|
||||
{
|
||||
char *arg;
|
||||
char *ptr;
|
||||
@ -137,7 +137,7 @@ win32execute(char *path, char **argv, int doreturn,
|
||||
si.hStdError == INVALID_HANDLE_VALUE)
|
||||
return -1;
|
||||
}
|
||||
args = argvtos(sh, argv);
|
||||
args = win32argvtos(sh, argv);
|
||||
ret = CreateProcess(path, args, NULL, NULL, 1, 0, NULL, NULL, &si, &pi);
|
||||
free(args);
|
||||
if (path_stdout) {
|
||||
|
Loading…
Reference in New Issue
Block a user