Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: id3.c: reading id3 tags, is this a bug?

Re: id3.c: reading id3 tags, is this a bug?

From: TP Diffenbach <rockbox_at_diffenbach.org>
Date: Wed, 19 Mar 2003 11:46:22 -0500

Ah, I can see where that might be useful. It might be more easily understand with a MANFEST_CONSTANT.

Quoting Linus Nielsen Feltzing <linus_at_haxx.se>:

> > A negative return from read, if I recall correctly, means that
> the
> > read failed. read_frame's caller is only interested in whether
> > read_frame's return value is less than zero.
>
> No, not if the caller will display the return code.
>
> > So why mutiply read's
> > return value by ten, and subtract one? What is this useful for?
>
> It is useful for debugging purposes. If each caller multiplies the
>
> return code by 10, we will be able to track the return code from
> each
> caller in the chain, and can see the exact chain of events from the
>
> return code only.
>
> /Linus
>
>
>


-- 
Archos FM needs a Rockbox!
Received on 2003-03-19

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy