diff options
Diffstat (limited to 'src/fs/TextFile.hxx')
-rw-r--r-- | src/fs/TextFile.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fs/TextFile.hxx b/src/fs/TextFile.hxx index b4b850c0f..e3a712a88 100644 --- a/src/fs/TextFile.hxx +++ b/src/fs/TextFile.hxx @@ -23,9 +23,9 @@ #include "Compiler.h" #include <stdio.h> +#include <stddef.h> class Path; -typedef struct _GString GString; class TextFile { static constexpr size_t max_length = 512 * 1024; @@ -33,7 +33,8 @@ class TextFile { FILE *const file; - GString *const buffer; + char *buffer; + size_t capacity, length; public: TextFile(Path path_fs); |