Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site azure.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxj!mhuxr!ulysses!allegra!mit-eddie!genrad!decvax!tektronix!teklds!azure!annab
From: annab@azure.UUCP (A Beaver)
Newsgroups: net.lang.c
Subject: Re: pcc compiler error
Message-ID: <128@azure.UUCP>
Date: Thu, 28-Feb-85 23:44:09 EST
Article-I.D.: azure.128
Posted: Thu Feb 28 23:44:09 1985
Date-Received: Mon, 4-Mar-85 04:56:10 EST
Organization: The Den
Lines: 24

>References: <8494@brl-tgr.ARPA>

> From: Kevin Szabo 
> 
> >	struct xy  {
> >	 	int x;
> >	 	int y;
> >	 } a;
         ^^^
In looking through K&R, on page 123, the example which is shown,
shows that 'a' should be '*a'. Maybe THATS what it's complaining
about?
> >	 main()
> >	 {
> >		struct xy *p;
> >		p = &a;
> >	 	if (*p) {
> >			/* compiler error: zzzcode- bad type */
> >		}
> >	}

	 Annadiana Beaver
	A Beaver@Tektronix	" You think the present is moving fast,
				  wait 'til you see the future." -Ruby-