mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Avoid use of C++ keywords
This commit is contained in:
parent
413d065421
commit
ce8275b943
1 changed files with 11 additions and 11 deletions
|
|
@ -36,14 +36,14 @@ struct list_head {
|
||||||
* This is only for internal list manipulation where we know
|
* This is only for internal list manipulation where we know
|
||||||
* the prev/next entries already!
|
* the prev/next entries already!
|
||||||
*/
|
*/
|
||||||
static __inline__ void __list_add(struct list_head * new,
|
static __inline__ void __list_add(struct list_head * _new,
|
||||||
struct list_head * prev,
|
struct list_head * prev,
|
||||||
struct list_head * next)
|
struct list_head * next)
|
||||||
{
|
{
|
||||||
next->prev = new;
|
next->prev = _new;
|
||||||
new->next = next;
|
_new->next = next;
|
||||||
new->prev = prev;
|
_new->prev = prev;
|
||||||
prev->next = new;
|
prev->next = _new;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -54,9 +54,9 @@ static __inline__ void __list_add(struct list_head * new,
|
||||||
* Insert a new entry after the specified head.
|
* Insert a new entry after the specified head.
|
||||||
* This is good for implementing stacks.
|
* This is good for implementing stacks.
|
||||||
*/
|
*/
|
||||||
static __inline__ void list_add(struct list_head *new, struct list_head *head)
|
static __inline__ void list_add(struct list_head *_new, struct list_head *head)
|
||||||
{
|
{
|
||||||
__list_add(new, head, head->next);
|
__list_add(_new, head, head->next);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -67,9 +67,9 @@ static __inline__ void list_add(struct list_head *new, struct list_head *head)
|
||||||
* Insert a new entry before the specified head.
|
* Insert a new entry before the specified head.
|
||||||
* This is useful for implementing queues.
|
* This is useful for implementing queues.
|
||||||
*/
|
*/
|
||||||
static __inline__ void list_add_tail(struct list_head *new, struct list_head *head)
|
static __inline__ void list_add_tail(struct list_head *_new, struct list_head *head)
|
||||||
{
|
{
|
||||||
__list_add(new, head->prev, head);
|
__list_add(_new, head->prev, head);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue