I think the comment bug is fixed. I recompiled the whole source tree as a test. bind is way cool ... Notes: Sun Feb 13 00:04:45 EST 2005 rsc i think this handles "\"" but not '\'' and not "'" and '"'. i put in a different patch that i think works bette.r Reference: /n/sources/patch/sorry/macbody-fries Date: Sat Feb 12 20:08:37 CET 2005 Reviewed-by: rsc --- /sys/src/cmd/cc/macbody Sat Feb 12 20:07:08 2005 +++ /sys/src/cmd/cc/macbody Sat Feb 12 20:07:07 2005 @@ -173,6 +173,7 @@ Sym *s, *a; char *args[NARG], *np, *base; int n, i, c, len; + int str; s = getsym(); if(s == S) @@ -209,6 +210,7 @@ c = getnsc(); base = hunk; len = 1; + str = 0; for(;;) { if(isalpha(c) || c == '_') { np = symb; @@ -232,6 +234,31 @@ base = allocn(base, len, 2); base[len++] = '#'; base[len++] = 'a' + i; + continue; + } + if (c == '"') { + base = allocn(base, len, 1); + base[len++] = c; + str = !str; + c = getc(); + continue; + } + if (str) { + base = allocn(base, len, 1); + base[len++] = c; + + if (c == '\\') { + c = getc(); + if (c == '"') { + base = allocn(base, len, 1); + base[len++] = c; + c = getc(); + } + + continue; + } + + c = getc(); continue; } if(c == '/') {