From 73fddcc4c708cfc71e31e2585c990356c6c53242 Mon Sep 17 00:00:00 2001 From: tomo Date: Fri, 3 Oct 2003 11:44:12 +0000 Subject: [PATCH] (chise_ds_decode_char): New inline function. --- chise.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/chise.h b/chise.h index 76713f8..ca16d1c 100644 --- a/chise.h +++ b/chise.h @@ -79,7 +79,7 @@ typedef CHISE_CCS_Table* CHISE_CCS; CHISE_CCS chise_ds_get_ccs (CHISE_DS *ds, const unsigned char *ccs); -CHISE_Char_ID +static inline CHISE_Char_ID chise_ds_decode_char (CHISE_DS *ds, const unsigned char *ccs, int code_point); @@ -90,4 +90,12 @@ int chise_ccs_set_decoded_char (CHISE_CCS ccs, int chise_ccs_sync (CHISE_CCS ccs); +static inline CHISE_Char_ID +chise_ds_decode_char (CHISE_DS *ds, + const unsigned char *ccs, int code_point) +{ + return + chise_ccs_decode (chise_ds_get_ccs (ds, ccs), code_point); +} + #endif /* !_CHISE_H */ -- 1.7.10.4