[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C question
yes, it will
a = b = c = d = f = g = h = 0; is perfectly legal and is treated like
a = (b = (c = (d = (f = (g = (h = 0))))));
= is also considered a function that returns a value (in this case, it
returns 0)
>
>but it won't compile wih 3 === I don't believe
>
>john doe wrote:
> >
> > yes
> >
> > c pretty much lets you do what you want
> >
> > >From: "Robert G. (Doc) Savage" <dsavage@peaknet.net>
> > >Reply-To: silug-discuss@silug.org
> > >To: silug-discuss@silug.org
> > >Subject: C question
> > >Date: 27 Mar 2003 06:34:55 -0600
> > >MIME-Version: 1.0
> > >Received: from web1.lanscape.net ([64.240.156.194]) by
> > >mc4-f11.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu,
>27
> > >Mar 2003 04:35:19 -0800
> > >Received: from silug.org (localhost [127.0.0.1])by web1.lanscape.net
> > >(8.11.6/8.11.6) with ESMTP id h2RCZDO07856;Thu, 27 Mar 2003 06:35:13
>-0600
> > >Received: from nsi01.peaknet.net (ns01.peaknet.net [208.4.16.20])by
> > >web1.lanscape.net (8.11.6/8.11.6) with ESMTP id h2RCYtO07797for
> > ><silug-discuss@silug.org>; Thu, 27 Mar 2003 06:34:55 -0600
> > >Received: from lioness.thunderpurr.net (as1-6-92.peaknet.net
> > >[208.4.19.92])by nsi01.peaknet.net (8.12.8/8.12.5) with ESMTP id
> > >h2RCYnbN003305for <silug-discuss@silug.org>; Thu, 27 Mar 2003 06:34:50
> > >-0600
> > >X-Message-Info: UZmYcfFpTCewzfqvyl1d15R59mlxBfYY
> > >X-Mailer: Ximian Evolution 1.0.8 (1.0.8-11) Message-Id:
> > ><1048768497.12651.9.camel@lioness>
> > >Organization: Southern Illinois Linux Users Group
> > >Precedence: bulk
> > >Sender: silug-discuss-owner@silug.org
> > >Return-Path: silug-discuss-owner+M4886@silug.org
> > >X-OriginalArrivalTime: 27 Mar 2003 12:35:19.0932 (UTC)
> > >FILETIME=[5410D3C0:01C2F45D]
> > >
> > >I just tried 'make rpm' on the latest linux-2.5.66 from kernel.org. It
> > >bombed after about 10 minutes with:
> > >...
> > >fs/cramfs/inode.c: In function `get_cramfs_inode':
> > >fs/cramfs/inode.c:54: incompatible types in assignment
> > >make[4]: *** [fs/cramfs/inode.o] Error 1
> > >make[3]: *** [fs/cramfs] Error 2
> > >make[2]: *** [fs] Error 2
> > >make[1]: *** [all] Error 2
> > >error: Bad exit status from /var/tmp/rpm-tmp.75757 (%build)
> > >RPM build errors:
> > > Bad exit status from /var/tmp/rpm-tmp.75757 (%build)
> > >make: *** [rpm] Error 1
> > >
> > >Going to /usr/src/linux-2.5.66/fs/cramfs and looking at inode.c line 54
> > >I found:
> > > inode->i_mtime = inode->i_atime = inode->i_ctime = 0;
> > >
> > >I'm much more comfortable with assembler than C, but before I report
> > >this back to lkml, does C allow three "=" in one line??
> > >
> > >--Doc
> > >
> > >
> > >
> > >-
> > >To unsubscribe, send email to majordomo@silug.org with
> > >"unsubscribe silug-discuss" in the body.
> >
> > _________________________________________________________________
> > Tired of spam? Get advanced junk mail protection with MSN 8.
> > http://join.msn.com/?page=features/junkmail
> >
> > -
> > To unsubscribe, send email to majordomo@silug.org with
> > "unsubscribe silug-discuss" in the body.
>
>-
>To unsubscribe, send email to majordomo@silug.org with
>"unsubscribe silug-discuss" in the body.
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.