1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 00:38:44 +00:00

Reorder structs, alignment

This commit is contained in:
twinaphex 2020-08-15 23:10:31 +02:00
parent 789bc83276
commit b8058a93e1
6 changed files with 14 additions and 15 deletions

View File

@ -29,14 +29,6 @@
RETRO_BEGIN_DECLS
typedef struct command command_t;
typedef struct command_handle
{
command_t *handle;
unsigned id;
} command_handle_t;
enum event_command
{
CMD_EVENT_NONE = 0,
@ -214,6 +206,14 @@ enum event_command
CMD_EVENT_SAVE_FILES
};
typedef struct command command_t;
typedef struct command_handle
{
command_t *handle;
unsigned id;
} command_handle_t;
/**
* command_event:
* @cmd : Command index.

View File

@ -33,10 +33,10 @@ RETRO_BEGIN_DECLS
typedef struct content_ctx_info
{
int argc; /* Argument count. */
char **argv; /* Argument variable list. */
void *args; /* Arguments passed from callee */
environment_get_t environ_get; /* Function passed for environment_get function */
int argc; /* Argument count. */
} content_ctx_info_t;
/* Load a RAM state from disk to memory. */

4
core.h
View File

@ -45,7 +45,7 @@ enum
typedef struct rarch_memory_descriptor
{
struct retro_memory_descriptor core;
struct retro_memory_descriptor core; /* uint64_t alignment */
size_t disconnect_mask;
} rarch_memory_descriptor_t;
@ -86,9 +86,9 @@ typedef struct retro_ctx_input_state_info
typedef struct retro_ctx_cheat_info
{
const char *code;
unsigned index;
bool enabled;
const char *code;
} retro_ctx_cheat_info_t;
typedef struct retro_ctx_api_info

View File

@ -72,7 +72,7 @@ typedef struct
typedef struct
{
char *backup_path;
core_backup_list_date_t date;
core_backup_list_date_t date; /* unsigned alignment */
uint32_t crc;
enum core_backup_mode backup_mode;
} core_backup_list_entry_t;

View File

@ -33,7 +33,6 @@ enum core_info_list_qsort_type
CORE_INFO_LIST_SORT_SYSTEM_NAME
};
typedef struct
{
char *path;

View File

@ -101,8 +101,8 @@ typedef struct
typedef struct
{
rtl_runtime_t runtime;
rtl_last_played_t last_played;
rtl_runtime_t runtime; /* unsigned alignment */
rtl_last_played_t last_played; /* unsigned alignment */
char path[PATH_MAX_LENGTH];
} runtime_log_t;