diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 20:16:43 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 20:16:43 +0200 |
| commit | d64e7bf3d93649b78231912f37606153e3d30665 (patch) | |
| tree | 1b583f5b3a8952794d4bd4f7a1936f7d66802551 /src/json.c | |
| parent | update .git-blame-ignore-revs (diff) | |
| download | cimple-d64e7bf3d93649b78231912f37606153e3d30665.tar.gz cimple-d64e7bf3d93649b78231912f37606153e3d30665.zip | |
finally, perfect .clang-format settings?
Diffstat (limited to 'src/json.c')
| -rw-r--r-- | src/json.c | 30 |
1 files changed, 18 insertions, 12 deletions
@@ -184,10 +184,12 @@ int libjson_get_int(const struct json_object* obj, const char* key, int64_t* _va return 0; } -static int libjson_set_internal(struct json_object* obj, - const char* key, - struct json_object* value, - unsigned flags) { +static int libjson_set_internal( + struct json_object* obj, + const char* key, + struct json_object* value, + unsigned flags +) { int ret = 0; ret = json_object_object_add_ex(obj, key, value, flags); @@ -199,10 +201,12 @@ static int libjson_set_internal(struct json_object* obj, return 0; } -static int libjson_set_string_internal(struct json_object* obj, - const char* key, - const char* _value, - unsigned flags) { +static int libjson_set_string_internal( + struct json_object* obj, + const char* key, + const char* _value, + unsigned flags +) { struct json_object* value = json_object_new_string(_value); if (!value) { libjson_errno("json_object_new_string"); @@ -221,10 +225,12 @@ free_value: return ret; } -static int libjson_set_int_internal(struct json_object* obj, - const char* key, - int64_t _value, - unsigned flags) { +static int libjson_set_int_internal( + struct json_object* obj, + const char* key, + int64_t _value, + unsigned flags +) { struct json_object* value = json_object_new_int64(_value); if (!value) { libjson_errno("json_object_new_int"); |
