summaryrefslogtreecommitdiff
path: root/src/str_partial.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/str_partial.h')
-rw-r--r--src/str_partial.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/str_partial.h b/src/str_partial.h
new file mode 100644
index 0000000..9d4fbd6
--- /dev/null
+++ b/src/str_partial.h
@@ -0,0 +1,13 @@
+#include "str.h"
+
+/* This is meant to be extended, and only has minimal necessary
+ fields. */
+
+typedef str_info (*info_getter) (str *, UNUM);
+
+struct str_s {
+ UNUM size; /* the size in bytes, not in chars */
+ char *data; /* a void pointer is too general */
+ /* polymorphic behaviour */
+ info_getter getter;
+};