aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charset.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/charset.h b/src/charset.h
index 0965bb29d2c..a8e162d1a30 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -412,6 +412,15 @@ extern Lisp_Object Vchar_charset_set;
412 : decode_char ((charset), (code))) 412 : decode_char ((charset), (code)))
413 413
414 414
415/* If CHARSET is a simple offset base charset, return it's offset,
416 otherwise return -1. */
417#define CHARSET_OFFSET(charset) \
418 (((charset)->method == CHARSET_METHOD_OFFSET \
419 && (charset)->code_linear_p \
420 && ! (charset)->unified_p) \
421 ? (charset)->code_offset - (charset)->min_code \
422 : -1)
423
415extern Lisp_Object charset_work; 424extern Lisp_Object charset_work;
416 425
417/* Return a code point of CHAR in CHARSET. 426/* Return a code point of CHAR in CHARSET.