1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-26 23:10:25 +08:00

引入全新dict格式

This commit is contained in:
fumiama
2021-05-19 00:42:35 +08:00
parent be2009bbb2
commit 0586721dcf
9 changed files with 314 additions and 203 deletions

15
old_dict.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef _OLD_DICT_H_
#define _OLD_DICT_H_
#include <stdint.h>
#define DATASIZE 64
struct DICTBLK{
char key[(DATASIZE-1)];
uint8_t keysize;
char data[(DATASIZE-1)];
uint8_t datasize;
};
typedef struct DICTBLK DICTBLK;
#define DICTBLKSZ sizeof(DICTBLK)
#endif