mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 11:48:30 +00:00
Make fixes and improvements
- Polyfill UTIME_OMIT on XNU - Refactor Lua build code so it's better - Add unix module to lua.com (Discord request) - Add unix.utimensat() and unix.futimens() to redbean - Avoid creating double slash path in linenoise (#428) - Remove double slashes in NT paths automatically (#428) - Make strerror() smarter about showing NT errors (#428) Fixes #428
This commit is contained in:
parent
67b28b9af1
commit
c1cfca8ae1
18 changed files with 569 additions and 194 deletions
2
third_party/gdtoa/misc.c
vendored
2
third_party/gdtoa/misc.c
vendored
|
@ -71,6 +71,7 @@ __gdtoa_Balloc(int k)
|
|||
{
|
||||
int x;
|
||||
Bigint *rv;
|
||||
assert(k >= 0);
|
||||
__gdtoa_lock();
|
||||
if (k <= Kmax && (rv = TI0.Freelist[k]) != 0) {
|
||||
TI0.Freelist[k] = rv->next;
|
||||
|
@ -93,6 +94,7 @@ __gdtoa_Bfree(Bigint *v)
|
|||
if (v->k > Kmax) {
|
||||
free(v);
|
||||
} else {
|
||||
assert(v->k >= 0);
|
||||
__gdtoa_lock();
|
||||
v->next = TI0.Freelist[v->k];
|
||||
TI0.Freelist[v->k] = v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue