1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-01 07:54:27 +00:00

Reordre structs, alignment

This commit is contained in:
twinaphex 2020-08-15 18:42:27 +02:00
parent 0598c5643a
commit f934aaa78d
2 changed files with 6 additions and 6 deletions

View File

@ -65,25 +65,25 @@ typedef struct rmsgpack_dom_value (*rarch_query_func)(
struct invocation
{
struct argument *argv;
rarch_query_func func;
unsigned argc;
struct argument *argv;
};
struct argument
{
enum argument_type type;
union
{
struct rmsgpack_dom_value value;
struct invocation invocation;
} a;
enum argument_type type;
};
struct query
{
struct invocation root; /* ptr alignment */
unsigned ref_count;
struct invocation root;
};
struct registered_func

View File

@ -44,7 +44,6 @@ enum rmsgpack_dom_type
struct rmsgpack_dom_value
{
enum rmsgpack_dom_type type;
union
{
uint64_t uint_;
@ -71,12 +70,13 @@ struct rmsgpack_dom_value
struct rmsgpack_dom_value *items;
} array;
} val;
enum rmsgpack_dom_type type;
};
struct rmsgpack_dom_pair
{
struct rmsgpack_dom_value key;
struct rmsgpack_dom_value value;
struct rmsgpack_dom_value key; /* uint64_t alignment */
struct rmsgpack_dom_value value; /* uint64_t alignment */
};
void rmsgpack_dom_value_print(struct rmsgpack_dom_value *obj);