mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
llist: hide Curl_llist_init
Curl_llist_init is never used outside of llist.c and thus it should be static. I also removed the protos for Curl_llist_insert_prev and Curl_llist_remove_next which are functions we removed from llist.c ages ago.
This commit is contained in:
parent
ff26895b5c
commit
1d594772fd
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -31,8 +31,8 @@
|
|||||||
/* this must be the last include file */
|
/* this must be the last include file */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
void
|
static void
|
||||||
Curl_llist_init(struct curl_llist *l, curl_llist_dtor dtor)
|
llist_init(struct curl_llist *l, curl_llist_dtor dtor)
|
||||||
{
|
{
|
||||||
l->size = 0;
|
l->size = 0;
|
||||||
l->dtor = dtor;
|
l->dtor = dtor;
|
||||||
@ -49,7 +49,7 @@ Curl_llist_alloc(curl_llist_dtor dtor)
|
|||||||
if(NULL == list)
|
if(NULL == list)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
Curl_llist_init(list, dtor);
|
llist_init(list, dtor);
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -43,16 +43,11 @@ struct curl_llist {
|
|||||||
size_t size;
|
size_t size;
|
||||||
};
|
};
|
||||||
|
|
||||||
void Curl_llist_init(struct curl_llist *, curl_llist_dtor);
|
|
||||||
struct curl_llist *Curl_llist_alloc(curl_llist_dtor);
|
struct curl_llist *Curl_llist_alloc(curl_llist_dtor);
|
||||||
int Curl_llist_insert_next(struct curl_llist *, struct curl_llist_element *,
|
int Curl_llist_insert_next(struct curl_llist *, struct curl_llist_element *,
|
||||||
const void *);
|
const void *);
|
||||||
int Curl_llist_insert_prev(struct curl_llist *, struct curl_llist_element *,
|
|
||||||
const void *);
|
|
||||||
int Curl_llist_remove(struct curl_llist *, struct curl_llist_element *,
|
int Curl_llist_remove(struct curl_llist *, struct curl_llist_element *,
|
||||||
void *);
|
void *);
|
||||||
int Curl_llist_remove_next(struct curl_llist *, struct curl_llist_element *,
|
|
||||||
void *);
|
|
||||||
size_t Curl_llist_count(struct curl_llist *);
|
size_t Curl_llist_count(struct curl_llist *);
|
||||||
void Curl_llist_destroy(struct curl_llist *, void *);
|
void Curl_llist_destroy(struct curl_llist *, void *);
|
||||||
int Curl_llist_move(struct curl_llist *, struct curl_llist_element *,
|
int Curl_llist_move(struct curl_llist *, struct curl_llist_element *,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user