mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-26 23:10:25 +08:00
引入全新dict格式
This commit is contained in:
15
old_dict.h
Normal file
15
old_dict.h
Normal 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
|
||||
Reference in New Issue
Block a user