comparison macro.c @ 144:7ab3d0c09cd8

fix very minor bug
author David A. Holland
date Sat, 13 Jul 2013 13:54:07 -0400
parents 2e1496dd96c4
children a403605d3166
comparison
equal deleted inserted replaced
143:ed45f2d8d3bc 144:7ab3d0c09cd8
534 pos += strspn(buf+pos, ws); 534 pos += strspn(buf+pos, ws);
535 if (strchr(alnum, buf[pos])) { 535 if (strchr(alnum, buf[pos])) {
536 wordstart = pos; 536 wordstart = pos;
537 pos += strspn(buf+pos, alnum); 537 pos += strspn(buf+pos, alnum);
538 if (isparam(m, buf+wordstart, pos-wordstart, &param)) { 538 if (isparam(m, buf+wordstart, pos-wordstart, &param)) {
539 if (pos > blockstart) { 539 if (wordstart > blockstart) {
540 ei = expansionitem_create_stringlen( 540 ei = expansionitem_create_stringlen(
541 buf + blockstart, 541 buf + blockstart,
542 wordstart - blockstart); 542 wordstart - blockstart);
543 expansionitemarray_add(&m->expansion, 543 expansionitemarray_add(&m->expansion,
544 ei, NULL); 544 ei, NULL);