[vlc-commits] remove redundant TAB_APPEND_CPP

Rafaël Carré git at videolan.org
Sun Aug 21 03:01:42 CEST 2011


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Aug 19 02:48:09 2011 -0400| [b1239508912fc4a4f529e28a47eb236183355bd5] | committer: Rafaël Carré

remove redundant TAB_APPEND_CPP

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1239508912fc4a4f529e28a47eb236183355bd5
---

 include/vlc_arrays.h |    2 --
 include/vlc_vlm.h    |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
index c61c870..e2f7b30 100644
--- a/include/vlc_arrays.h
+++ b/include/vlc_arrays.h
@@ -107,8 +107,6 @@ static inline void *realloc_down( void *ptr, size_t size )
 
 #define TAB_APPEND( count, tab, p )             \
     TAB_APPEND_CAST( , count, tab, p )
-#define TAB_APPEND_CPP( type, count, tab, p )   \
-    TAB_APPEND_CAST( (type**), count, tab, p )
 
 #define TAB_FIND( count, tab, p, index )        \
   do {                                          \
diff --git a/include/vlc_vlm.h b/include/vlc_vlm.h
index 6c90876..cf45439 100644
--- a/include/vlc_vlm.h
+++ b/include/vlc_vlm.h
@@ -236,9 +236,9 @@ vlm_media_Copy( vlm_media_t *p_dst, const vlm_media_t *p_src )
         p_dst->psz_name = strdup( p_src->psz_name );
 
     for( i = 0; i < p_src->i_input; i++ )
-        TAB_APPEND_CPP( char, p_dst->i_input, p_dst->ppsz_input, strdup(p_src->ppsz_input[i]) );
+        TAB_APPEND_CAST( (char**), p_dst->i_input, p_dst->ppsz_input, strdup(p_src->ppsz_input[i]) );
     for( i = 0; i < p_src->i_option; i++ )
-        TAB_APPEND_CPP( char, p_dst->i_option, p_dst->ppsz_option, strdup(p_src->ppsz_option[i]) );
+        TAB_APPEND_CAST( (char**), p_dst->i_option, p_dst->ppsz_option, strdup(p_src->ppsz_option[i]) );
 
     if( p_src->psz_output )
         p_dst->psz_output = strdup( p_src->psz_output );



More information about the vlc-commits mailing list