From dc8831a4ebfee8a61975123f969f737845ad537f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Oct 2020 12:31:29 +0200 Subject: Add SERD_READ_EXACT_BLANKS flag This allows suppressing the blank node ID clashing mechanism to read blank IDs exactly as they appear in the input, even if they match the scheme used to generate blank node IDs internally. --- include/serd/serd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/serd') diff --git a/include/serd/serd.h b/include/serd/serd.h index b125bb3d..f3402dd1 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -304,8 +304,9 @@ typedef struct { /// Reader options typedef enum { - SERD_READ_LAX = 1u << 0u, ///< Tolerate invalid input where possible - SERD_READ_VARIABLES = 1u << 1u ///< Support variable nodes + SERD_READ_LAX = 1u << 0u, ///< Tolerate invalid input where possible + SERD_READ_VARIABLES = 1u << 1u, ///< Support variable nodes + SERD_READ_EXACT_BLANKS = 1u << 2u, ///< Allow clashes with generated blanks } SerdReaderFlag; /// Bitwise OR of SerdReaderFlag values -- cgit v1.2.1