Xref: utzoo news.software.b:6818 comp.unix.xenix.sco:1601 Newsgroups: news.software.b,comp.unix.xenix.sco Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Problem porting C News to SCO Xenix/386 Message-ID: <1991Feb5.195732.17072@zoo.toronto.edu> Organization: U of Toronto Zoology References: <236@raysnec.UUCP> Date: Tue, 5 Feb 1991 19:57:32 GMT In article <236@raysnec.UUCP> shwake@raysnec.UUCP (Ray Shwake) writes: >dbzmain.c >Compiler error (assertion): file @(#)grammar.c:1.32, line 118 source=364 > > Anyone know what might be going on here? I encountered no such >error when porting an earlier version of source under ISC UNIX. Evidently SCO's compiler does not like conditional expressions `a ? b : c' where b and c have struct values. You'll have to change the three cases of things like value = (dbzint) ? dbzfetch(key) : fetch(key); to things like if (dbzint) value = dbzfetch(key); else value = fetch(key); -- "Maybe we should tell the truth?" | Henry Spencer at U of Toronto Zoology "Surely we aren't that desperate yet." | henry@zoo.toronto.edu utzoo!henry