*** org-clearsilver-0.7.0/cs/csparse.c Mon Jun 10 21:52:59 2002 --- clearsilver-0.7.0/cs/csparse.c Fri Aug 16 02:48:16 2002 *************** *** 147,152 **** --- 147,173 ---- }; + static char* get_arg(char* top) + { + int mode = 0; + char* p; + for (p = top; *p; p++) { + if (mode == 0) { + if (*p == ',') { + return p; + } else if (*p == '"') { + mode = 1; + } + } else { + if (*p == '"') { + mode = 0; + } + } + } + return NULL; + } + + /* **** CS alloc/dealloc ******************************************** */ static int NodeNumber = 0; *************** *** 2323,2329 **** larg = carg; } x++; ! a = strpbrk(s, ","); if (a == NULL) { last = TRUE; --- 2344,2350 ---- larg = carg; } x++; ! a = get_arg(s); if (a == NULL) { last = TRUE;