[MPlayer-dev-eng] [PATCH] printf --> mp_msg transition (codec-cfg.c)

The Wanderer inverseparadox at comcast.net
Thu Oct 7 15:42:29 CEST 2004


The attached patch does three related things. (I'm sure I'll stop
enumerating things like this eventually.)

First, it changes all printf calls in codec-cfg.c which would be
compiled into the object file to FIXME'd mp_msg calls. This leaves 45 or
so unchanged, all of them used either when TESTING is defined or when
CODECS2HTML is defined. The former is never the case on the user's end.
The latter is the case when compiling the binary codec-cfg; in the
current compilation system, the compile depends on being able to
redirect stdout from that binary into codecs.conf.h. If leaving the
printfs intact isn't the best way to handle this, then I'd be open to
suggestions.

Second, it moves from the same file all translatable messages which are
not left in printfs and are of appropriate MSGLs to help/help_mp-en.h.

Third, it includes help_mp.h in codecs-cfg.c, as required by the use of
MSGTRs.

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

A government exists to serve its citizens, not to control them.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: codec-cfg.c_printfs.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041007/c4b49b6c/attachment.asc>


More information about the MPlayer-dev-eng mailing list