aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-24 23:27:15 +0000
committerDavid Robillard <d@drobilla.net>2011-01-24 23:27:15 +0000
commite4daedb841acef2a4839a33e7c17ee8ea5fa6913 (patch)
treed24a5a955c3be4b5f2cc938ea5c090c9e80de06c /src/reader.c
parent6903e56e2443a1a5b023d688cb7fd54e3580316d (diff)
downloadserd-e4daedb841acef2a4839a33e7c17ee8ea5fa6913.tar.gz
serd-e4daedb841acef2a4839a33e7c17ee8ea5fa6913.tar.bz2
serd-e4daedb841acef2a4839a33e7c17ee8ea5fa6913.zip
Remove SerdString cruft.
git-svn-id: http://svn.drobilla.net/serd/trunk@54 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c
index 35067403..773dd99b 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -60,6 +60,13 @@ typedef struct {
const Node* predicate;
} ReadContext;
+/** Measured UTF-8 string. */
+typedef struct {
+ size_t n_bytes; ///< Size in bytes including trailing null byte
+ size_t n_chars; ///< Length in characters
+ uint8_t buf[]; ///< Buffer
+} SerdString;
+
static const Node INTERNAL_NODE_NULL = { 0, 0, 0, 0 };
struct SerdReaderImpl {