Lines Matching defs:ctx
79 idn__filechecker_t ctx;
92 if ((ctx = malloc(sizeof(struct idn__filechecker))) == NULL)
95 if ((r = idn_ucsset_create(&ctx->set)) != idn_success) {
96 free(ctx);
100 r = read_file(file, fp, ctx->set);
104 idn_ucsset_fix(ctx->set);
105 *ctxp = ctx;
107 idn_ucsset_destroy(ctx->set);
108 free(ctx);
114 idn__filechecker_destroy(idn__filechecker_t ctx) {
115 assert(ctx != NULL);
119 idn_ucsset_destroy(ctx->set);
120 free(ctx);
124 idn__filechecker_lookup(idn__filechecker_t ctx, const unsigned long *str,
128 assert(ctx != NULL && str != NULL);
136 r = idn_ucsset_lookup(ctx->set, *str, &exists);
258 idn__filechecker_lookupproc(void *ctx, const unsigned long *str,
260 return idn__filechecker_lookup((idn__filechecker_t)ctx, str, found);