Help with SCO Xenix compiler bug affecting MH
Steve Dyer
dyer at spdcc.COM
Fri Jul 28 14:17:15 AEST 1989
In article <1989Jul28.002515.15344 at nc386.uucp> allbery at nc386.UUCP (Brandon S. Allbery) writes:
>I'm having trouble with MH under SCO Xenix 2.2.1. Specifically, I compile the
>distribution with few problems (I'm used to hacking around gratuitous
>Berkeleyisms by now), but when I run "repl" it gets a format compile error
>from the default replcomps:
>
>xrepl: "th))%(putaddr To: )_": format compile error - '>' expected.
>xrepl: ^
Yeah, I had this too. Now, if I can only recreate what I did to fix it...
Let's see. It was rather an obscure _difference_ in interpretation of the
language, not so much a bug...
Lemme dig...
Oh yes...in sbr/formatsbr.c, function 'normalize'
static normalize (cp)
register char *cp;
{
register char *dp;
for (dp = cp; *cp; cp++)
if (*cp != QUOTE)
*dp++ = *cp;
else
switch (*++cp) {
#define grot(x) case 'x': *dp++ = '\x'; break;
grot (b);
grot (f);
grot (n);
grot (r);
grot (t);
/* **** */
}
The macro "grot" won't work, because XENIX 386 cpp won't substitute
between single quoted character constants. Rewrite it doing the
expansion yourself.
--
Steve Dyer
dyer at ursa-major.spdcc.com aka {ima,harvard,rayssd,linus,m2c}!spdcc!dyer
dyer at arktouros.mit.edu
More information about the Comp.unix.xenix
mailing list