Reordre structs, alignment
This commit is contained in:
parent
0598c5643a
commit
f934aaa78d
|
@ -65,25 +65,25 @@ typedef struct rmsgpack_dom_value (*rarch_query_func)(
|
||||||
|
|
||||||
struct invocation
|
struct invocation
|
||||||
{
|
{
|
||||||
|
struct argument *argv;
|
||||||
rarch_query_func func;
|
rarch_query_func func;
|
||||||
unsigned argc;
|
unsigned argc;
|
||||||
struct argument *argv;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct argument
|
struct argument
|
||||||
{
|
{
|
||||||
enum argument_type type;
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
struct rmsgpack_dom_value value;
|
struct rmsgpack_dom_value value;
|
||||||
struct invocation invocation;
|
struct invocation invocation;
|
||||||
} a;
|
} a;
|
||||||
|
enum argument_type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct query
|
struct query
|
||||||
{
|
{
|
||||||
|
struct invocation root; /* ptr alignment */
|
||||||
unsigned ref_count;
|
unsigned ref_count;
|
||||||
struct invocation root;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct registered_func
|
struct registered_func
|
||||||
|
|
|
@ -44,7 +44,6 @@ enum rmsgpack_dom_type
|
||||||
|
|
||||||
struct rmsgpack_dom_value
|
struct rmsgpack_dom_value
|
||||||
{
|
{
|
||||||
enum rmsgpack_dom_type type;
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
uint64_t uint_;
|
uint64_t uint_;
|
||||||
|
@ -71,12 +70,13 @@ struct rmsgpack_dom_value
|
||||||
struct rmsgpack_dom_value *items;
|
struct rmsgpack_dom_value *items;
|
||||||
} array;
|
} array;
|
||||||
} val;
|
} val;
|
||||||
|
enum rmsgpack_dom_type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rmsgpack_dom_pair
|
struct rmsgpack_dom_pair
|
||||||
{
|
{
|
||||||
struct rmsgpack_dom_value key;
|
struct rmsgpack_dom_value key; /* uint64_t alignment */
|
||||||
struct rmsgpack_dom_value value;
|
struct rmsgpack_dom_value value; /* uint64_t alignment */
|
||||||
};
|
};
|
||||||
|
|
||||||
void rmsgpack_dom_value_print(struct rmsgpack_dom_value *obj);
|
void rmsgpack_dom_value_print(struct rmsgpack_dom_value *obj);
|
||||||
|
|
Loading…
Reference in New Issue