diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 20:39:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-05-27 21:10:21 +0200 |
commit | c4b5d8a5f6973952b510ebd321cbac8aa5fb5267 (patch) | |
tree | c4b80c9b612f3f6bb8eb2561da9cd26f826579cb /serd | |
parent | 582bfbe1cb0a6aa833f56c5bd8cf42abe5c5d13a (diff) | |
download | serd-c4b5d8a5f6973952b510ebd321cbac8aa5fb5267.tar.gz serd-c4b5d8a5f6973952b510ebd321cbac8aa5fb5267.tar.bz2 serd-c4b5d8a5f6973952b510ebd321cbac8aa5fb5267.zip |
Use fixed size stack
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/serd/serd.h b/serd/serd.h index e7b47693..514fccf4 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -128,7 +128,8 @@ typedef enum { SERD_ERR_NOT_FOUND, /**< Not found */ SERD_ERR_ID_CLASH, /**< Encountered clashing blank node IDs */ SERD_ERR_BAD_CURIE, /**< Invalid CURIE (e.g. prefix does not exist) */ - SERD_ERR_INTERNAL /**< Unexpected internal error (should not happen) */ + SERD_ERR_INTERNAL, /**< Unexpected internal error (should not happen) */ + SERD_ERR_OVERFLOW /**< Stack overflow */ } SerdStatus; /** @@ -928,7 +929,8 @@ SERD_API SerdReader* serd_reader_new(SerdWorld* world, SerdSyntax syntax, - const SerdSinkInterface* sink); + const SerdSinkInterface* sink, + size_t stack_size); /** Enable or disable strict parsing. |