From 8aad54ea550d0d923189834f964512a9b1be927f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Nov 2017 11:14:28 +0100 Subject: Factor out namespace defines --- src/reader.c | 3 --- src/serd_internal.h | 3 +++ src/writer.c | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/reader.c b/src/reader.c index 465efcb8..5d996e34 100644 --- a/src/reader.c +++ b/src/reader.c @@ -25,9 +25,6 @@ #include #include -#define NS_XSD "http://www.w3.org/2001/XMLSchema#" -#define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" - #define TRY_THROW(exp) if (!(exp)) goto except; #define TRY_RET(exp) if (!(exp)) return 0; diff --git a/src/serd_internal.h b/src/serd_internal.h index 9af5195b..5cda4d16 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -33,6 +33,9 @@ # include #endif +#define NS_XSD "http://www.w3.org/2001/XMLSchema#" +#define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" + #define SERD_PAGE_SIZE 4096 #ifndef MIN diff --git a/src/writer.c b/src/writer.c index c21676b2..3051232d 100644 --- a/src/writer.c +++ b/src/writer.c @@ -21,9 +21,6 @@ #include #include -#define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" -#define NS_XSD "http://www.w3.org/2001/XMLSchema#" - typedef struct { SerdNode graph; SerdNode subject; -- cgit v1.2.1