]> granicus.if.org Git - json-c/commitdiff
Make the json_tokener_errors array local. It has been deprecated for a while, and...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 23 Mar 2014 01:41:24 +0000 (21:41 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 23 Mar 2014 01:41:24 +0000 (21:41 -0400)
json_tokener.c
json_tokener.h

index e4710e48e04f649204cb863ed6c1591ae54f9f63..a1019c0a759ed5902d82fd4ec02476338a1f441e 100644 (file)
@@ -66,8 +66,7 @@ static const int json_true_str_len = sizeof(json_true_str) - 1;
 static const char json_false_str[] = "false";
 static const int json_false_str_len = sizeof(json_false_str) - 1;
 
-// XXX after v0.10 this array will become static:
-const char* json_tokener_errors[] = {
+static const char* json_tokener_errors[] = {
   "success",
   "continue",
   "nesting too deep",
index 61f73d2311a9a5936c9380f02bb9b50f95fcd7ad..5471d97c45d06ea13d6d486568daad37270d407b 100644 (file)
@@ -106,14 +106,6 @@ struct json_tokener
  */
 const char *json_tokener_error_desc(enum json_tokener_error jerr);
 
-/** 
- * @b XXX do not use json_tokener_errors directly.  
- * After v0.10 this will be removed.
- *
- * See json_tokener_error_desc() instead.
- */
-extern const char* json_tokener_errors[];
-
 /**
  * Retrieve the error caused by the last call to json_tokener_parse_ex(),
  * or json_tokener_success if there is no error.