Browse Source

Delete trailing whitespace

git-svn-id: http://svn.drobilla.net/serd/trunk@494 490d8e77-9747-427b-9fa3-0b8f29cee8a0
zrythm_meson
David Robillard 7 years ago
parent
commit
6bacb30a9a
  1. 6
      src/reader.c
  2. 4
      src/writer.c

6
src/reader.c

@ -635,7 +635,7 @@ read_PN_CHARS(SerdReader* reader, Ref dest) @@ -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) @@ -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) @@ -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);
}

4
src/writer.c

@ -177,7 +177,7 @@ parse_utf8_char(SerdWriter* writer, const uint8_t* utf8, size_t* size) @@ -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) @@ -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)
{

Loading…
Cancel
Save