On 2009/11/27 20:09, gibbo...@gmail.com wrote:
> * Always pipe to nl (or cat -n) the mpc playlist ouput
> OR
> * let's the song position be printed according to --format.
> 
> The problem is that converting int to string would bloat
> to much the code IMHO so the patch KISS and does the following :

Bloat?  How is your printf("%d") less bloated than whatever you had in
mind for "converting int to string"?

I don't agree with your patch, it looks awfully complicated and does
non-obvious things with the --format argument.  A patch for the
song_value() function for supporting %position% would be possible with
half the size, and half the bloat (and would be more consistent).

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to