aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/goto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/goto.h')
-rw-r--r--src/goto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/goto.h b/src/goto.h
index 1988e23..76b3147 100644
--- a/src/goto.h
+++ b/src/goto.h
@@ -18,6 +18,8 @@
#ifndef __GOTO_H
#define __GOTO_H
+#include <string.h>
+
#include <glib.h>
#include <glib/gprintf.h>
@@ -51,6 +53,12 @@ class GotoTable : public RBTree {
table->dump();
#endif
}
+
+ gsize
+ get_size(void) const
+ {
+ return sizeof(*this) + strlen(name) + 1;
+ }
};
class Label : public RBTree::RBEntry {