aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/tree.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-16 05:06:01 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-16 05:06:01 +0100
commit9940529e836131cfcb4c60984a73cdceb660636e (patch)
tree36d4fbd6f118c8fa9d7e71d43fbb76db35ec350e /src/mds-kbdc/tree.h
parentm (diff)
downloadmds-9940529e836131cfcb4c60984a73cdceb660636e.tar.gz
mds-9940529e836131cfcb4c60984a73cdceb660636e.tar.bz2
mds-9940529e836131cfcb4c60984a73cdceb660636e.tar.xz
mds-kbdc: annotate tree with source code locations and report where unpopped scopes were pushed
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/tree.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mds-kbdc/tree.h b/src/mds-kbdc/tree.h
index 1f31e34..7bdbf3d 100644
--- a/src/mds-kbdc/tree.h
+++ b/src/mds-kbdc/tree.h
@@ -170,8 +170,16 @@ typedef union mds_kbdc_tree mds_kbdc_tree_t;
* It defines:
* - int type; -- Integer that specifies which structure is used
* - mds_kbdc_tree_t*; -- The next node in the tree, at the same level; a sibling
- */
-#define MDS_KBDC_TREE_COMMON int type; mds_kbdc_tree_t* next
+ * - loc_line; -- The line in the source code where this is found
+ * - loc_start; -- The first byte in the source code where this is found, inclusive
+ * - loc_end; -- The last byte in the source code where this is found, exclusive
+ */
+#define MDS_KBDC_TREE_COMMON \
+ int type; \
+ mds_kbdc_tree_t* next; \
+ size_t loc_line; \
+ size_t loc_start; \
+ size_t loc_end
/**
* This macro is used in this header file, and is then