From 6e08cbd0a12c30a7dfaeb3b00250289b0cef88ab Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 26 Oct 2004 14:38:19 +0000 Subject: [PATCH] make string tokenizing treat commas as seperate tokens. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@363 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/qcc_cmdlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/qclib/qcc_cmdlib.c b/engine/qclib/qcc_cmdlib.c index d28ca1078..5def1bcb1 100644 --- a/engine/qclib/qcc_cmdlib.c +++ b/engine/qclib/qcc_cmdlib.c @@ -149,7 +149,7 @@ skipwhite: } // parse single characters - if (c=='{' || c=='}'|| c==')'|| c=='(' || c=='\'' || c==':') + if (c=='{' || c=='}'|| c==')'|| c=='(' || c=='\'' || c==':' || c==',') { qcc_token[len] = c; len++; @@ -164,7 +164,7 @@ skipwhite: data++; len++; c = *data; - if (c=='{' || c=='}'|| c==')'|| c=='(' || c=='\'' || c==':' || c=='\"') + if (c=='{' || c=='}'|| c==')'|| c=='(' || c=='\'' || c==':' || c=='\"' || c==',') break; } while (c>32);