Home | History | Annotate | Download | only in ucnv

Lines Matching full:ctx

18     FromUFLAGContext *ctx;
20 ctx = (FromUFLAGContext*) malloc(sizeof(FromUFLAGContext));
22 ctx->subCallback = NULL;
23 ctx->subContext = NULL;
24 ctx->flag = FALSE;
26 return ctx;
154 static debugCBContext *debugCB_clone(debugCBContext *ctx)
162 newCtx->subCallback = ctx->subCallback;
163 newCtx->subContext = ctx->subContext;
166 printf("debugCB_clone: %p:%d -> new context %p:%d\n", ctx, ctx->serial, newCtx, newCtx->serial);
180 debugCBContext *ctx = (debugCBContext*)context;
184 printf("debugCB_fromU: Context %p:%d called, reason %d on cnv %p [err=%s]\n", ctx, ctx->serial, reason, fromUArgs->converter, u_errorName(*err));
187 if(ctx->magic != 0xC0FFEE) {
188 fprintf(stderr, "debugCB_fromU: Context %p:%d magic is 0x%x should be 0xC0FFEE.\n", ctx,ctx->serial, ctx->magic);
204 cloned = debugCB_clone(ctx);
207 fprintf(stderr, "debugCB_fromU: internal clone failed on %p\n", ctx);
221 printf("debugCB_fromU:%p calling subCB %p\n", ctx, cloned->subCallback);
227 printf("debugCB_fromU:%p, NOT calling subCB, it's NULL\n", ctx);
246 if(ctx->subCallback != NULL && reason != UCNV_CLONE) {
247 ctx->subCallback(ctx->subContext,
258 printf("debugCB_fromU: Context %p:%d closing\n", ctx, ctx->serial);
260 free(ctx);
264 printf("debugCB_fromU: leaving cnv %p, ctx %p: err %s\n", fromUArgs->converter, ctx, u_errorName(*err));
270 debugCBContext *ctx;
272 ctx = malloc(sizeof(debugCBContext));
274 if(ctx != NULL) {
275 ctx->magic = 0xC0FFEE;
276 ctx->serial = debugCB_nextSerial();
277 ctx->subCallback = NULL;
278 ctx->subContext = NULL;
281 fprintf(stderr, "debugCB:openContext opened[%p] = serial #%d\n", ctx, ctx->serial);
287 return ctx;