Skip to content
Extraits de code Groupes Projets
Vérifiée Valider d725c3bc rédigé par Kubat's avatar Kubat
Parcourir les fichiers

DOC: Apply astyle

parent 0048ee1d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!130Resolve "Remove json-c"
...@@ -113,9 +113,8 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use ...@@ -113,9 +113,8 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use
/* End of a block */ /* End of a block */
else if ((len = strspn(str, __JSON_END))) { else if ((len = strspn(str, __JSON_END))) {
if (level == asked_level) { if (level == asked_level)
call(NULL, NULL, 1, user); call(NULL, NULL, 1, user);
}
str += len; str += len;
level -= len; level -= len;
} }
...@@ -133,10 +132,9 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use ...@@ -133,10 +132,9 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use
call(key, val, 0, user); call(key, val, 0, user);
} }
if (level <= 0) { if (level <= 0)
return 0; return 0;
} }
}
return 1; return 1;
} }
...@@ -173,9 +171,8 @@ json_parse_get_count(const char *str, int level) ...@@ -173,9 +171,8 @@ json_parse_get_count(const char *str, int level)
call(key, val, 0, user); call(key, val, 0, user);
} }
if (level <= 0) { if (level <= 0)
return len; return len;
} }
}
return -1; return -1;
} }
...@@ -398,10 +398,9 @@ __handle_got_json_internal_callback(const char *key, const char *val, int comp, ...@@ -398,10 +398,9 @@ __handle_got_json_internal_callback(const char *key, const char *val, int comp,
__handle_got_json_dl(kara, current_id); __handle_got_json_dl(kara, current_id);
} }
else { else
LOG_ERROR("REPO", "Invalid call to this function, 'comp', 'key' and 'val' are null..."); LOG_ERROR("REPO", "Invalid call to this function, 'comp', 'key' and 'val' are null...");
} }
}
static inline void static inline void
__handle_got_json(volatile sqlite3 *db, struct module_repo_internal *repo, const char *json) __handle_got_json(volatile sqlite3 *db, struct module_repo_internal *repo, const char *json)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter