mirror of git://gcc.gnu.org/git/gcc.git
pex-win32.c (fix_argv): Ensure that the executable pathname uses Win32 backslashes.
2003-07-02 Danny Smith <dannysmith@users.source.forge.net> * pex-win32.c (fix_argv): Ensure that the executable pathname uses Win32 backslashes. (pexecute): Cast away constness when assigning *errmsg_arg. From-SVN: r68862
This commit is contained in:
parent
cac4a1a56f
commit
bacb96b24f
|
@ -1,3 +1,9 @@
|
||||||
|
2003-07-02 Danny Smith <dannysmith@users.source.forge.net>
|
||||||
|
|
||||||
|
* pex-win32.c (fix_argv): Ensure that the executable pathname
|
||||||
|
uses Win32 backslashes.
|
||||||
|
(pexecute): Cast away constness when assigning *errmsg_arg.
|
||||||
|
|
||||||
2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
|
2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* testsuite/demangle-expected: Add more GNU V3 testcases.
|
* testsuite/demangle-expected: Add more GNU V3 testcases.
|
||||||
|
|
|
@ -57,7 +57,13 @@ fix_argv (argvec)
|
||||||
char **argvec;
|
char **argvec;
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
char * command0 = argvec[0];
|
||||||
|
|
||||||
|
/* Ensure that the executable pathname uses Win32 backslashes. */
|
||||||
|
for (; *command0 != '\0'; command0++)
|
||||||
|
if (*command0 == '/')
|
||||||
|
*command0 = '\\';
|
||||||
|
|
||||||
for (i = 1; argvec[i] != 0; i++)
|
for (i = 1; argvec[i] != 0; i++)
|
||||||
{
|
{
|
||||||
int len, j;
|
int len, j;
|
||||||
|
@ -203,7 +209,7 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
|
||||||
if (pid == -1)
|
if (pid == -1)
|
||||||
{
|
{
|
||||||
*errmsg_fmt = install_error_msg;
|
*errmsg_fmt = install_error_msg;
|
||||||
*errmsg_arg = program;
|
*errmsg_arg = (char*) program;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue