mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 06:50:32 +00:00
Turn some functions static
This commit is contained in:
parent
93295638da
commit
b44a28dd1f
@ -37,26 +37,13 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void settings_info_list_free(rarch_setting_info_t *list_info)
|
static void settings_info_list_free(rarch_setting_info_t *list_info)
|
||||||
{
|
{
|
||||||
if (list_info)
|
if (list_info)
|
||||||
free(list_info);
|
free(list_info);
|
||||||
list_info = NULL;
|
list_info = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
rarch_setting_info_t *settings_info_list_new(void)
|
|
||||||
{
|
|
||||||
rarch_setting_info_t *list_info = (rarch_setting_info_t*)
|
|
||||||
calloc(1, sizeof(*list_info));
|
|
||||||
|
|
||||||
if (!list_info)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
list_info->size = 32;
|
|
||||||
|
|
||||||
return list_info;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool settings_list_append(rarch_setting_t **list,
|
bool settings_list_append(rarch_setting_t **list,
|
||||||
rarch_setting_info_t *list_info, rarch_setting_t value)
|
rarch_setting_info_t *list_info, rarch_setting_t value)
|
||||||
{
|
{
|
||||||
@ -6690,10 +6677,13 @@ rarch_setting_t *setting_new(unsigned mask)
|
|||||||
rarch_setting_t terminator = { ST_NONE };
|
rarch_setting_t terminator = { ST_NONE };
|
||||||
rarch_setting_t* list = NULL;
|
rarch_setting_t* list = NULL;
|
||||||
rarch_setting_t* resized_list = NULL;
|
rarch_setting_t* resized_list = NULL;
|
||||||
rarch_setting_info_t *list_info = settings_info_list_new();
|
rarch_setting_info_t *list_info = (rarch_setting_info_t*)
|
||||||
|
calloc(1, sizeof(*list_info));
|
||||||
|
|
||||||
if (!list_info)
|
if (!list_info)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
list_info->size = 32;
|
||||||
list = settings_list_new(list_info->size);
|
list = settings_list_new(list_info->size);
|
||||||
if (!list)
|
if (!list)
|
||||||
goto error;
|
goto error;
|
||||||
|
@ -235,12 +235,8 @@ void settings_list_current_add_cmd(
|
|||||||
rarch_setting_info_t *list_info,
|
rarch_setting_info_t *list_info,
|
||||||
enum event_command values);
|
enum event_command values);
|
||||||
|
|
||||||
void settings_info_list_free(rarch_setting_info_t *list_info);
|
|
||||||
|
|
||||||
void settings_list_free(rarch_setting_t *list);
|
void settings_list_free(rarch_setting_t *list);
|
||||||
|
|
||||||
rarch_setting_info_t *settings_info_list_new(void);
|
|
||||||
|
|
||||||
rarch_setting_t *settings_list_new(unsigned size);
|
rarch_setting_t *settings_list_new(unsigned size);
|
||||||
|
|
||||||
void menu_setting_apply_deferred(void);
|
void menu_setting_apply_deferred(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user