before next stage

This commit is contained in:
eason
2023-12-20 18:54:24 +08:00
commit c6f08be676
38 changed files with 183324 additions and 0 deletions

13
include/linklist.h Normal file
View File

@ -0,0 +1,13 @@
#include "rust.h"
struct Node{
void* val;
__INTPTR_TYPE__ xor_;
};
struct Node* xor_new(void * val);
struct Node* xor_next(struct Node* previous,struct Node* current);
struct Node* xor_insert_front(struct Node* head,void* val);
struct Node* xor_insert_mid(struct Node* previous,struct Node* current,void * val);
void * xor_remove(struct Node * previous,struct Node* current);
usize xor_count(struct Node* head);