diff options
author | David Robillard <d@drobilla.net> | 2018-05-10 20:14:24 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:05 -0500 |
commit | a4f6754a4048f2bcb04482938d5a98e9ab77d4fc (patch) | |
tree | 5a9ee51f51ae4a1c7116d94cc833f10a5532ff87 /src/serd_internal.h | |
parent | 10c706a040abeaf5c82db54086d4edb03a995cf3 (diff) | |
download | serd-a4f6754a4048f2bcb04482938d5a98e9ab77d4fc.tar.gz serd-a4f6754a4048f2bcb04482938d5a98e9ab77d4fc.tar.bz2 serd-a4f6754a4048f2bcb04482938d5a98e9ab77d4fc.zip |
Move error handling to world
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r-- | src/serd_internal.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h index 1bb2a3bc..91ba509c 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -17,12 +17,6 @@ #ifndef SERD_INTERNAL_H #define SERD_INTERNAL_H -#include "world.h" - -#include "serd/serd.h" - -#include <stdio.h> - #define NS_XSD "http://www.w3.org/2001/XMLSchema#" #define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" @@ -32,21 +26,4 @@ # define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif -/* Error reporting */ - -static inline void -serd_error(const SerdWorld* world, const SerdError* e) -{ - if (world->error_func) { - world->error_func(world->error_handle, e); - } else { - if (e->filename) { - fprintf(stderr, "error: %s:%u:%u: ", e->filename, e->line, e->col); - } else { - fprintf(stderr, "error: "); - } - vfprintf(stderr, e->fmt, *e->args); - } -} - #endif // SERD_INTERNAL_H |