[MPlayer-dev-eng] Re: [PATCH] Kill some _LARGEFILE_SOURCE #ifdefs

Oded Shimon ods15 at ods15.dyndns.org
Thu Jun 30 19:08:54 CEST 2005


On Thu, Jun 30, 2005 at 06:58:04PM +0200, Tobias Diedrich wrote:
> Rich Felker wrote:
> 
> > But it doesn't change the fact that it would work on little endian
> > even if the double l were ignored. Try this:
> > 
> > printf("%lld %lld\n", foo, foo);
> > 
> > Do you get 20 20 or 20 0?
> 
> Damn.  I get the latter. :-/
> Maybe a format string parser in mp_msg would be in order?
> That would also allow for a custom "off_t" format. :-)
> Might also be good for translators, if it would allow to shuffle
> the parameters around.

You already can do this, with some %1$s nonsense, iirc. or is this a glibc 
printf extension and non-portable?

- ods15




More information about the MPlayer-dev-eng mailing list