mirror of https://github.com/mpv-player/mpv
24dc91907a
Seems like I really like this C99 idiom. No reason not to generalize it do snprintf(). Introduce mp_tprintf(), which basically this idiom to snprintf(). This macro looks like it returns a string that was allocated with alloca() on the caller site, except it's portable C99/C11. (And unlike alloca(), the result is valid only within block scope.) Use it in 2 places in the vo_opengl code. But it has the potential to make a whole bunch of weird looking code look slightly nicer. |
||
---|---|---|
.. | ||
av_common.c | ||
av_common.h | ||
av_log.c | ||
av_log.h | ||
codecs.c | ||
codecs.h | ||
common.c | ||
common.h | ||
encode.h | ||
encode_lavc.c | ||
encode_lavc.h | ||
global.h | ||
msg.c | ||
msg.h | ||
msg_control.h | ||
playlist.c | ||
playlist.h | ||
recorder.c | ||
recorder.h | ||
tags.c | ||
tags.h | ||
version.c |