aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-19 12:44:21 +0200
committerDavid Robillard <d@drobilla.net>2019-12-20 10:26:55 -0500
commit52a14ae9053046a5148451364f8a77989e93b8bb (patch)
tree7fe225b76273fc9c8051d93463c50dc8884026d7 /src/n3.c
parent69bb2b4312a2c353fb6ee5e11faf8efd947db883 (diff)
downloadserd-52a14ae9053046a5148451364f8a77989e93b8bb.tar.gz
serd-52a14ae9053046a5148451364f8a77989e93b8bb.tar.bz2
serd-52a14ae9053046a5148451364f8a77989e93b8bb.zip
Avoid use of ctype.h macros entirely
Some of these cause warnings, and should never have been used in the first place since they depend on locale.
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index aa68bf9a..72e77a1e 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -25,7 +25,6 @@
#include "serd/serd.h"
#include <assert.h>
-#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@@ -675,7 +674,7 @@ read_IRIREF(SerdReader* reader, SerdNode** dest)
break;
default:
if (c <= 0x20) {
- if (isprint(c)) {
+ if (is_print(c)) {
r_err(reader, SERD_ERR_BAD_SYNTAX,
"invalid IRI character `%c' (escape %%%02X)\n",
c, (unsigned)c);