/* This file is part of the Zebra server.
- Copyright (C) 1994-2011 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
best_indxp = indxp;
}
}
- else
+ else
{ /* new char prefix. restore */
prev_char = dc;
no_current = 1;
}
static void clean_page(Dict dict, Dict_ptr ptr, void *p, Dict_char *out,
- Dict_ptr subptr, char *userinfo)
+ Dict_ptr subptr, char *userinfo)
{
char *np = (char *) xmalloc(dict->head.page_size);
int i, slen, no = 0;
info2 += *userinfo + 1;
}
else
- *info2++ = 0;
- subptr = 0;
+ *info2++ = 0;
+ subptr = 0;
++no;
continue;
}
++no;
}
#if 1
- memcpy((char*)p+DICT_infoffset,
+ memcpy((char*)p+DICT_infoffset,
(char*)np+DICT_infoffset,
info2 - ((char*)np+DICT_infoffset));
memcpy((char*)p + ((char*)indxp2 - (char*)np),
void *p;
dict_bf_readp(dict->dbf, ptr, &p);
-
+
assert(p);
assert(ptr);
return dict_ins(dict, str-1, ptr,
userlen, userinfo);
}
- if (split_page(dict, ptr, p))
+ if (split_page(dict, ptr, p))
{
yaz_log(YLOG_FATAL, "Unable to split page %d\n", ptr);
assert(0);