dont need quote games there. we have escapes

SVN revision: 16713
This commit is contained in:
Carsten Haitzler 2005-09-14 12:44:33 +00:00
parent 39cbd8d7de
commit 7de686b25d
1 changed files with 2 additions and 14 deletions

View File

@ -1098,7 +1098,6 @@ _format_parse(char **s)
{
char *p, *item, *ss, *ds;
char *s1 = NULL, *s2 = NULL;
int quote = 0;
p = *s;
if (*p == 0) return NULL;
@ -1111,20 +1110,9 @@ _format_parse(char **s)
}
else if (!s2)
{
if (!quote)
if ((p > *s) && (p[-1] != '\\'))
{
if ((p > *s) && (p[-1] != '\\'))
{
if (*p == '"') quote = 1;
else if (*p == ' ') s2 = p;
}
}
else
{
if ((p > *s) && (p[-1] != '\\'))
{
if (*p == '"') quote = 0;
}
if (*p == ' ') s2 = p;
}
if (*p == 0) s2 = p;
}