sniperHW / chuck

high performance and easily use asynchronous network library for C/Lua
52 stars 32 forks source link

几个问题 #13

Open zzh442856860 opened 7 years ago

zzh442856860 commented 7 years ago

chk_list.h

static inline chk_list_entry chk_list_end(chk_list l) { return NULL; //这个end,不是l->tail? 为何是NULL? }


chk_util.h

ifndef TEMP_FAILURE_RETRY

define TEMP_FAILURE_RETRY(expression)\

({ long int __result;\
do __result = (long int)(expression);\
while(__result == -1L&& errno == EINTR);\
__result;}) //这个地方,单独一个__result干什么的? 不是return ??

endif

sniperHW commented 7 years ago

1) 只是用来标记结束, 不是获取最后一个节点。 2) 网上搜一下 c语言 expression 和 statement的区别