summaryrefslogtreecommitdiff
path: root/choices.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-04-30 17:28:55 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-05-02 21:39:44 -0700
commitc5ab36831ec13a695e35de627409929eff05ff46 (patch)
treea3b7cc30da65f7c479c040d34570992aa2827913 /choices.h
parentdba5471867a3bdfb2de2d7527994fd7f78c60392 (diff)
Store read buffer on choices structure
This would allow reading from multiple files (which we don't need) as well as allowing us to free the buffer with the rest of the choices structure (which is nice).
Diffstat (limited to 'choices.h')
-rw-r--r--choices.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/choices.h b/choices.h
index c356605..63468ab 100644
--- a/choices.h
+++ b/choices.h
@@ -9,6 +9,9 @@ struct scored_result {
};
typedef struct {
+ char *buffer;
+ size_t buffer_size;
+
size_t capacity;
size_t size;