static inline void
P(hash_init_key) (struct P(hash_table) *t UNUSED, struct P(state) *s, struct P(state) *f, P(char_t) c)
{
+ memset(s, 0, sizeof(*s));
s->from = f;
s->c = c;
- s->len = 0;
- s->back = NULL;
s->next = f->back; /* the pointers hold the link-list of sons... change in build() */
f->back = s;
}
static inline int
P(get_char) (struct P(context) *ctx, P(source_t) *src, P(char_t) *c)
{
- return KMP_GET_CHAR(*ctx, *src, *c);
+ return KMP_GET_CHAR(ctx, *src, *c);
}
#else
# if defined(KMP_USE_UTF8)
* KMPS_GET_CHAR(ctx,src,s)
*
* KMPS_ADD_CONTROLS adds control characters to start and the end
- * KMPS_MERGE_CONTROLS merges adjacent control characterss to a single one
+ * KMPS_MERGE_CONTROLS merges adjacent control characters to a single one
*
* KMPS_EXTRA_ARGS extra arguments to the search routine
* KMPS_EXTRA_VAR extra user-defined structure in search structures