diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-29 21:18:09 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-29 21:18:14 +0100 |
commit | e912254516bedb2d45fff6aa70432146a45d8381 (patch) | |
tree | b3c7b81a7bdbe6807b59a458a81d6de6aea51aae /src/mds-kbdc/tree.h | |
parent | mds-kbdc: check that there is something after the : (diff) | |
download | mds-e912254516bedb2d45fff6aa70432146a45d8381.tar.gz mds-e912254516bedb2d45fff6aa70432146a45d8381.tar.bz2 mds-e912254516bedb2d45fff6aa70432146a45d8381.tar.xz |
mds-kbdc: only five test cases to go before it's time for the next step
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc/tree.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/mds-kbdc/tree.h b/src/mds-kbdc/tree.h index 8354744..6fd5bca 100644 --- a/src/mds-kbdc/tree.h +++ b/src/mds-kbdc/tree.h @@ -500,6 +500,11 @@ typedef struct mds_kbdc_tree_map */ mds_kbdc_tree_t* result; + /* + * These are ordered so that `mds_kbdc_tree_t.macro_call.arguments` + * and `mds_kbdc_tree_t.map.sequence` have the same address. + */ + MDS_KBDC_TREE_PADDING(2); } mds_kbdc_tree_map_t; @@ -598,17 +603,22 @@ typedef struct mds_kbdc_tree_macro_call MDS_KBDC_TREE_COMMON; /** - * The name of the macro - */ - char* name; - - /** * The first input argument for the * macro call, the second is accessed * using `.arguments.next` */ mds_kbdc_tree_t* arguments; + /** + * The name of the macro + */ + char* name; + + /* + * These are ordered so that `mds_kbdc_tree_t.macro_call.arguments` + * and `mds_kbdc_tree_t.map.sequence` have the same address. + */ + MDS_KBDC_TREE_PADDING(2); } mds_kbdc_tree_macro_call_t; |