Date: Thu, 25 Jan 2001 21:32:57 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: mckay@thehub.com.au (Stephen McKay) Cc: iain@research.canon.com.au (Iain Templeton), chat@FreeBSD.ORG, mckay@thehub.com.au Subject: Re: silly C style question Message-ID: <200101252134.OAA28804@usr08.primenet.com> In-Reply-To: <200101241124.f0OBOgm22341@dungeon.home> from "Stephen McKay" at Jan 24, 2001 09:24:42 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> if > ( > (id->id_type == NULL) > || > ( > (id->id_type->x_what == xt_arrayof) > && > (item->x_left->x_what == xt_arrayof) > && > (id->id_type->x_subtype == item->x_left->x_subtype) > && > (id->id_type->x_flags & XIS_DIMLESS) > ) > ) > ... > > Try that one any other way. :-) if( ( id->id_type == NULL) || ( ( id->id_type->x_what == xt_arrayof) && ( item->x_left->x_what == xt_arrayof) && ( id->id_type->x_subtype == item->x_left->x_subtype) && ( id->id_type->x_flags & XIS_DIMLESS))) or, less prettily, something like: if( ( id->id_type == NULL) || ( ( id->id_type->x_what == xt_arrayof) && ( item->x_left->x_what == xt_arrayof) && ( id->id_type->x_subtype == item->x_left->x_subtype) && ( id->id_type->x_flags & XIS_DIMLESS) ) ) PS: The second example is included for those without a "showmatch" option or unable to use "%" effectively in "vi", and with a penchant for needing operators at the front of the line, due to a crippling injury by an HP calculator in their youth, leaving them unable to reasonably program in non-RPN languages, like "C", yet unwilling to stick to "FORTH", where they belong. 8-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101252134.OAA28804>