From 5cfd1cac6ba094b6ae9634d1fb36675290ae3f2a Mon Sep 17 00:00:00 2001 From: tomo Date: Mon, 24 Jul 2000 02:47:34 +0000 Subject: [PATCH] (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed to inline function. --- src/mule-charset.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mule-charset.h b/src/mule-charset.h index 30bc569..6079faf 100644 --- a/src/mule-charset.h +++ b/src/mule-charset.h @@ -586,9 +586,14 @@ CHARSET_BY_LEADING_BYTE (int lb) #endif -#define CHARSET_BY_ATTRIBUTES(type, final, dir) \ - (chlook->charset_by_attributes[type][final][dir]) - +INLINE_HEADER Lisp_Object +CHARSET_BY_ATTRIBUTES (int chars, int multi, int final, int dir); +INLINE_HEADER Lisp_Object +CHARSET_BY_ATTRIBUTES (int chars, int dimension, int final, int dir) +{ + return chlook->charset_by_attributes[(dimension == 1 ? 0 : 2) + + (chars == 94 ? 0 : 1)][final][dir]; +} /* Table of number of bytes in the string representation of a character indexed by the first byte of that representation. -- 1.7.10.4