comparison macro.c @ 145:a403605d3166

Fix handling of macros in quoted strings. Add some more tests; edit CHANGES a bit.
author David A. Holland
date Sat, 13 Jul 2013 14:19:59 -0400
parents 7ab3d0c09cd8
children e787bd67bf88 19278e2f885d
comparison
equal deleted inserted replaced
144:7ab3d0c09cd8 145:a403605d3166
1086 if (x > len) { 1086 if (x > len) {
1087 /* XXX gross, need strnspn */ 1087 /* XXX gross, need strnspn */
1088 x = len; 1088 x = len;
1089 } 1089 }
1090 1090
1091 if (x > 0) { 1091 if (!inquote && x > 0) {
1092 expand_got_word(es, p, buf, x); 1092 expand_got_word(es, p, buf, x);
1093 buf += x; 1093 buf += x;
1094 len -= x; 1094 len -= x;
1095 continue; 1095 continue;
1096 } 1096 }