X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftextprop.h;h=171ff7c138c9753a979c578262a5510d0bf23dc4;hb=7eaac4f52fe22d6fbed3dfbaa3db0bab48a3d5d4;hp=30e75b6dcc6c05176098ad68a7354b59cb6e6828;hpb=1359a5c46aaaa266d1d6a0f30f2478a18e439b5c;p=m17n%2Fm17n-lib.git diff --git a/src/textprop.h b/src/textprop.h index 30e75b6..171ff7c 100644 --- a/src/textprop.h +++ b/src/textprop.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the m17n library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 02111-1307, USA. */ #ifndef _M17N_TEXTPROP_H_ @@ -50,6 +50,10 @@ struct MTextProperty void *val; }; +#define MTEXTPROP_START(prop) (prop)->start +#define MTEXTPROP_END(prop) (prop)->end +#define MTEXTPROP_KEY(prop) (prop)->key +#define MTEXTPROP_VAL(prop) (prop)->val extern struct MTextPlist *mtext__copy_plist (struct MTextPlist *, int from, int to, @@ -62,7 +66,8 @@ extern void mtext__adjust_plist_for_delete (MText *, int, int); extern void mtext__adjust_plist_for_insert (MText *, int, int, struct MTextPlist *); -extern void mtext__adjust_plist_for_change (MText *mt, int from, int to); +extern void mtext__adjust_plist_for_change (MText *mt, int pos, + int len1, int len2); extern void dump_textplist (struct MTextPlist *plist, int indent);