Changeset 9165072 in serd


Ignore:
Timestamp:
Aug 28, 2017, 3:43:18 AM (3 months ago)
Author:
David Robillard <d@…>
Branches:
master, serd1
Children:
2976016
Parents:
1cd3218
git-author:
David Robillard <d@…> (08/28/17 03:42:50)
git-committer:
David Robillard <d@…> (08/28/17 03:43:18)
Message:

Report errors for prematurely terminated statements

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • NEWS

    r1cd3218 r9165072  
    1 serd (0.29.1) unstable;
     1serd (0.29.2) unstable;
    22
    33  * Support strict parsing of prefixed names
     4  * Report errors for prematurely terminated statements
    45
    5  -- David Robillard <d@drobilla.net>  Sun, 30 Jul 2017 10:35:24 +0200
     6 -- David Robillard <d@drobilla.net>  Mon, 28 Aug 2017 12:39:47 +0200
    67
    78serd (0.28.0) stable;
  • src/reader.c

    r1cd3218 r9165072  
    16001600    Ref                subj    = 0;
    16011601    bool               ate_dot = false;
    1602     char               s_type  = false;
     1602    char               s_type  = 0;
    16031603    bool               ret     = true;
    16041604    read_ws_star(reader);
     
    16421642            ret = r_err(reader, SERD_ERR_BAD_SYNTAX, "bad subject\n");
    16431643        } else if (!read_triples(reader, ctx, &ate_dot)) {
    1644             ret = (s_type == '[');
     1644            if (!(ret = (s_type == '['))) {
     1645                r_err(reader, SERD_ERR_BAD_SYNTAX, "expected predicate\n");
     1646            }
    16451647        } else if (!ate_dot) {
    16461648            read_ws_star(reader);
  • wscript

    r1cd3218 r9165072  
    1212# minor increment <=> compatible changes (additions)
    1313# micro increment <=> no interface changes
    14 SERD_VERSION       = '0.29.1'
     14SERD_VERSION       = '0.29.2'
    1515SERD_MAJOR_VERSION = '0'
    1616
Note: See TracChangeset for help on using the changeset viewer.