Removed a lof stuff.

FossilOrigin-Name: 6fa6baa6d42c1017a29b85d2afe0c4565f033e333ea27faabf9d2b6a1e931921
This commit is contained in:
7u83@mail.ru 2016-03-27 23:59:52 +00:00
parent 4caeed7fa8
commit dabb293210
1 changed files with 0 additions and 21 deletions

View File

@ -30,24 +30,6 @@ static int mbag_bstr16str(void *item,char *dst)
}
*/
static int mbag_strstr(void *item,char *dst)
{
mbag_item_t *i= item;
return sprintf(dst, "%s", (char*)i->data);
}
static struct mbag_item * mbag_fromstr(const char *src)
{
struct mbag_item *i= malloc(sizeof(mbag_item_t));
if (!i)
return NULL;
i->type = MBAG_STR;
i->dynid=0;
i->data = strndup(src,2000);
return i;
}
/*
const struct mbag_typedef mbag_type_byte = {
@ -82,9 +64,6 @@ const struct mbag_typedef mbag_type_bstr16 = {
*/
const struct mbag_typedef mbag_type_str = {
"str",free,mbag_strstr,mbag_fromstr
};