mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Further improve json / lua serialization
This commit is contained in:
parent
9e86980191
commit
ee82cee432
10 changed files with 248 additions and 155 deletions
|
@ -58,7 +58,9 @@ int AppendStrList(struct StrList *sl) {
|
|||
}
|
||||
|
||||
void SortStrList(struct StrList *sl) {
|
||||
qsort(sl->p, sl->i, sizeof(*sl->p), CompareStrings);
|
||||
if (sl->i) {
|
||||
qsort(sl->p, sl->i, sizeof(*sl->p), CompareStrings);
|
||||
}
|
||||
}
|
||||
|
||||
int JoinStrList(struct StrList *sl, char **buf, uint64_t sep) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue