Skip to content

Commit

Permalink
编码改为utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhxyy committed Mar 31, 2023
1 parent f18a1d5 commit 549dd82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tzlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void TZListInsertBefore(intptr_t list, TZListNode* node, TZListNode* anchorNode)
node->Last = anchorNode->Last;
node->Next = anchorNode;

// 根据锚节点是否首节点处理锚节点下一个节点
// 根据锚节点是否首节点处理锚节点下一个节点
if (anchorNode->Last != NULL) {
anchorNode->Last->Next = node;
} else {
Expand All @@ -106,7 +106,7 @@ void TZListInsertAfter(intptr_t list, TZListNode* node, TZListNode* anchorNode)
node->Last = anchorNode;
node->Next = anchorNode->Next;

// 根据锚节点是否尾节点处理锚节点下一个节点
// 根据锚节点是否尾节点处理锚节点下一个节点
if (anchorNode->Next != NULL) {
anchorNode->Next->Last = node;
} else {
Expand All @@ -115,8 +115,8 @@ void TZListInsertAfter(intptr_t list, TZListNode* node, TZListNode* anchorNode)
anchorNode->Next = node;
}

// TZListRemove 删除节点
// 删除节点会释放节点内的开辟的数据空间以及释放节点本身的空间
// TZListRemove 删除节点
// 删除节点会释放节点内的开辟的数据空间以及释放节点本身的空间
void TZListRemove(intptr_t list, TZListNode* node) {
if (list == 0 || node == NULL) {
return;
Expand Down

0 comments on commit 549dd82

Please sign in to comment.