From: quanstro@quanstro.net (erik quanstrom)
Subject: [9fans] troff pic bug report -> acid debug -> no fix yet
Date: Tue, 8 Mar 2011 09:55:19 -0500 [thread overview]
Message-ID: <ee799e9ec42549dfb7448590eb6078fe@brasstown.quanstro.net> (raw)
In-Reply-To: <AANLkTikrvnF5Q7FD_UjeGxywODNvyuuh5=3JWnNJ2EQn@mail.gmail.com>
; diffy -c symtab.c
/n/dump/2011/0308/sys/src/cmd/pic/symtab.c:8,22 - symtab.c:8,26
YYSTYPE getvar(char *s) /* return value of variable s (usually pointer) */
{
struct symtab *p;
- static YYSTYPE bug;
+ static YYSTYPE bug, bugplace;
p = lookup(s);
if (p == NULL) {
- if (islower(s[0]))
+ if (islower(s[0])) {
ERROR "no such variable as %s", s WARNING;
- else
+ return(bug);
+ } else {
ERROR "no such place as %s", s WARNING;
- return(bug);
+ if(bugplace.o == NULL)
+ bugplace.o = makepos(0., 0.);
+ return(bugplace);
+ }
}
return(p->s_val);
}
- erik
prev parent reply other threads:[~2011-03-08 14:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 1:49 Fernan Bolando
2011-03-08 14:55 ` erik quanstrom [this message]
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=ee799e9ec42549dfb7448590eb6078fe@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
/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).