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

MISC: Get ride of debug logs and apply astyle

parent e297debd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!130Resolve "Remove json-c"
......@@ -36,7 +36,6 @@
size_t local_len = LKT_LINE_MAX - 1 < len ? LKT_LINE_MAX - 1 : len; \
strncpy(dest, str, local_len); \
__decode_json(dest, local_len); \
LOG_DEBUG("JSON", "Set " #dest " to %s", dest); \
} \
str += len; \
if (is_paren) { \
......@@ -114,9 +113,9 @@ static struct {
static inline size_t
__encode_codepoint(char p[4], int32_t codepoint)
{
size_t i, n= 0; /* number of bytes to be written */
size_t i, n = 0; /* number of bytes to be written */
while (n< sizeof(utf8)) {
while (n < sizeof(utf8)) {
if (utf8[n].lo <= codepoint && codepoint <= utf8[n].hi)
break;
n++;
......@@ -230,10 +229,8 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use
__SKIP_JSON(str);
__NEXT_JSON(str, len, val, tmp, LKT_LINE_MAX);
if (asked_level == level) {
LOG_DEBUG("JSON", "Call with %s => %s", key, val);
if (asked_level == level)
call(key, val, 0, user);
}
}
if (level <= 0)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter