From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 19:43:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E965216A4CE for ; Tue, 3 Aug 2004 19:43:51 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id D898F43D45 for ; Tue, 3 Aug 2004 19:43:51 +0000 (GMT) (envelope-from zombyfork@gmail.com) Received: by mproxy.gmail.com with SMTP id x71so25470cwb for ; Tue, 03 Aug 2004 12:43:46 -0700 (PDT) Received: by 10.11.122.5 with SMTP id u5mr16057cwc; Tue, 03 Aug 2004 12:43:46 -0700 (PDT) Message-ID: <346a802204080312432f319405@mail.gmail.com> Date: Tue, 3 Aug 2004 15:43:46 -0400 From: Coleman Kane To: Vlad902 In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: cc: freebsd-hackers@freebsd.org Subject: Re: Proper code style regarding hexadecimal case X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cokane@cokane.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 19:43:52 -0000 Typically, I have used the lowercase formatting. Much of the code I work with has gone for the lowercase format as well. Typically setting something to 0xFFFFFFFF reads like yelling and stands out in the source, since keywords are all lowercase and most var/function names are as well. As an aside, the #define macros usually stand out as all of them are all-caps. I would suggest using the lowercase format. On Sat, 31 Jul 2004 10:43:45 -0700, Vlad902 wrote: > What is the proper code style regarding hexadecimal case (ie. 0xabc v. > 0xABC)? I have found code to be a mix of mostly lower and upper case, > and style(9) didn't say anything on the subject. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >