Patch to improve command-line parsing of tabs

Brian Grayson bgrayson at freescale.com
Mon Dec 6 01:03:06 CST 2004


  Here is a patch that improves command-line parsing
(WCMD_parse) -- it adds handling of tab as a parameter
delimiter in the same way that space is handled.  This is a fix
for my submitted Bug ID 2599, and was examined by one of the
Bug guys, who told me to forward the patch here.  The diff is
against 20041201.

--- wcmdmain.c.orig     Sun Dec  5 23:53:27 2004
+++ wcmdmain.c  Sun Dec  5 23:53:59 2004
@@ -696,6 +696,7 @@
         *q = '\0';
        break;
       case ' ':
+      case '\t':
        s++;
        break;
       case '"':
@@ -713,7 +714,7 @@
       case '\0':
         return;
       default:
-       while ((*s != '\0') && (*s != ' ')) {
+       while ((*s != '\0') && (*s != ' ') && (*s != '\t')) {
          if (p == 0) *p1++ = *s++;
          else if (p == 1) *p2++ = *s++;
          else s++;



More information about the wine-patches mailing list