commit | 212009a15a37d73a29ea9666a89d9427a93b96c5 | [log] [tgz] |
---|---|---|
author | Yorhel <git@yorhel.nl> | Sat Sep 21 17:57:42 2013 +0200 |
committer | Yorhel <git@yorhel.nl> | Sat Sep 21 17:57:42 2013 +0200 |
tree | c4548f796943e1f76c6fc47c1d090ae6e9ce7814 | |
parent | af0f6a3996095e964a1b3f11e3401df728687e62 [diff] |
bench: Use yxml_eof()
diff --git a/bench/bench.c b/bench/bench.c index ab65962..0cdeb99 100644 --- a/bench/bench.c +++ b/bench/bench.c
@@ -49,8 +49,10 @@ r = yxml_parse(x, *buf); buf++; } while(*buf && r >= 0); + if(r >= 0) + r = yxml_eof(x); /*printf("t%03lu l%03u b%03lu: %c %d", x->total, x->line, x->byte, *buf, r);*/ - assert(!*buf); + assert(!*buf && r == YXML_OK); }