Commit 31ea5368 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf
Browse files

lua: reserved identifier in function names



  * renamed `__PushCommand` to `PushCommand__` since the former is a
    reserved identifier and therefor ill-formed according to the C
    ISO Standard.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent ecb7c847
......@@ -102,12 +102,12 @@ int Activate( extensions_manager_t *p_mgr, extension_t * );
bool IsActivated( extensions_manager_t *p_mgr, extension_t * );
int Deactivate( extensions_manager_t *p_mgr, extension_t * );
void KillExtension( extensions_manager_t *p_mgr, extension_t *p_ext );
int __PushCommand( extension_t *ext, bool unique, command_type_e cmd, va_list options );
int PushCommand__( extension_t *ext, bool unique, command_type_e cmd, va_list options );
static inline int PushCommand( extension_t *ext, int cmd, ... )
{
va_list args;
va_start( args, cmd );
int i_ret = __PushCommand( ext, false, cmd, args );
int i_ret = PushCommand__( ext, false, cmd, args );
va_end( args );
return i_ret;
}
......@@ -115,7 +115,7 @@ static inline int PushCommandUnique( extension_t *ext, int cmd, ... )
{
va_list args;
va_start( args, cmd );
int i_ret = __PushCommand( ext, true, cmd, args );
int i_ret = PushCommand__( ext, true, cmd, args );
va_end( args );
return i_ret;
}
......
......@@ -224,7 +224,7 @@ void KillExtension( extensions_manager_t *p_mgr, extension_t *p_ext )
}
/** Push a UI command */
int __PushCommand( extension_t *p_ext, bool b_unique, command_type_e i_command,
int PushCommand__( extension_t *p_ext, bool b_unique, command_type_e i_command,
va_list args )
{
vlc_mutex_lock( &p_ext->p_sys->command_lock );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment