doc: 更新List文档

This commit is contained in:
fslongjin
2022-10-04 22:02:41 +08:00
parent bde283fc80
commit 7087e9fbc1
5 changed files with 347 additions and 1 deletions

View File

@ -214,7 +214,7 @@ static inline struct List *list_next(struct List *entry)
for ((ptr) = (head)->prev; (ptr) != (head); (ptr) = (ptr)->prev)
/**
* @brief 遍历整个链表(从前往后)(支持链表的删除操作
* @brief 遍历整个链表(从前往后)(支持删除当前链表结点
* 该宏通过暂存中间变量防止在迭代链表的过程中由于删除了当前ptr所指向的链表结点从而造成错误
*
* @param ptr the &struct list_head to use as a loop cursor.