|
Rockbox mail archiveSubject: Re: file read/write codeRe: file read/write code
From: Greg Haerr <greg_at_censoft.com>
Date: Fri, 8 Nov 2002 12:06:29 -0700 : That all depends on what platform you want to port to. You can't write : code that is entirely portable among different CPU families. At least : not while keeping the code readable and simple. I can agree with that. The principles I've used over the years for declarations are twofold: 1) try to be accurate but simple, 2) use a type that helps the reader understand what's going on. For instance, for me: "int" means basically an integer, it doesn't matter what the storage size is. "long", "short", "char" - the storage size is declared explicitly, it matters what the storage size is. For the FAT32 filesystem, we have to use 32-bit storage locations or the algorithm as coded won't work. It can't be 16 bits or 64 bits for the current code to run. My $.02 worth, Greg Received on 2002-11-08 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |