From: tomo Date: Thu, 17 Jun 1999 15:56:15 +0000 (+0000) Subject: (Bytecount rep_bytes_by_first_byte): Don't define in UTF2000. X-Git-Tag: r21-2-16-utf-2000-0_3-1~2 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=478dae44e18c1cf2fe3f7e991e88a24999fc9ae6;p=chise%2Fxemacs-chise.git- (Bytecount rep_bytes_by_first_byte): Don't define in UTF2000. --- diff --git a/src/character.h b/src/character.h index 9690e11..34f35ca 100644 --- a/src/character.h +++ b/src/character.h @@ -264,6 +264,7 @@ extern Lisp_Object charset_by_leading_byte[128]; /* Table of charsets indexed by type/final-byte/direction. */ extern Lisp_Object charset_by_attributes[4][128][2]; +#ifndef UTF2000 /* Table of number of bytes in the string representation of a character indexed by the first byte of that representation. @@ -274,6 +275,7 @@ extern Lisp_Object charset_by_attributes[4][128][2]; but it's faster this way. */ extern Bytecount rep_bytes_by_first_byte[0xA0]; +#endif #ifdef ERROR_CHECK_TYPECHECK /* int not Bufbyte even though that is the actual type of a leading byte. diff --git a/src/mule-charset.c b/src/mule-charset.c index fcef79f..a6bed73 100644 --- a/src/mule-charset.c +++ b/src/mule-charset.c @@ -79,6 +79,7 @@ Lisp_Object charset_by_leading_byte[128]; /* Table of charsets indexed by type/final-byte/direction. */ Lisp_Object charset_by_attributes[4][128][2]; +#ifndef UTF2000 /* Table of number of bytes in the string representation of a character indexed by the first byte of that representation. @@ -108,6 +109,7 @@ Bytecount rep_bytes_by_first_byte[0xA0] = /* 0x9f is for Dimension-2 private charsets */ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4 }; +#endif Lisp_Object Vutf_2000_version; @@ -600,9 +602,11 @@ make_charset (int id, Lisp_Object name, unsigned char rep_bytes, assert (NILP (charset_by_leading_byte[id - 128])); charset_by_leading_byte[id - 128] = obj; +#ifndef UTF2000 if (id < 0xA0) /* official leading byte */ rep_bytes_by_first_byte[id] = rep_bytes; +#endif /* Some charsets are "faux" and don't have names or really exist at all except in the leading-byte table. */