diff options
author | David Robillard <d@drobilla.net> | 2018-05-10 20:14:24 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | a14effc37415540b7b8a1dc6238b350566f273e1 (patch) | |
tree | 5291df350a08771824718a108a81060546f1bc2b /src/serd_internal.h | |
parent | 6eb1fa15a06ab7de08e33add1540a45b83c5f0d8 (diff) | |
download | serd-a14effc37415540b7b8a1dc6238b350566f273e1.tar.gz serd-a14effc37415540b7b8a1dc6238b350566f273e1.tar.bz2 serd-a14effc37415540b7b8a1dc6238b350566f273e1.zip |
Move error handling to world
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r-- | src/serd_internal.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h index 0c9d4609..49a1cd93 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -4,13 +4,6 @@ #ifndef SERD_SRC_SERD_INTERNAL_H #define SERD_SRC_SERD_INTERNAL_H -#include "world.h" - -#include "serd/error.h" -#include "serd/world.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#" @@ -20,21 +13,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_SRC_SERD_INTERNAL_H |