1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-03-03 16:05:20 -05:00

[combi|script] Add static keyword to inline get_index.

This commit is contained in:
Dave Davenport 2019-07-09 09:01:35 +02:00
parent 209fb9be18
commit eece00bad6
2 changed files with 2 additions and 2 deletions

View file

@ -241,7 +241,7 @@ static gchar * dmenu_format_output_string ( const DmenuModePrivateData *pd, cons
return retv ? retv : g_strdup ( "" ); return retv ? retv : g_strdup ( "" );
} }
inline unsigned int get_index ( unsigned int length, int index ) static inline unsigned int get_index ( unsigned int length, int index )
{ {
if ( index >= 0 ) return index; if ( index >= 0 ) return index;
if ( ((unsigned int)-index) <= length ) return (length+index); if ( ((unsigned int)-index) <= length ) return (length+index);

View file

@ -291,7 +291,7 @@ static void script_mode_destroy ( Mode *sw )
sw->private_data = NULL; sw->private_data = NULL;
} }
} }
inline unsigned int get_index ( unsigned int length, int index ) static inline unsigned int get_index ( unsigned int length, int index )
{ {
if ( index >= 0 ) return index; if ( index >= 0 ) return index;
if ( ((unsigned int)-index) <= length ) return (length+index); if ( ((unsigned int)-index) <= length ) return (length+index);