[vlc-devel] [PATCH] vlc_arrays: rename reserved identifier
Filip Roséen
filip at atch.se
Thu May 18 12:59:19 CEST 2017
double underscore is reserved to the implementation according to both
the C and C++ ISO standards; as such we should not use such naming.
---
include/vlc_arrays.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
index b1e1eaf0f5..7549efdc85 100644
--- a/include/vlc_arrays.h
+++ b/include/vlc_arrays.h
@@ -503,8 +503,8 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict )
}
static inline void
-__vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
- void * p_value, bool rebuild )
+vlc_dictionary_insert_impl_( vlc_dictionary_t * p_dict, const char * psz_key,
+ void * p_value, bool rebuild )
{
if( !p_dict->p_entries )
vlc_dictionary_init( p_dict, 1 );
@@ -535,7 +535,7 @@ __vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
p_entry = p_dict->p_entries[i];
while( p_entry )
{
- __vlc_dictionary_insert( &new_dict, p_entry->psz_key,
+ vlc_dictionary_insert_impl_( &new_dict, p_entry->psz_key,
p_entry->p_value,
false /* To avoid multiple rebuild loop */);
p_entry = p_entry->p_next;
@@ -552,7 +552,7 @@ __vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
static inline void
vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p_value )
{
- __vlc_dictionary_insert( p_dict, psz_key, p_value, true );
+ vlc_dictionary_insert_impl_( p_dict, psz_key, p_value, true );
}
static inline void
--
2.12.2
More information about the vlc-devel
mailing list