|
|
Rockbox mail archiveSubject: Re: Windows sym-link code (standalone) for you to testFrom: Daniel Stenberg (daniel_at_haxx.se) Date: 2003-02-01
On Fri, 31 Jan 2003 rockbox_at_diffenbach.org wrote:
> I'm also interested in having my code critiqued for compliance with
I'll focus my criticism on this topic. I'm a Linux user and I don't have any
General formatting rules:
* We use plain old /* C comments */ and not // C++ comments
> typedef long dword ;
I'm not sure if you intend to keep these things, but in Rockbox we try to
Use 'long' instead of 'dword' and the qword can just be made a long array
> // end header
We usually put all the include files at the top of the file.
> struct lnk_header_and_next_length header ;
...
> if( ( ret = read( file_handle, &header, sizeof( header ) ) ) != sizeof(
This kind of code I *think* will require that the struct is defined with
Again, I have not tested this or even attempted to follow the logic of the
-- Daniel Stenberg -- http://rockbox.haxx.se/ -- http://daniel.haxx.se/
Page was last modified "Mar 9 2008" The Rockbox Crew |