Skip to content

Commit

Permalink
move definition of json_object_iter to public header to enable extern…
Browse files Browse the repository at this point in the history
…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
jehiah committed May 25, 2011
1 parent 1910225 commit 43d2f41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions json_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 0 additions & 8 deletions json_object_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43d2f41

Please sign in to comment.