aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-09 21:36:52 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit06bc73c6fdf986eb5d13943b497992a947661bb1 (patch)
tree23d43aa2429696bc27bc3d1c5ec2fcf7def995ff /src/serdi.c
parent7219a81ad6cff840eb604983b3752d4f2097532a (diff)
downloadserd-06bc73c6fdf986eb5d13943b497992a947661bb1.tar.gz
serd-06bc73c6fdf986eb5d13943b497992a947661bb1.tar.bz2
serd-06bc73c6fdf986eb5d13943b497992a947661bb1.zip
Replace SERD_WRITE_STRICT flag with SERD_WRITE_LAX
The unset value for flags should represent the best default, which in this case is strict parsing. Lax parsing is the riskier opt-in option.
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 59c66cae..0610069d 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -100,7 +100,7 @@ main(int argc, char** argv)
SerdSyntax input_syntax = (SerdSyntax)0;
SerdSyntax output_syntax = (SerdSyntax)0;
- SerdWriterFlags writer_flags = SERD_WRITE_STRICT;
+ SerdWriterFlags writer_flags = 0;
bool from_string = false;
bool from_stdin = false;
bool bulk_read = true;
@@ -139,8 +139,8 @@ main(int argc, char** argv)
} else if (opt == 'h') {
return print_usage(prog, false);
} else if (opt == 'l') {
+ writer_flags |= SERD_WRITE_LAX;
lax = true;
- writer_flags &= ~(SerdWriterFlags)SERD_WRITE_STRICT;
} else if (opt == 'q') {
quiet = true;
} else if (opt == 't') {