mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 17:58:30 +00:00
Supplement _GNU_SOURCE with _COSMO_SOURCE
This commit is contained in:
parent
e6b59bced2
commit
7b8024d088
8 changed files with 8 additions and 14 deletions
17
third_party/musl/tsearch.internal.h
vendored
Normal file
17
third_party/musl/tsearch.internal.h
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef COSMOPOLITAN_THIRDPARTY_MUSL_TSEARCH_H
|
||||
#define COSMOPOLITAN_THIRDPARTY_MUSL_TSEARCH_H
|
||||
|
||||
#include "third_party/musl/search.h"
|
||||
|
||||
/* AVL tree height < 1.44*log2(nodes+2)-0.3, MAXH is a safe upper bound. */
|
||||
#define MAXH (sizeof(void*)*8*3/2)
|
||||
|
||||
struct node {
|
||||
const void *key;
|
||||
void *a[2];
|
||||
int h;
|
||||
};
|
||||
|
||||
int __tsearch_balance(void **);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue