From owner-freebsd-ports@FreeBSD.ORG Wed Jan 26 05:52:38 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84C4616A4CE for ; Wed, 26 Jan 2005 05:52:38 +0000 (GMT) Received: from tenebras.com (graystone.tenebras.com [216.27.179.139]) by mx1.FreeBSD.org (Postfix) with SMTP id 3101E43D53 for ; Wed, 26 Jan 2005 05:52:38 +0000 (GMT) (envelope-from ducatista@camber-thrust.net) Received: (qmail 74104 invoked from network); 26 Jan 2005 05:52:37 -0000 Received: from grayair.tenebras.com (HELO ?127.0.0.1?) (192.168.188.166) by hospital.tenebras.com with SMTP; 26 Jan 2005 05:52:37 -0000 Message-ID: <41F73025.1020303@camber-thrust.net> Date: Tue, 25 Jan 2005 21:52:37 -0800 From: Michael Sierchio User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Marcus Clarke References: <41F6F431.6060005@tenebras.com> <1106704507.16118.14.camel@shumai.marcuscom.com> In-Reply-To: <1106704507.16118.14.camel@shumai.marcuscom.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: ports@freebsd.org cc: Michael Sierchio cc: lioux@freebsd.org Subject: Remedial C X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 05:52:38 -0000 Precedence In general, multiply/divide come before add/subtract, and put brackets everywhere else. Ordering of Comparisons 1. <, <=, > and >= 2. == and != 3. && 4. || Precedence of Operators 1. () [] -> . 2. ! ~ ++ -- unary+ unary- * (dereference) & (address) (type-cast) sizeof 3. * (multiply) / % 4. + (add) - (subtract) 5. << , >> 6. < , <= , > , >= 7. == , != 8. & (bitwise and) 9. ^ 10. | 11. && 12. || 13. ?: 14. = += *= /= %= &= ^= |= <<= >>= 15. , (comma)