|
@ -58,14 +58,14 @@ void cJSON_unregister(cJSON *item) |
|
|
total = 0; |
|
|
total = 0; |
|
|
DL_FOREACH_SAFE(LP_cJSONlist,ptr,tmp) |
|
|
DL_FOREACH_SAFE(LP_cJSONlist,ptr,tmp) |
|
|
{ |
|
|
{ |
|
|
if ( ptr->item != 0 && ptr->item->child != 0 && ptr->cjsonid != 0 ) |
|
|
/*if ( ptr->item != 0 && ptr->item->child != 0 && ptr->cjsonid != 0 )
|
|
|
{ |
|
|
{ |
|
|
if ( (tmpstr= jprint(ptr->item,0)) != 0 ) |
|
|
if ( (tmpstr= jprint(ptr->item,0)) != 0 ) |
|
|
{ |
|
|
{ |
|
|
total += strlen(tmpstr); |
|
|
total += strlen(tmpstr); |
|
|
free(tmpstr); |
|
|
free(tmpstr); |
|
|
} |
|
|
} |
|
|
} |
|
|
}*/ |
|
|
n++; |
|
|
n++; |
|
|
} |
|
|
} |
|
|
printf("total %d cJSON pending %s\n",n,mbstr(str,total)); |
|
|
printf("total %d cJSON pending %s\n",n,mbstr(str,total)); |
|
|