more progress in new ktv storage

FossilOrigin-Name: a2c26a366de1946feb707439302b22de2e3d02f7621d0834fdf242852b28639c
This commit is contained in:
7u83@mail.ru
2018-03-15 19:07:17 +00:00
parent 8b2e36e912
commit 15cca4e553
40 changed files with 411 additions and 310 deletions

View File

@ -43,10 +43,11 @@ struct cw_Type {
created by the #del function. */
struct cw_KTV *(*from_str) (struct cw_KTV * data, const char *src);
/*
int (*def)(void *, void *);
*/
int (*len)(cw_KTV_t *);
};
typedef struct cw_Type cw_Type_t;
extern const struct cw_Type cw_type_byte;
extern const struct cw_Type cw_type_word;
@ -76,5 +77,7 @@ void cw_ktv_mavldel(void *data);
mavl_create(cw_ktv_mavlcmp_type_by_name,NULL,sizeof(struct cw_Type *))
int cw_ktv_read_line (FILE *f, char * key, char * type, char *val);
int cw_ktv_read_file(FILE * file, mavl_t ktv, mavl_t types);
cw_KTV_t * cw_ktv_get(mavl_t ktv, const char *key, const cw_Type_t * type);
#endif /* __KVT_H */