Make internal funcs static
This commit is contained in:
parent
8c461db5a9
commit
d3e49c6520
4
cmaybe.h
4
cmaybe.h
|
@ -56,7 +56,7 @@ struct __free_list {
|
||||||
)
|
)
|
||||||
#define TRY_MALLOC(size) TRY_MEMALLOC(malloc, size)
|
#define TRY_MALLOC(size) TRY_MEMALLOC(malloc, size)
|
||||||
|
|
||||||
void __remove_free_list(struct __free_list **head, void *ptr) {
|
static void __remove_free_list(struct __free_list **head, void *ptr) {
|
||||||
struct __free_list **current = head;
|
struct __free_list **current = head;
|
||||||
while (*current != NULL) {
|
while (*current != NULL) {
|
||||||
if (current[0]->ptr == ptr) {
|
if (current[0]->ptr == ptr) {
|
||||||
|
@ -78,7 +78,7 @@ void __remove_free_list(struct __free_list **head, void *ptr) {
|
||||||
free(current);\
|
free(current);\
|
||||||
}
|
}
|
||||||
|
|
||||||
void __replace_free_list(struct __free_list **head, void *from, void *to) {
|
static void __replace_free_list(struct __free_list **head, void *from, void *to) {
|
||||||
struct __free_list **current = head;
|
struct __free_list **current = head;
|
||||||
while (*current != NULL) {
|
while (*current != NULL) {
|
||||||
if (current[0]->ptr == from) {
|
if (current[0]->ptr == from) {
|
||||||
|
|
Loading…
Reference in New Issue