(chise_ds_decode_char): New inline function.
authortomo <tomo>
Fri, 3 Oct 2003 11:44:12 +0000 (11:44 +0000)
committertomo <tomo>
Fri, 3 Oct 2003 11:44:12 +0000 (11:44 +0000)
chise.h

diff --git a/chise.h b/chise.h
index 76713f8..ca16d1c 100644 (file)
--- 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 */