summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2005-05-28 02:11:26 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2005-05-28 02:11:26 (GMT)
commita662af88de75f2fb386a96b156be92223cf49fe9 (patch)
tree712e159f80c7435b6ccc5312da48f47d5822f9f7 /Source/kwsys/SystemTools.hxx.in
parentc593bfc7d23853f48d8f17b9be224358ed79867b (diff)
downloadCMake-a662af88de75f2fb386a96b156be92223cf49fe9.zip
CMake-a662af88de75f2fb386a96b156be92223cf49fe9.tar.gz
CMake-a662af88de75f2fb386a96b156be92223cf49fe9.tar.bz2
ENH: add convenience function to convert Windows command line args into Unix argc/argv. Pulled and cleaned from PV/VV/VJ init code
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in17
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index ca24616..ba57618 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -410,6 +410,12 @@ public:
*/
static bool IsSubDirectory(const char* fileOrDir, const char* dir);
+ /**
+ * Convert the path to a string that can be used in a unix makefile.
+ * double slashes are removed, and spaces are escaped.
+ */
+ static kwsys_stl::string ConvertToUnixOutputPath(const char*);
+
/** -----------------------------------------------------------------
* File Manipulation Routines
* -----------------------------------------------------------------
@@ -655,11 +661,14 @@ public:
static kwsys_stl::string GetOperatingSystemNameAndVersion();
/**
- * Convert the path to a string that can be used in a unix makefile.
- * double slashes are removed, and spaces are escaped.
+ * Convert windows-style arguments given as a command-line string
+ * into more traditional argc/argv arguments.
+ * Note that argv[0] will be assigned the executable name using
+ * the ::GetModuleFileName function.
*/
- static kwsys_stl::string ConvertToUnixOutputPath(const char*);
-
+ static void ConvertWindowsCommandLineToUnixArguments(
+ const char *cmd_line, int *argc, char ***argv);
+
protected:
// these two functions can be called from ConvertToOutputPath