diff options
author | wm4 <wm4@nowhere> | 2016-05-17 10:53:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-17 10:53:14 +0200 |
commit | b18a5984442163a5fca33b88af5684251437d7b5 (patch) | |
tree | 9293dcc73052c31fdbd2676c0bba7d2915f7b23b | |
parent | a2d58d9986e8e2289006d932ca4aa6eaad779dd1 (diff) | |
download | mpv-b18a5984442163a5fca33b88af5684251437d7b5.tar.bz2 mpv-b18a5984442163a5fca33b88af5684251437d7b5.tar.xz |
ta: remove old and redundant macro
-rw-r--r-- | player/external_files.c | 2 | ||||
-rw-r--r-- | ta/ta_talloc.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/player/external_files.c b/player/external_files.c index dfd1ca6802..eb7345ac84 100644 --- a/player/external_files.c +++ b/player/external_files.c @@ -176,7 +176,7 @@ static void append_dir_subtitles(struct mpv_global *global, prio += prio; char *subpath = mp_path_join_bstr(*slist, path, dename); if (mp_path_exists(subpath)) { - MP_GROW_ARRAY(*slist, *nsub); + MP_TARRAY_GROW(NULL, *slist, *nsub); struct subfn *sub = *slist + (*nsub)++; // annoying and redundant diff --git a/ta/ta_talloc.h b/ta/ta_talloc.h index 7194b86601..ce0ddaa4c9 100644 --- a/ta/ta_talloc.h +++ b/ta/ta_talloc.h @@ -92,8 +92,6 @@ char *ta_talloc_asprintf_append_buffer(char *s, const char *fmt, ...) TA_PRF(2, MP_RESIZE_ARRAY(ctx, p, ta_calc_prealloc_elems(nextidx_)); \ } while (0) -#define MP_GROW_ARRAY(p, nextidx) MP_TARRAY_GROW(NULL, p, nextidx) - #define MP_TARRAY_APPEND(ctx, p, idxvar, ...) \ do { \ MP_TARRAY_GROW(ctx, p, idxvar); \ |