Changeset 58 in serd


Ignore:
Timestamp:
01/24/11 16:46:17 (4 years ago)
Author:
drobilla
Message:

Remove unused character escape code.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reader.c

    r56 r58  
    450450{ 
    451451    const uint8_t c = peek_byte(reader); 
     452    assert(c != '\\');  // Only called from methods that handle escapes first 
    452453    switch (c) { 
    453454    case '\0': 
    454455        error(reader, "unexpected end of file\n", peek_byte(reader)); 
    455456        return SERD_ERROR; 
    456     case '\\':  // 0x5C 
    457         eat_byte(reader, '\\'); 
    458         if (read_character_escape(reader, dest)) { 
    459             return SERD_SUCCESS; 
    460         } else { 
    461             error(reader, "invalid escape `\\%c'\n", peek_byte(reader)); 
    462             return SERD_ERROR; 
    463         } 
    464457    default: 
    465458        if (c < 0x20) {  // ASCII control character 
  • trunk/tests/test-uri.ttl

    r57 r58  
    3535<?aquery>            owl:sameAs <http://a/b/c/d;p?aquery> . 
    3636<#afragment>         owl:sameAs <http://a/b/c/d;p?q#afragment> . 
    37  
Note: See TracChangeset for help on using the changeset viewer.