lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [1/3] git commit: refs/heads/makefile-rework - Quote Windows DIR_SEP
Date Wed, 15 May 2013 20:21:41 GMT
Updated Branches:
  refs/heads/makefile-rework 07c277014 -> b5c98ed4e


Quote Windows DIR_SEP


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/d7f3fa8b
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/d7f3fa8b
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/d7f3fa8b

Branch: refs/heads/makefile-rework
Commit: d7f3fa8b851caceb62ea2fc886f2e8f73d9ab4c1
Parents: 07c2770
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Wed May 15 21:57:16 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Wed May 15 21:57:16 2013 +0200

----------------------------------------------------------------------
 charmonizer/src/Charmonizer/Probe/DirManip.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/d7f3fa8b/charmonizer/src/Charmonizer/Probe/DirManip.c
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Probe/DirManip.c b/charmonizer/src/Charmonizer/Probe/DirManip.c
index 47f68df..c6465d7 100644
--- a/charmonizer/src/Charmonizer/Probe/DirManip.c
+++ b/charmonizer/src/Charmonizer/Probe/DirManip.c
@@ -177,7 +177,11 @@ chaz_DirManip_run(void) {
         chaz_ConfWriter_add_def("MAKEDIR_MODE_IGNORED", "1");
     }
 
-    {
+    if (strcmp(dir_sep, "\\") == 0) {
+        chaz_ConfWriter_add_def("DIR_SEP", "\"\\\\\"");
+        chaz_ConfWriter_add_def("DIR_SEP_CHAR", "'\\\\'");
+    }
+    else {
         char scratch[5];
         sprintf(scratch, "\"%s\"", dir_sep);
         chaz_ConfWriter_add_def("DIR_SEP", scratch);


Mime
View raw message