You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在 2017年1月5日,16:22,nike ***@***.***> 写道:
//if push success,return the new size,else return -1
static inline size_t chk_list_pushback(chk_list *l,chk_list_entry *n) {
if(n->next) return chk_error_common;
if(0 == l->size) l->head = l->tail = n;
else {
l->tail->next = n; //这个尾指针的next,不应该是null吗,为何还是自己?
l->tail = n;
}
++l->size;
return chk_error_ok;
}
如果成功返回new size;未返回,实际返回chk_error_ok; 如果失败,返回的chk_error_common 是 1, 也不是-1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
//if push success,return the new size,else return -1
static inline size_t chk_list_pushback(chk_list *l,chk_list_entry *n) {
if(n->next) return chk_error_common;
if(0 == l->size) l->head = l->tail = n;
else {
l->tail->next = n; //这个尾指针的next,不应该是null吗,为何还是自己?
l->tail = n;
}
++l->size;
return chk_error_ok;
}
如果成功返回new size;未返回,实际返回chk_error_ok; 如果失败,返回的chk_error_common 是 1, 也不是-1
The text was updated successfully, but these errors were encountered: