aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-11-05 11:14:28 +0100
committerDavid Robillard <d@drobilla.net>2017-11-05 11:14:28 +0100
commit8aad54ea550d0d923189834f964512a9b1be927f (patch)
tree1f892ba636d10e1db8051cf5b97b927fac7b30f5
parentcc1656a3df150787229a503323458f854819a314 (diff)
downloadserd-8aad54ea550d0d923189834f964512a9b1be927f.tar.gz
serd-8aad54ea550d0d923189834f964512a9b1be927f.tar.bz2
serd-8aad54ea550d0d923189834f964512a9b1be927f.zip
Factor out namespace defines
-rw-r--r--src/reader.c3
-rw-r--r--src/serd_internal.h3
-rw-r--r--src/writer.c3
3 files changed, 3 insertions, 6 deletions
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 <stdlib.h>
#include <string.h>
-#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 <fcntl.h>
#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 <stdlib.h>
#include <string.h>
-#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;