Jason Edmeades : cmd.exe: Add support for dir /-C.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 19 08:17:47 CDT 2007


Module: wine
Branch: master
Commit: f8e619412bc26f79230036f007b96edfc8e3df2e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f8e619412bc26f79230036f007b96edfc8e3df2e

Author: Jason Edmeades <us at edmeades.me.uk>
Date:   Sun Mar 18 21:55:50 2007 +0000

cmd.exe: Add support for dir /-C.

---

 programs/cmd/directory.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/programs/cmd/directory.c b/programs/cmd/directory.c
index 49984a6..c34072d 100644
--- a/programs/cmd/directory.c
+++ b/programs/cmd/directory.c
@@ -63,6 +63,7 @@ static ULONGLONG byte_total;
 static DISPLAYTIME dirTime;
 static DISPLAYORDER dirOrder;
 static BOOL orderReverse, orderGroupDirs, orderGroupDirsReverse, orderByCol;
+static BOOL noseperator;
 
 /*****************************************************************************
  * WCMD_directory
@@ -96,6 +97,7 @@ void WCMD_directory (void) {
   shortname  = (strstr(quals, "/X") != NULL);
   usernames  = (strstr(quals, "/Q") != NULL);
   orderByCol = (strstr(quals, "/D") != NULL);
+  noseperator= (strstr(quals, "/-C") != NULL);
 
   if ((p = strstr(quals, "/T")) != NULL) {
     p = p + 2;
@@ -441,7 +443,7 @@ char * WCMD_filesize64 (ULONGLONG n) {
   p = buff;
   i = -3;
   do {
-    if ((++i)%3 == 1) *p++ = ',';
+    if (!noseperator && (++i)%3 == 1) *p++ = ',';
     q = n / 10;
     r = n - (q * 10);
     *p++ = r + '0';




More information about the wine-cvs mailing list