From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5437 invoked from network); 4 May 2008 17:00:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 May 2008 17:00:57 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 96899 invoked from network); 4 May 2008 17:00:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 May 2008 17:00:44 -0000 Received: (qmail 26641 invoked by alias); 4 May 2008 17:00:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12822 Received: (qmail 26621 invoked from network); 4 May 2008 17:00:32 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 4 May 2008 17:00:32 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id DB98B80ED172 for ; Sun, 4 May 2008 19:00:28 +0200 (CEST) Received: from torch.brasslantern.com ([71.116.113.54]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K0C00CMQSKHLBA0@vms173001.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 04 May 2008 12:00:18 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m44H0GRR003590 for ; Sun, 04 May 2008 10:00:17 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m44H0FcS003589 for zsh-users@sunsite.dk; Sun, 04 May 2008 10:00:15 -0700 Date: Sun, 04 May 2008 10:00:15 -0700 From: Bart Schaefer Subject: Re: Zsh hangs sometimes? In-reply-to: <200805041213.m44CDPVO003574@pws-pc.ntlworld.com> To: zsh-users@sunsite.dk Message-id: <080504100015.ZM3588@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <200805041213.m44CDPVO003574@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: Zsh hangs sometimes?" (May 4, 1:13pm) X-Virus-Scanned: ClamAV 0.91.2/7022/Sun May 4 16:23:46 2008 on bifrost X-Virus-Status: Clean On May 4, 1:13pm, Peter Stephenson wrote: } } Can I suggest your professors were either very weird or (more likely) } didn't do much real programming? Emphasis on source maintainability rather than on ease of debugging. } set of bits 0x09e1 (or whatever), to deduce that this includes (1<<11), } (1<<8), (1<<7), (1<<6), (1<<5) and (1<<0)? If it's a bitmask, you should be asking the debugger to print it in binary rather than hex, so you can see the individual 100111100001. In 0x09e1 you still have to compute that "e" is ... er ... gimme a moment ... 8+4+2. I think perhaps your programming of BlueTooth drivers has you thinking more naturally in hex. It's quite true that my professors did little if any device driver programming. Actually given that this is C, some of my professors probably would have advocated using a bitfield struct, so your earlier point is not without merit. :-)