tools/mkdeps:Fix an error caused by do_shquote in Windows native build
tools/mkdeps:Fix an error caused by do_shquote in Windows native build tools/mkdeps:Fix an error caused by do_shquote in Windows native build
This commit is contained in:
parent
57a21fbe1a
commit
fd9838f41f
@ -111,7 +111,9 @@ static char g_expand[MAX_EXPAND];
|
|||||||
static char g_dequoted[MAX_PATH];
|
static char g_dequoted[MAX_PATH];
|
||||||
static char g_posixpath[MAX_PATH];
|
static char g_posixpath[MAX_PATH];
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef CONFIG_WINDOWS_NATIVE
|
||||||
static char g_shquote[MAX_SHQUOTE];
|
static char g_shquote[MAX_SHQUOTE];
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
@ -295,7 +297,7 @@ static void show_usage(const char *progname, const char *msg, int exitcode)
|
|||||||
* https://netbsd.gw.com/cgi-bin/man-cgi?shquote++NetBSD-current
|
* https://netbsd.gw.com/cgi-bin/man-cgi?shquote++NetBSD-current
|
||||||
* However, this implementation doesn't try to elide extraneous quotes.
|
* However, this implementation doesn't try to elide extraneous quotes.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
#ifndef CONFIG_WINDOWS_NATIVE
|
||||||
static const char *do_shquote(const char *argument)
|
static const char *do_shquote(const char *argument)
|
||||||
{
|
{
|
||||||
const char *src;
|
const char *src;
|
||||||
@ -347,6 +349,7 @@ static const char *do_shquote(const char *argument)
|
|||||||
*dest = '\0';
|
*dest = '\0';
|
||||||
return g_shquote;
|
return g_shquote;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void parse_args(int argc, char **argv)
|
static void parse_args(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@ -443,12 +446,13 @@ static void parse_args(int argc, char **argv)
|
|||||||
* do_dependency() uses them as bare filenames as well.
|
* do_dependency() uses them as bare filenames as well.
|
||||||
* (In addition to passing them to system().)
|
* (In addition to passing them to system().)
|
||||||
*/
|
*/
|
||||||
|
#ifndef CONFIG_WINDOWS_NATIVE
|
||||||
if (group == 1)
|
if (group == 1)
|
||||||
{
|
{
|
||||||
arg = do_shquote(arg);
|
arg = do_shquote(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
append(&args, arg);
|
append(&args, arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user