diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 20:39:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:47 -0500 |
commit | 869e805270479fbce0e5f517890b6458398d781a (patch) | |
tree | 032caa6d3071afb8fcb809ad294abba16a8ce613 /serd | |
parent | 2b0e3de607f2b0eca00b3986ecbcd9fe26ecf95d (diff) | |
download | serd-869e805270479fbce0e5f517890b6458398d781a.tar.gz serd-869e805270479fbce0e5f517890b6458398d781a.tar.bz2 serd-869e805270479fbce0e5f517890b6458398d781a.zip |
Use fixed size stack
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/serd/serd.h b/serd/serd.h index 20db1864..fa69d82d 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -99,7 +99,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; /** @@ -892,7 +893,10 @@ serd_env_foreach(const SerdEnv* env, */ SERD_API SerdReader* -serd_reader_new(SerdWorld* world, SerdSyntax syntax, const SerdSink* sink); +serd_reader_new(SerdWorld* world, + SerdSyntax syntax, + const SerdSink* sink, + size_t stack_size); /** Enable or disable strict parsing. |