Simplify redbean serialization code

This commit is contained in:
Justine Tunney 2022-09-06 20:07:29 -07:00
parent 3fdb1c14f1
commit 8bd9ad8342
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
9 changed files with 261 additions and 86 deletions

View file

@ -0,0 +1,18 @@
#ifndef COSMOPOLITAN_LIBC_STDIO_STRLIST_H_
#define COSMOPOLITAN_LIBC_STDIO_STRLIST_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct StrList {
int i, n;
char **p;
};
void FreeStrList(struct StrList *) hidden;
int AppendStrList(struct StrList *) hidden;
void SortStrList(struct StrList *) hidden;
int JoinStrList(struct StrList *, char **, uint64_t) hidden;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_STDIO_STRLIST_H_ */