[uim-commit] r225 - trunk/uim
tkng@freedesktop.org
tkng@freedesktop.org
Mon Jan 10 12:44:13 PST 2005
Author: tkng
Date: 2005-01-10 12:44:10 -0800 (Mon, 10 Jan 2005)
New Revision: 225
Modified:
trunk/uim/m17nlib.c
Log:
* uim/m17nlib.c: Fixed some warnings.
-(uim_plugin_instance_init): Renamed from uim_init_m17nlib.
-(uim_plugin_instance_quit): Renamed from uim_quit_m17nlib.
Modified: trunk/uim/m17nlib.c
===================================================================
--- trunk/uim/m17nlib.c 2005-01-10 18:39:22 UTC (rev 224)
+++ trunk/uim/m17nlib.c 2005-01-10 20:44:10 UTC (rev 225)
@@ -252,21 +252,6 @@
return uim_scm_t();
}
-void
-uim_quit_m17nlib(void)
-{
- if (converter) {
- mconv_free_converter(converter);
- converter = NULL;
- }
- if (m17nlib_ok) {
- M17N_FINI();
- m17nlib_ok = 0;
- }
- free(im_array);
- free(ic_array);
-}
-
static char *
convert_mtext2str(MText *mtext)
{
@@ -719,7 +704,7 @@
}
void
-uim_init_m17nlib(void)
+uim_plugin_instance_init(void)
{
uim_scm_init_subr_0("m17nlib-lib-init", init_m17nlib);
uim_scm_init_subr_0("m17nlib-lib-nr-input-methods", get_nr_input_methods);
@@ -744,16 +729,18 @@
uim_scm_init_subr_1("m17nlib-lib-get-candidate-index", get_candidate_index);
}
-
void
-uim_plugin_instance_init(void)
-{
- uim_init_m17nlib();
-}
-
-void
uim_plugin_instance_quit(void)
{
- return;
+ if (converter) {
+ mconv_free_converter(converter);
+ converter = NULL;
+ }
+ if (m17nlib_ok) {
+ M17N_FINI();
+ m17nlib_ok = 0;
+ }
+ free(im_array);
+ free(ic_array);
}
#endif /* HAVE_M17NLIB */
More information about the Uim-commit
mailing list