]> granicus.if.org Git - json-c/commitdiff
move definition of json_object_iter to public header to enable external use of json_o...
authorJehiah Czebotar <jehiah@gmail.com>
Wed, 25 May 2011 04:49:20 +0000 (04:49 +0000)
committerJehiah Czebotar <jehiah@gmail.com>
Wed, 25 May 2011 04:49:20 +0000 (04:49 +0000)
Patch from Rick Moran <https://github.com/DrHayt>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@74 327403b1-1117-474d-bef2-5cb71233fd97

json_object.h
json_object_private.h

index 29a408de3ca0daad703c70556928bb4d13d53246..9f9ca4009fffc742261ccc568e41566b2f322757 100644 (file)
@@ -27,6 +27,14 @@ extern "C" {
 extern const char *json_number_chars;
 extern const char *json_hex_chars;
 
+/* CAW: added for ANSI C iteration correctness */
+struct json_object_iter
+{
+       char *key;
+       struct json_object *val;
+       struct lh_entry *entry;
+};
+
 /* forward structure definitions */
 
 typedef int boolean;
index c7f604bf4b015a4297f72a82511c51e4f877b4a4..ceca58c80361bf4ceca93222e738a7c971a72071 100644 (file)
@@ -40,14 +40,6 @@ struct json_object
   } o;
 };
 
-/* CAW: added for ANSI C iteration correctness */
-struct json_object_iter
-{
-       char *key;
-       struct json_object *val;
-       struct lh_entry *entry;
-};
-
 #ifdef __cplusplus
 }
 #endif