aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-14 09:41:46 +0100
committerDavid Robillard <d@drobilla.net>2017-02-14 09:41:46 +0100
commitc144df7d92a3e3e9c8343b84ea61588b6889b743 (patch)
tree0ee7d756963e2c7df94c14d0bc3a14703cd849c5
parent571dcd54f1e32bb2c671aca199b51201bc37d4a6 (diff)
downloadserd-c144df7d92a3e3e9c8343b84ea61588b6889b743.tar.gz
serd-c144df7d92a3e3e9c8343b84ea61588b6889b743.tar.bz2
serd-c144df7d92a3e3e9c8343b84ea61588b6889b743.zip
Improve struct packing
-rw-r--r--src/reader.c2
-rw-r--r--src/writer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index af5fb85c..cb39ca91 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -77,11 +77,11 @@ struct SerdReaderImpl {
FILE* fd;
SerdStack stack;
SerdSyntax syntax;
+ unsigned next_id;
Cursor cur;
uint8_t* buf;
uint8_t* bprefix;
size_t bprefix_len;
- unsigned next_id;
const uint8_t* read_buf;
uint8_t* file_buf;
int32_t read_head; ///< Offset into read_buf
diff --git a/src/writer.c b/src/writer.c
index e99d62d8..1917f8f6 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -93,9 +93,9 @@ struct SerdWriterImpl {
WriteContext context;
SerdNode list_subj;
unsigned list_depth;
+ unsigned indent;
uint8_t* bprefix;
size_t bprefix_len;
- unsigned indent;
Sep last_sep;
bool empty;
};