[ADD] packet_io framework

This commit is contained in:
liuwentan
2022-07-26 15:05:14 +08:00
parent da47b80442
commit 82a97ff067
16 changed files with 516 additions and 46 deletions

View File

@@ -2,8 +2,8 @@
#include <stdlib.h> //calloc
#define ALLOC(type, number) ((type *)calloc(sizeof(type), number))
#define FREE(p) {free(*p);*p=NULL;}
#define CALLOC(type, number) ((type *)calloc(sizeof(type), number))
#define FREE(p) {free(p);p=NULL;}
#define TRUE 1
#define FALSE 0