瀏覽代碼

Removed unused error code

Sergey Lyubka 11 年之前
父節點
當前提交
f627abbce6
共有 2 個文件被更改,包括 1 次插入3 次删除
  1. 1 2
      README.md
  2. 0 1
      frozen.h

+ 1 - 2
README.md

@@ -28,7 +28,7 @@ all `parse_json` will store tokens in the `tokens_array`. Token with type
       int num_desc;       // For arrays and object, total number of descendants
       int type;           // Type of the token, possible values below
 
-    #define JSON_TYPE_EOF     0   // Not a real token. This is a marker
+    #define JSON_TYPE_EOF     0   // Not a real token, but end-of-tokens marker
     #define JSON_TYPE_STRING  1
     #define JSON_TYPE_NUMBER  2
     #define JSON_TYPE_OBJECT  3
@@ -51,7 +51,6 @@ returned, one of:
     #define JSON_STRING_INVALID           -1
     #define JSON_STRING_INCOMPLETE        -2
     #define JSON_TOKEN_ARRAY_TOO_SMALL    -3
-    #define JSON_OUTPUT_BUFFER_TOO_SMALL  -4
 
 <!-- -->
 

+ 0 - 1
frozen.h

@@ -42,7 +42,6 @@ struct json_token {
 #define JSON_STRING_INVALID           -1
 #define JSON_STRING_INCOMPLETE        -2
 #define JSON_TOKEN_ARRAY_TOO_SMALL    -3
-#define JSON_OUTPUT_BUFFER_TOO_SMALL  -4
 
 int parse_json(const char *json_string, int json_string_length,
                struct json_token *tokens_array, int size_of_tokens_array);