[vlc-devel] commit: Compiler knows better when to inline or not ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jun 29 17:38:44 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 29 18:23:53 2009 +0300| [05db60da2ec9dc4369817b6a67426f53483d79b5] | committer: Rémi Denis-Courmont 

Compiler knows better when to inline or not

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

 src/control/video.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 97d8a11..fd5ce50 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -635,7 +635,7 @@ void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi, int b_enable,
  * a vout
  *****************************************************************************/
 
-static inline const char * get_marquee_int_option_identifier(unsigned option)
+static const char *get_marquee_int_option_identifier(unsigned option)
 {
     static const char * marquee_table[] =
     {
@@ -655,7 +655,7 @@ static inline const char * get_marquee_int_option_identifier(unsigned option)
     return marquee_table[option];
 }
 
-static inline const char * get_marquee_string_option_identifier(unsigned option)
+static const char *get_marquee_string_option_identifier(unsigned option)
 {
     static const char * marquee_table[] =
     {
@@ -668,7 +668,7 @@ static inline const char * get_marquee_string_option_identifier(unsigned option)
 }
 
 
-static inline vlc_object_t * get_marquee_object( libvlc_media_player_t * p_mi )
+static vlc_object_t *get_marquee_object( libvlc_media_player_t * p_mi )
 {
     libvlc_exception_t e;
     libvlc_exception_init(&e);




More information about the vlc-devel mailing list