if you do re-write Librarian, it would be just fine to pretend the offsetof macro didn't exist. while writing my own stuff I attempted to use this macro and all it got me was a rewrite! (using cygwin version of tools) I ended up writing in the margin, "just keep up with the offsets yourself!" as it is not much harder and _works_ rather than doesn't work.
my 2 cents (good book by the way, very helpful!) David M > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Lonnie Foster > Sent: Friday, June 27, 2003 3:03 AM > To: Palm Developer Forum > Subject: Re: Question on a routine > > > * Keith Rollin <[EMAIL PROTECTED]> [2003-06-26 08:43 -0700]: > > > The prevalent use of this technique throughout the early Palm OS > > source code and samples lead me to believe that the author > just didn't > > know about offsetof. It was only in later versions of the > OS and SDK > > (around Palm OS 3.5, I think) that the OffsetOf macro was added and > > used. > > Keith's got it right; I didn't know about OffsetOf when I > wrote the code for the Librarian sample app. Because I wrote > the code at the same time I was writing the book, I didn't > get a chance to devote nearly as much time to the code as I'd > have liked. I apologize for any confusion I've caused; > looking back at that code, I find that it confuses *me*, so > it obviously could use a rewrite (or at least a few more comments). > > -- > > /|\ Lonnie Foster <[EMAIL PROTECTED]> http://pobox.com/~tribble > \|/ I'm not ashamed of my roots. I just wish they'd been > /|\ planted somewhere else. -- Hugh MacLeod (gapingvoid.com) > > -- > For information on using the Palm Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
