From: handa Date: Thu, 29 Mar 2007 11:23:18 +0000 (+0000) Subject: (mtext_serialize): Use msymbol_get_func. X-Git-Tag: FLT-base~110 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=339e9b4834bfe13ae603fe48cf142dfcc52d15fe;p=m17n%2Fm17n-lib.git (mtext_serialize): Use msymbol_get_func. (mtext_deserialize): Likewise. --- diff --git a/src/textprop.c b/src/textprop.c index 5fb93a4..a8dd803 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -2868,7 +2868,8 @@ mtext_serialize (MText *mt, int from, int to, MPlist *property_list) { MSymbol key = MPLIST_VAL (pl); - func = (MTextPropSerializeFunc) msymbol_get (key, Mtext_prop_serializer); + func = ((MTextPropSerializeFunc) + msymbol_get_func (key, Mtext_prop_serializer)); if (func) extract_text_properties (mt, from, to, key, plist); } @@ -2881,8 +2882,8 @@ mtext_serialize (MText *mt, int from, int to, MPlist *property_list) MPlist *serialized_plist; xmlNodePtr child; - func = (MTextPropSerializeFunc) msymbol_get (prop->key, - Mtext_prop_serializer); + func = ((MTextPropSerializeFunc) + msymbol_get_func (prop->key, Mtext_prop_serializer)); serialized_plist = (func) (prop->val); if (! serialized_plist) continue; @@ -3063,7 +3064,7 @@ mtext_deserialize (MText *mt) key = msymbol ((char *) key_str); func = ((MTextPropDeserializeFunc) - msymbol_get (key, Mtext_prop_deserializer)); + msymbol_get_func (key, Mtext_prop_deserializer)); if (! func) continue; plist = mplist__from_string (val_str, strlen ((char *) val_str));