aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/raw-data.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-01 13:27:13 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-01 13:27:13 +0100
commit2d0181e9e07236ea28fb638c4a9eafb5896635b6 (patch)
tree2cd560e7bd8fa5960a06e4fade81fd57b6dc581f /src/mds-kbdc/raw-data.h
parentm (diff)
downloadmds-2d0181e9e07236ea28fb638c4a9eafb5896635b6.tar.gz
mds-2d0181e9e07236ea28fb638c4a9eafb5896635b6.tar.bz2
mds-2d0181e9e07236ea28fb638c4a9eafb5896635b6.tar.xz
mds-kbdc: add some test cases + fix issued with inclusion
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-kbdc/raw-data.h')
-rw-r--r--src/mds-kbdc/raw-data.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mds-kbdc/raw-data.h b/src/mds-kbdc/raw-data.h
index a2f1edc..95163db 100644
--- a/src/mds-kbdc/raw-data.h
+++ b/src/mds-kbdc/raw-data.h
@@ -55,6 +55,12 @@ typedef struct mds_kbdc_source_code
*/
size_t line_count;
+ /**
+ * The number of duplicates there are of this
+ * structure that shared the memory
+ */
+ size_t duplicates;
+
} mds_kbdc_source_code_t;
@@ -79,6 +85,14 @@ void mds_kbdc_source_code_destroy(mds_kbdc_source_code_t* restrict this);
*/
void mds_kbdc_source_code_free(mds_kbdc_source_code_t* restrict this);
+/**
+ * Create a duplicate of a `mds_kbdc_source_code_t*`
+ *
+ * @param this The `mds_kbdc_source_code_t*`
+ * @return `this` is returned
+ */
+mds_kbdc_source_code_t* mds_kbdc_source_code_dup(mds_kbdc_source_code_t* restrict this);
+
/**
* Find the end of a function call