Staging
v0.5.1
Revision d3f83dc83b52a8755f482f22dfa3ced58adbb3c8 authored by Filip Roséen on 04 March 2016, 16:04:18 UTC, committed by Jean-Baptiste Kempf on 05 March 2016, 21:21:10 UTC
`MkvTree` can be used all across the module, meaning that it better
belongs in `Util.hpp` than with static linkage in `matroska_segment_parse.cpp`.

 - A helper function `MkvTree_va` has been introduced so that one can
   easily call the function from functions that accepts a variadic
   number of arguments (using va_list).

 - The implementation has been optimized so that we do not need to
   allocate storage for the format string on every invocation if it
   would fit inside a fixed length buffer.

 - An error check has been added to signal if we run out of memory.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
1 parent 5fc6cd6
History
File Mode Size
.gitignore -rw-r--r-- 74 bytes
Makefile.am -rw-r--r-- 519 bytes
c11.m4 -rw-r--r-- 1.2 KB
codeset.m4 -rw-r--r-- 832 bytes
dolt.m4 -rw-r--r-- 5.6 KB
extern-inline.m4 -rw-r--r-- 4.2 KB
fcntl-o.m4 -rw-r--r-- 4.6 KB
flags.m4 -rw-r--r-- 2.2 KB
gettext.m4 -rw-r--r-- 15.0 KB
glibc2.m4 -rw-r--r-- 830 bytes
glibc21.m4 -rw-r--r-- 907 bytes
iconv.m4 -rw-r--r-- 9.1 KB
intdiv0.m4 -rw-r--r-- 2.4 KB
intl.m4 -rw-r--r-- 11.8 KB
intldir.m4 -rw-r--r-- 923 bytes
intlmacosx.m4 -rw-r--r-- 2.5 KB
intmax.m4 -rw-r--r-- 1.1 KB
inttypes-pri.m4 -rw-r--r-- 1.2 KB
inttypes_h.m4 -rw-r--r-- 1020 bytes
lcmessage.m4 -rw-r--r-- 1.3 KB
lib-ld.m4 -rw-r--r-- 3.6 KB
lib-link.m4 -rw-r--r-- 32.3 KB
lib-prefix.m4 -rw-r--r-- 8.3 KB
lock.m4 -rw-r--r-- 1.4 KB
longlong.m4 -rw-r--r-- 4.6 KB
nls.m4 -rw-r--r-- 1.2 KB
po.m4 -rw-r--r-- 18.5 KB
printf-posix.m4 -rw-r--r-- 1.5 KB
progtest.m4 -rw-r--r-- 3.0 KB
size_max.m4 -rw-r--r-- 3.0 KB
stdcxx_11.m4 -rw-r--r-- 5.3 KB
stdint_h.m4 -rw-r--r-- 995 bytes
threadlib.m4 -rw-r--r-- 14.8 KB
uintmax_t.m4 -rw-r--r-- 1.1 KB
visibility.m4 -rw-r--r-- 3.3 KB
vlc.m4 -rw-r--r-- 3.0 KB
wchar_t.m4 -rw-r--r-- 818 bytes
wint_t.m4 -rw-r--r-- 1.0 KB
with_pkg.m4 -rw-r--r-- 3.8 KB
xsize.m4 -rw-r--r-- 406 bytes

back to top