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 <jb@videolan.org>
This commit is contained in:
Filip Roséen 2016-02-22 01:12:49 +01:00 committed by Jean-Baptiste Kempf
parent ecb7c84719
commit 31ea536898
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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 );