Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move definition of json_object_iter to public header to enable extern…

…al use of json_object_object_foreachC

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
  • Loading branch information...
commit 43d2f417c70b9a9845122fd3f69708c6dc47efd1 1 parent 1910225
@jehiah authored
Showing with 8 additions and 8 deletions.
  1. +8 −0 json_object.h
  2. +0 −8 json_object_private.h
View
8 json_object.h
@@ -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;
View
8 json_object_private.h
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.