mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Add minor improvements and cleanup
This commit is contained in:
parent
9e3e985ae5
commit
feed0d2b0e
163 changed files with 2286 additions and 2245 deletions
1
third_party/dlmalloc/dlmalloc.h
vendored
1
third_party/dlmalloc/dlmalloc.h
vendored
|
@ -1248,6 +1248,7 @@ void *dlrealloc_in_place(void *, size_t) hidden;
|
|||
void *dlvalloc(size_t) hidden;
|
||||
void *dlpvalloc(size_t) hidden;
|
||||
void *dlmemalign(size_t, size_t) hidden;
|
||||
int dlmalloc_trim(size_t) hidden;
|
||||
size_t dlmalloc_usable_size(const void *) hidden;
|
||||
int dlposix_memalign(void **, size_t, size_t) hidden;
|
||||
void **dlindependent_calloc(size_t, size_t, void *[]) hidden;
|
||||
|
|
2
third_party/dlmalloc/malloc_trim.c
vendored
2
third_party/dlmalloc/malloc_trim.c
vendored
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* @return 1 if it actually released any memory, else 0
|
||||
*/
|
||||
int malloc_trim(size_t pad) {
|
||||
int dlmalloc_trim(size_t pad) {
|
||||
int result = 0;
|
||||
ensure_initialization();
|
||||
if (!PREACTION(g_dlmalloc)) {
|
||||
|
|
2
third_party/regex/regerror.c
vendored
2
third_party/regex/regerror.c
vendored
|
@ -49,6 +49,6 @@ static const char kRegexErrors[] =
|
|||
*/
|
||||
size_t regerror(int e, const regex_t *preg, char *buf, size_t size) {
|
||||
return 1 + snprintf(buf, size, "%s",
|
||||
firstnonnull(indexdoublenulstring(kRegexErrors, e),
|
||||
firstnonnull(IndexDoubleNulString(kRegexErrors, e),
|
||||
"Unknown error"));
|
||||
}
|
||||
|
|
2
third_party/xed/xederror.c
vendored
2
third_party/xed/xederror.c
vendored
|
@ -22,7 +22,7 @@
|
|||
/**
|
||||
* Xed error code names.
|
||||
*
|
||||
* puts(indexdoublenulstring(kXedErrorNames, xedd->op.error));
|
||||
* puts(IndexDoubleNulString(kXedErrorNames, xedd->op.error));
|
||||
*
|
||||
* @see XedError
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue