From mboxrd@z Thu Jan 1 00:00:00 1970 From: quanstro@quanstro.net (erik quanstrom) Date: Tue, 8 Mar 2011 09:55:19 -0500 Subject: [9fans] troff pic bug report -> acid debug -> no fix yet In-Reply-To: References: Message-ID: Topicbox-Message-UUID: b8e95e7a-ead6-11e9-9d60-3106f5b1d025 ; 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