diff options
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | src/sord_validate.c | 9 |
2 files changed, 7 insertions, 6 deletions
@@ -1,8 +1,8 @@ sord (0.16.1) unstable; - * sord_validate: Update copyright notice + * sord_validate: Fix restriction count reporting - -- David Robillard <d@drobilla.net> Sat, 28 Jan 2017 14:26:03 -0500 + -- David Robillard <d@drobilla.net> Tue, 07 Feb 2017 21:24:00 +0100 sord (0.16.0) stable; diff --git a/src/sord_validate.c b/src/sord_validate.c index 50ed462..c36dc09 100644 --- a/src/sord_validate.c +++ b/src/sord_validate.c @@ -1,5 +1,5 @@ /* - Copyright 2012-2016 David Robillard <http://drobilla.net> + Copyright 2012-2017 David Robillard <http://drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -89,7 +89,7 @@ print_version(void) { printf("sord_validate " SORD_VERSION " <http://drobilla.net/software/sord>\n"); - printf("Copyright 2012-2016 David Robillard <http://drobilla.net>.\n" + printf("Copyright 2012-2017 David Robillard <http://drobilla.net>.\n" "License: <http://www.opensource.org/licenses/isc>\n" "This is free software; you are free to change and redistribute it." "\nThere is NO WARRANTY, to the extent permitted by law.\n"); @@ -240,7 +240,6 @@ check_restriction(SordModel* model, { size_t len = 0; const char* str = (const char*)sord_node_get_string_counted(literal, &len); - ++n_restrictions; // Check xsd:pattern SordIter* p = sord_search(model, restriction, uris->xsd_pattern, 0, 0); @@ -255,6 +254,7 @@ check_restriction(SordModel* model, return false; } sord_iter_free(p); + ++n_restrictions; } // Check xsd:minInclusive @@ -270,6 +270,7 @@ check_restriction(SordModel* model, return false; } sord_iter_free(l); + ++n_restrictions; } // Check xsd:maxInclusive @@ -285,9 +286,9 @@ check_restriction(SordModel* model, return false; } sord_iter_free(u); + ++n_restrictions; } - --n_restrictions; return true; // Unknown restriction, be quietly tolerant } |