This commit is contained in:
parent
c00080e190
commit
6293b8f5bf
@ -5514,12 +5514,13 @@ PH7_PRIVATE sxi32 PH7_HashmapDump(SyBlob *pOut, ph7_hashmap *pMap, int ShowType,
|
|||||||
}
|
}
|
||||||
return SXERR_LIMIT;
|
return SXERR_LIMIT;
|
||||||
}
|
}
|
||||||
/* Point to the first inserted entry */
|
|
||||||
pEntry = pMap->pFirst;
|
|
||||||
rc = SXRET_OK;
|
rc = SXRET_OK;
|
||||||
if(!ShowType) {
|
if(!ShowType) {
|
||||||
SyBlobAppend(&(*pOut), "Array(", sizeof("Array(") - 1);
|
SyBlobAppend(&(*pOut), "Array(", sizeof("Array(") - 1);
|
||||||
}
|
}
|
||||||
|
if(pMap) {
|
||||||
|
/* Point to the first inserted entry */
|
||||||
|
pEntry = pMap->pFirst;
|
||||||
/* Total entries */
|
/* Total entries */
|
||||||
SyBlobFormat(&(*pOut), "%u) {", pMap->nEntry);
|
SyBlobFormat(&(*pOut), "%u) {", pMap->nEntry);
|
||||||
#ifdef __WINNT__
|
#ifdef __WINNT__
|
||||||
@ -5567,6 +5568,9 @@ PH7_PRIVATE sxi32 PH7_HashmapDump(SyBlob *pOut, ph7_hashmap *pMap, int ShowType,
|
|||||||
SyBlobAppend(&(*pOut), " ", sizeof(char));
|
SyBlobAppend(&(*pOut), " ", sizeof(char));
|
||||||
}
|
}
|
||||||
SyBlobAppend(&(*pOut), "}", sizeof(char));
|
SyBlobAppend(&(*pOut), "}", sizeof(char));
|
||||||
|
} else {
|
||||||
|
SyBlobAppend(&(*pOut), ")", sizeof(char));
|
||||||
|
}
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user