X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FChangeLog;h=a9c154e467785ca388a407be2cbc9b6268627747;hb=45e5ec16068aec42d4547ee5cb1871a63c6ee195;hp=e34b9b937c62330d43ae6ff53c72128191a279b5;hpb=1b3309fcc7beb2a9a416d727a7fd0539247a2439;p=m17n%2Fm17n-lib.git diff --git a/src/ChangeLog b/src/ChangeLog index e34b9b9..a9c154e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,62 @@ +2007-03-29 Kenichi Handa + + These changes are to avoid unsafe casting of a function pointer. + + * face.h (enum MFaceProperty): Delete MFACE_HOOK_FUNC. + (struct MFace): New member hook. + + * face.c (serialize_face): Adjusted for the change of MFace. + (deserialize_face): Likewise. + (mface__init): Likewise. Use msymbol_put_func. + (mface__realize): Adjusted for the change of MFace. Avoid + compiler warning. + (mface_get_prop): Adjusted for the change of MFace. + (mface_put_prop): Likewise. + (mface_get_hook): New function. + (mface_put_hook): New function. + (mface_update): Adjusted for the change of MFace. + + * input-gui.c (win_callback): Use mplsit_get_func. + (minput__win_init): Use mplsit_put_func. + + * input.c (take_action_list): Use mplist_get_func. + (init_ic_info): Likewise. + (fini_ic_info): Likewise. + (minput_callback): Likewise. + (minput__init): Use mplist_put_func. + + * language.c (mlang__init): Use msymbol_put_func. + + * m17n-core.h (M17NFunc): New function type. + (M17N_FUNC): New macro. + (msymbol_put_func, msymbol_get_func): Extern them. + (mplist_put_func, mplist_get_func): Extern them. + + * m17n-gui.h (mface_get_hook, mface_put_hook): Extern them. + + * m17n-gui.c (mframe): Add a proper casting. + + * plist.h (struct MPlist): Make the member val a union. + (MPLIST_VAL): Adjusted for the above change. + (MPLIST_FUNC): New macro. + (MPLIST_VAL_FUNC_P, MPLIST_SET_VAL_FUNC_P): New macros. + + * plist.c (mplist_put_func, mplist_get_func): New functions. + + * symbol.c (msymbol__fini): Use MPLIST_VAL. + (msymbol_put_func, msymbol_get_func): New functions. + + * textprop.c (mtext_serialize): Use msymbol_get_func. + (mtext_deserialize): Likewise. + +2007-03-28 Kenichi Handa + + * input.c (get_candidate_list): Avoid unnecessary unref. + +2007-03-23 Kenichi Handa + + * database.c (mdatabase__update): Unref plist at the tail. + 2007-03-21 Kenichi Handa * input.c (update_custom_info): Fix for the case "name == Mnil &&