Skip to content

Commit d43a4e9

Browse files
committed
Remove SUCCESS_AND_HAS_MORE (internal only value)
1 parent 3e22679 commit d43a4e9

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

include/simdjson/error.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace simdjson {
1111
*/
1212
enum error_code {
1313
SUCCESS = 0, ///< No error
14-
SUCCESS_AND_HAS_MORE, ///< @private No error and buffer still has more data
1514
CAPACITY, ///< This parser can't support a document that big
1615
MEMALLOC, ///< Error allocating memory, most likely out of memory
1716
TAPE_ERROR, ///< Something went wrong while writing to the tape (stage 2), this is a generic error

include/simdjson/internal/dom_parser_implementation.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ class dom_parser_implementation {
7676
* Overridden by each implementation.
7777
*
7878
* @param doc The document to output to.
79-
* @param next_json The next structural index. Start this at 0 the first time, and it will be updated to the next value to pass each time.
80-
* @return The error code, SUCCESS if there was no error, or SUCCESS_AND_HAS_MORE if there was no error and stage2 can be called again.
79+
* @return The error code, SUCCESS if there was no error, or EMPTY if all documents have been parsed.
8180
*/
8281
WARN_UNUSED virtual error_code stage2_next(dom::document &doc) noexcept = 0;
8382

src/error.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ namespace internal {
55

66
SIMDJSON_DLLIMPORTEXPORT const error_code_info error_codes[] {
77
{ SUCCESS, "No error" },
8-
{ SUCCESS_AND_HAS_MORE, "No error and buffer still has more data" },
98
{ CAPACITY, "This parser can't support a document that big" },
109
{ MEMALLOC, "Error allocating memory, we're most likely out of memory" },
1110
{ TAPE_ERROR, "The JSON document has an improper structure: missing or superfluous commas, braces, missing keys, etc." },

0 commit comments

Comments
 (0)