mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:57:44 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -9,7 +9,7 @@
|
|||
#include <bits/search.h>
|
||||
#include <search.h>
|
||||
|
||||
struct search_tree_node* new_tree_node(const void* key)
|
||||
struct search_tree_node* new_tree_node(void const* key)
|
||||
{
|
||||
auto* node = static_cast<struct search_tree_node*>(malloc(sizeof(struct search_tree_node)));
|
||||
|
||||
|
@ -37,7 +37,7 @@ void delete_node_recursive(struct search_tree_node* node)
|
|||
extern "C" {
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/tsearch.html
|
||||
void* tsearch(const void* key, void** rootp, int (*comparator)(const void*, const void*))
|
||||
void* tsearch(void const* key, void** rootp, int (*comparator)(void const*, void const*))
|
||||
{
|
||||
if (!rootp)
|
||||
return nullptr;
|
||||
|
@ -71,7 +71,7 @@ void* tsearch(const void* key, void** rootp, int (*comparator)(const void*, cons
|
|||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/tfind.html
|
||||
void* tfind(const void* key, void* const* rootp, int (*comparator)(const void*, const void*))
|
||||
void* tfind(void const* key, void* const* rootp, int (*comparator)(void const*, void const*))
|
||||
{
|
||||
if (!rootp)
|
||||
return nullptr;
|
||||
|
@ -93,13 +93,13 @@ void* tfind(const void* key, void* const* rootp, int (*comparator)(const void*,
|
|||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/tdelete.html
|
||||
void* tdelete(const void*, void**, int (*)(const void*, const void*))
|
||||
void* tdelete(void const*, void**, int (*)(void const*, void const*))
|
||||
{
|
||||
dbgln("FIXME: Implement tdelete()");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static void twalk_internal(const struct search_tree_node* node, void (*action)(const void*, VISIT, int), int depth)
|
||||
static void twalk_internal(const struct search_tree_node* node, void (*action)(void const*, VISIT, int), int depth)
|
||||
{
|
||||
if (!node)
|
||||
return;
|
||||
|
@ -117,7 +117,7 @@ static void twalk_internal(const struct search_tree_node* node, void (*action)(c
|
|||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/twalk.html
|
||||
void twalk(const void* rootp, void (*action)(const void*, VISIT, int))
|
||||
void twalk(void const* rootp, void (*action)(void const*, VISIT, int))
|
||||
{
|
||||
auto node = static_cast<const struct search_tree_node*>(rootp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue