9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "boyd, rounin" <boyd@insultant.net>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] 8c (pcc) bug??
Date: Wed,  9 Feb 2005 13:07:30 +0100	[thread overview]
Message-ID: <005d01c50e9f$ee3de5b0$7c18dfd5@kilgore> (raw)
In-Reply-To: <002301c50e8a$56392af0$7c18dfd5@kilgore>

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




  reply	other threads:[~2005-02-09 12:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09  6:49 tapique
2005-02-09  9:32 ` boyd, rounin
2005-02-09 12:07   ` boyd, rounin [this message]
2005-02-09 13:29     ` C H Forsyth
2005-02-11  0:03     ` boyd, rounin
2005-02-09 13:02 ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005d01c50e9f$ee3de5b0$7c18dfd5@kilgore' \
    --to=boyd@insultant.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).