mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:23:32 +03:00
llist: make it "struct Curl_llist"
As internal global names should use captical C. Closes #5906
This commit is contained in:
parent
8bdc4f8aee
commit
9b3f888a00
17 changed files with 102 additions and 102 deletions
12
lib/llist.c
12
lib/llist.c
|
|
@ -34,7 +34,7 @@
|
|||
* @unittest: 1300
|
||||
*/
|
||||
void
|
||||
Curl_llist_init(struct curl_llist *l, curl_llist_dtor dtor)
|
||||
Curl_llist_init(struct Curl_llist *l, Curl_llist_dtor dtor)
|
||||
{
|
||||
l->size = 0;
|
||||
l->dtor = dtor;
|
||||
|
|
@ -54,9 +54,9 @@ Curl_llist_init(struct curl_llist *l, curl_llist_dtor dtor)
|
|||
* @unittest: 1300
|
||||
*/
|
||||
void
|
||||
Curl_llist_insert_next(struct curl_llist *list, struct curl_llist_element *e,
|
||||
Curl_llist_insert_next(struct Curl_llist *list, struct Curl_llist_element *e,
|
||||
const void *p,
|
||||
struct curl_llist_element *ne)
|
||||
struct Curl_llist_element *ne)
|
||||
{
|
||||
ne->ptr = (void *) p;
|
||||
if(list->size == 0) {
|
||||
|
|
@ -90,7 +90,7 @@ Curl_llist_insert_next(struct curl_llist *list, struct curl_llist_element *e,
|
|||
* @unittest: 1300
|
||||
*/
|
||||
void
|
||||
Curl_llist_remove(struct curl_llist *list, struct curl_llist_element *e,
|
||||
Curl_llist_remove(struct Curl_llist *list, struct Curl_llist_element *e,
|
||||
void *user)
|
||||
{
|
||||
void *ptr;
|
||||
|
|
@ -131,7 +131,7 @@ Curl_llist_remove(struct curl_llist *list, struct curl_llist_element *e,
|
|||
}
|
||||
|
||||
void
|
||||
Curl_llist_destroy(struct curl_llist *list, void *user)
|
||||
Curl_llist_destroy(struct Curl_llist *list, void *user)
|
||||
{
|
||||
if(list) {
|
||||
while(list->size > 0)
|
||||
|
|
@ -140,7 +140,7 @@ Curl_llist_destroy(struct curl_llist *list, void *user)
|
|||
}
|
||||
|
||||
size_t
|
||||
Curl_llist_count(struct curl_llist *list)
|
||||
Curl_llist_count(struct Curl_llist *list)
|
||||
{
|
||||
return list->size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue