anchao commented on code in PR #17103:
URL: https://github.com/apache/nuttx/pull/17103#discussion_r2384511090
##########
include/nuttx/list.h:
##########
@@ -274,6 +274,12 @@
&entry->member != (list); entry = temp, \
temp = list_container_of(temp->member.next, type, member))
+/* Iterate from a given entry node */
+
+#define list_for_every_entry_from(list, cur, type, member) \
Review Comment:
2 optimization points in further:
1. rename all **for_every** to **for_each**
2. remove type parameter, instead of typeof
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]