static Ecore_IMF_Context * xim_imf_module_create(void) { Ecore_IMF_Context *ctx = ecore_imf_context_new(&xim_class); DBG("ctx=%p", ctx); return ctx; }
static Ecore_IMF_Context * xim_imf_module_create(void) { EINA_LOG_DBG("%s in", __FUNCTION__); Ecore_IMF_Context *ctx = NULL; ctx = ecore_imf_context_new(&xim_class); if (!ctx) goto error; return ctx; error: free(ctx); return NULL; }
static Ecore_IMF_Context *imf_module_create (void) { Ecore_IMF_Context *ctx = NULL; EcoreIMFContextISF *ctxd = NULL; ctxd = isf_imf_context_new (); if (!ctxd) { printf ("isf_imf_context_new () failed!!!\n"); return NULL; } ctx = ecore_imf_context_new (&isf_imf_class); if (!ctx) { delete ctxd; return NULL; } ecore_imf_context_data_set (ctx, ctxd); return ctx; }
static Ecore_IMF_Context * im_module_create(void) { Ecore_IMF_Context *ctx = NULL; IBusIMContext *ctxd = NULL; ctxd = ecore_imf_context_ibus_new(); if (!ctxd) { return NULL; } ctx = ecore_imf_context_new(&ibus_imf_class); if (!ctx) { free(ctxd); return NULL; } ecore_imf_context_data_set(ctx, ctxd); return ctx; }