mirror of
https://github.com/json-c/json-c.git
synced 2026-04-01 03:19:06 +08:00
clang-format the files
This commit is contained in:
12
json_visit.h
12
json_visit.h
@@ -8,9 +8,8 @@
|
||||
*/
|
||||
#include "json_object.h"
|
||||
|
||||
typedef int (json_c_visit_userfunc)(json_object *jso, int flags,
|
||||
json_object *parent_jso, const char *jso_key,
|
||||
size_t *jso_index, void *userarg);
|
||||
typedef int(json_c_visit_userfunc)(json_object *jso, int flags, json_object *parent_jso,
|
||||
const char *jso_key, size_t *jso_index, void *userarg);
|
||||
|
||||
/**
|
||||
* Visit each object in the JSON hierarchy starting at jso.
|
||||
@@ -31,15 +30,15 @@ typedef int (json_c_visit_userfunc)(json_object *jso, int flags,
|
||||
* Returns <0 if an error occurred during iteration, including if
|
||||
* userfunc returned JSON_C_VISIT_RETURN_ERROR.
|
||||
*/
|
||||
JSON_EXPORT int json_c_visit(json_object *jso, int future_flags,
|
||||
json_c_visit_userfunc *userfunc, void *userarg);
|
||||
JSON_EXPORT int json_c_visit(json_object *jso, int future_flags, json_c_visit_userfunc *userfunc,
|
||||
void *userarg);
|
||||
|
||||
/**
|
||||
* Passed to json_c_visit_userfunc as one of the flags values to indicate
|
||||
* that this is the second time a container (array or object) is being
|
||||
* called, after all of it's members have been iterated over.
|
||||
*/
|
||||
#define JSON_C_VISIT_SECOND 0x02
|
||||
#define JSON_C_VISIT_SECOND 0x02
|
||||
|
||||
/**
|
||||
* This json_c_visit_userfunc return value indicates that iteration
|
||||
@@ -47,7 +46,6 @@ JSON_EXPORT int json_c_visit(json_object *jso, int future_flags,
|
||||
*/
|
||||
#define JSON_C_VISIT_RETURN_CONTINUE 0
|
||||
|
||||
|
||||
/**
|
||||
* This json_c_visit_userfunc return value indicates that iteration
|
||||
* over the members of the current object should be skipped.
|
||||
|
||||
Reference in New Issue
Block a user