mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 02:40:28 +00:00
fix errors
This commit is contained in:
parent
5ebbc74ccc
commit
083b1d6c31
4 changed files with 17 additions and 4 deletions
17
third_party/musl/hsearch.c
vendored
17
third_party/musl/hsearch.c
vendored
|
@ -147,7 +147,11 @@ static int __hcreate_r(size_t nel, struct hsearch_data *htab)
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
weak_alias(__hcreate_r, hcreate_r);
|
|
||||||
|
|
||||||
|
int hcreate_r(size_t nel, struct hsearch_data *htab) {
|
||||||
|
return __hcreate_r(nel, htab);
|
||||||
|
}
|
||||||
|
|
||||||
static void __hdestroy_r(struct hsearch_data *htab)
|
static void __hdestroy_r(struct hsearch_data *htab)
|
||||||
{
|
{
|
||||||
|
@ -155,7 +159,10 @@ static void __hdestroy_r(struct hsearch_data *htab)
|
||||||
free(htab->__tab);
|
free(htab->__tab);
|
||||||
htab->__tab = 0;
|
htab->__tab = 0;
|
||||||
}
|
}
|
||||||
weak_alias(__hdestroy_r, hdestroy_r);
|
|
||||||
|
void hdestroy_r(struct hsearch_data *htab) {
|
||||||
|
__hdestroy_r(htab);
|
||||||
|
}
|
||||||
|
|
||||||
static int __hsearch_r(ENTRY item, ACTION action, ENTRY **retval, struct hsearch_data *htab)
|
static int __hsearch_r(ENTRY item, ACTION action, ENTRY **retval, struct hsearch_data *htab)
|
||||||
{
|
{
|
||||||
|
@ -183,4 +190,8 @@ static int __hsearch_r(ENTRY item, ACTION action, ENTRY **retval, struct hsearch
|
||||||
*retval = e;
|
*retval = e;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
weak_alias(__hsearch_r, hsearch_r);
|
|
||||||
|
int hsearch_r(ENTRY item, ACTION action, ENTRY **retval, struct hsearch_data *htab)
|
||||||
|
{
|
||||||
|
return __hsearch_r(item, action, retval, htab);
|
||||||
|
}
|
||||||
|
|
1
third_party/musl/tdestroy.c
vendored
1
third_party/musl/tdestroy.c
vendored
|
@ -29,6 +29,7 @@
|
||||||
#include "libc/isystem/stdlib.h"
|
#include "libc/isystem/stdlib.h"
|
||||||
#include "libc/isystem/string.h"
|
#include "libc/isystem/string.h"
|
||||||
#include "third_party/musl/search.h"
|
#include "third_party/musl/search.h"
|
||||||
|
#include "third_party/musl/tsearch.h"
|
||||||
|
|
||||||
asm(".ident\t\"\\n\\n\
|
asm(".ident\t\"\\n\\n\
|
||||||
Musl libc (MIT License)\\n\
|
Musl libc (MIT License)\\n\
|
||||||
|
|
1
third_party/musl/tsearch.c
vendored
1
third_party/musl/tsearch.c
vendored
|
@ -28,6 +28,7 @@
|
||||||
#include "libc/isystem/stdlib.h"
|
#include "libc/isystem/stdlib.h"
|
||||||
#include "libc/isystem/string.h"
|
#include "libc/isystem/string.h"
|
||||||
#include "third_party/musl/search.h"
|
#include "third_party/musl/search.h"
|
||||||
|
#include "third_party/musl/tsearch.h"
|
||||||
|
|
||||||
asm(".ident\t\"\\n\\n\
|
asm(".ident\t\"\\n\\n\
|
||||||
Musl libc (MIT License)\\n\
|
Musl libc (MIT License)\\n\
|
||||||
|
|
2
third_party/musl/tsearch.h
vendored
2
third_party/musl/tsearch.h
vendored
|
@ -12,6 +12,6 @@ struct node {
|
||||||
int h;
|
int h;
|
||||||
};
|
};
|
||||||
|
|
||||||
hidden int __tsearch_balance(void **);
|
int __tsearch_balance(void **);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue