diff options
author | David Robillard <d@drobilla.net> | 2015-10-04 17:44:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-04 17:44:49 +0000 |
commit | 6bacb30a9ae65174d3b38f62ff845706f14305a1 (patch) | |
tree | 0df690e837e347ea6e16988325e6e167b518d915 /src | |
parent | 2e8a0c16c39083e4ee0328eab4fa87f5b9c94069 (diff) | |
download | serd-6bacb30a9ae65174d3b38f62ff845706f14305a1.tar.gz serd-6bacb30a9ae65174d3b38f62ff845706f14305a1.tar.bz2 serd-6bacb30a9ae65174d3b38f62ff845706f14305a1.zip |
Delete trailing whitespace
git-svn-id: http://svn.drobilla.net/serd/trunk@494 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r-- | src/reader.c | 6 | ||||
-rw-r--r-- | src/writer.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/reader.c b/src/reader.c index c3c2e538..a17fac88 100644 --- a/src/reader.c +++ b/src/reader.c @@ -635,7 +635,7 @@ read_PN_CHARS(SerdReader* reader, Ref dest) if ((c & 0x80)) { // Multi-byte character return !read_utf8_character(reader, dest, eat_byte_safe(reader, c)); } - + if (is_alpha(c) || is_digit(c) || c == '_' || c == '-') { push_byte(reader, dest, eat_byte_safe(reader, c)); return true; @@ -656,7 +656,7 @@ read_PERCENT(SerdReader* reader, Ref dest) } return false; } - + static SerdStatus read_PLX(SerdReader* reader, Ref dest) { @@ -884,7 +884,7 @@ read_number(SerdReader* reader, Ref* dest, Ref* datatype, bool* ate_dot) *ate_dot = true; // Force caller to deal with stupid grammar return true; // Next byte is not a number character, done } - + push_byte(reader, ref, '.'); read_0_9(reader, ref, false); } diff --git a/src/writer.c b/src/writer.c index 4eb39493..60be18f9 100644 --- a/src/writer.c +++ b/src/writer.c @@ -177,7 +177,7 @@ parse_utf8_char(SerdWriter* writer, const uint8_t* utf8, size_t* size) size_t i = 0; uint8_t in = utf8[i++]; - + #define READ_BYTE() \ in = utf8[i++] & 0x3F; \ c = (c << 6) | in; @@ -237,7 +237,7 @@ uri_must_escape(const uint8_t c) return !in_range(c, 0x20, 0x7E); } } - + static size_t write_uri(SerdWriter* writer, const uint8_t* utf8, size_t n_bytes) { |