📄 list_pub.h
字号:
#ifdef __cplusplusextern "C"{#endif #ifndef __INC_LIST_PUB_H__#define __INC_LIST_PUB_H__#define aos_list_node_init( node ) \do { \ (node)->next = NULL; (node)->prev = NULL; \} while (0)#define aos_list_is_empty( node ) ( (node)==((node)->next) )#define aos_list_entry(ptr, type, member) \struct aos_list{ struct aos_list *prev; struct aos_list *next; };VOID aos_list_init( struct aos_list *list );VOID aos_list_add_head( struct aos_list *list, struct aos_list *node );VOID aos_list_add_tail( struct aos_list *list, struct aos_list *node );VOID aos_list_delete( struct aos_list *node );struct aos_list *aos_list_fetch( struct aos_list *list );#endif#ifdef __cplusplus}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -