From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <005d01c50e9f$ee3de5b0$7c18dfd5@kilgore> From: "boyd, rounin" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> References: <41F879E200020C44@stateless1.tiscali.cz> <002301c50e8a$56392af0$7c18dfd5@kilgore> Subject: Re: [9fans] 8c (pcc) bug?? Date: Wed, 9 Feb 2005 13:07:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-2"; reply-type=response Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 4437662e-eace-11e9-9e20-41e7f4b1d025 i think if the following diff if applied to /sys/src/cmd/cc/macbody it should fix this nasty bug. it's not amazingly well tested, but if you're in a position to or are feeling brave, please do so 236a237,264 > if (c == '\'' || c == '"') { > int e; > > base = allocn(base, len, 1); > base[len++] = c; > e = c; > > for (;;) { > int p; > > p = c; > if ((c = getc()) == '\n') > break; > > base = allocn(base, len, 1); > base[len++] = c; > > if (p == '\\' && c == e) > continue; > > if (c == e) { > c = getc(); > break; > } > } > > continue; > } -- MGRS 31U DQ 52572 12604