Commit 8cf93b6e authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(CHARSET_OFFSET): New macro.

parent 697a932e
......@@ -412,6 +412,15 @@ extern Lisp_Object Vchar_charset_set;
: decode_char ((charset), (code)))
/* If CHARSET is a simple offset base charset, return it's offset,
otherwise return -1. */
#define CHARSET_OFFSET(charset) \
(((charset)->method == CHARSET_METHOD_OFFSET \
&& (charset)->code_linear_p \
&& ! (charset)->unified_p) \
? (charset)->code_offset - (charset)->min_code \
: -1)
extern Lisp_Object charset_work;
/* Return a code point of CHAR in CHARSET.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment