aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-07-22 06:30:30 +0000
committerKenichi Handa2002-07-22 06:30:30 +0000
commitb5c7dbe655f5d2f00ea53a6c1fcfb9e5bd740fb3 (patch)
treeef2269ca478865246a817424db7b434f64c2af38 /src
parentb2d2821515097896fe8e639d20e6b90c906eb0dc (diff)
downloademacs-b5c7dbe655f5d2f00ea53a6c1fcfb9e5bd740fb3.tar.gz
emacs-b5c7dbe655f5d2f00ea53a6c1fcfb9e5bd740fb3.zip
(TRAILING_CODE_P): New macro.
(MAYBE_UNIFY_CHAR): Adjusted for the change of Funify_charset. (string_char_with_unification): Fix prototype. (Vscript_alist): Extern it.
Diffstat (limited to 'src')
-rw-r--r--src/character.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/character.h b/src/character.h
index 969a3e801db..54151cb7171 100644
--- a/src/character.h
+++ b/src/character.h
@@ -157,6 +157,10 @@ Boston, MA 02111-1307, USA. */
157 form. */ 157 form. */
158#define LEADING_CODE_P(byte) (((byte) & 0xC0) == 0xC0) 158#define LEADING_CODE_P(byte) (((byte) & 0xC0) == 0xC0)
159 159
160/* Nonzero iff BYTE is a trailing code of a non-ASCII character in a
161 multibyte form. */
162#define TRAILING_CODE_P(byte) (((byte) & 0xC0) == 0x80)
163
160/* Nonzero iff BYTE starts a character in a multibyte form. 164/* Nonzero iff BYTE starts a character in a multibyte form.
161 This is equivalent to: 165 This is equivalent to:
162 (ASCII_BYTE_P (byte) || LEADING_CODE_P (byte)) */ 166 (ASCII_BYTE_P (byte) || LEADING_CODE_P (byte)) */
@@ -459,7 +463,7 @@ Boston, MA 02111-1307, USA. */
459 { \ 463 { \
460 if (SYMBOLP (val)) \ 464 if (SYMBOLP (val)) \
461 { \ 465 { \
462 Funify_charset (val, Qnil); \ 466 Funify_charset (val, Qnil, Qnil); \
463 val = CHAR_TABLE_REF (Vchar_unify_table, c); \ 467 val = CHAR_TABLE_REF (Vchar_unify_table, c); \
464 } \ 468 } \
465 if ((unified = XINT (val)) >= 0) \ 469 if ((unified = XINT (val)) >= 0) \
@@ -492,8 +496,8 @@ Boston, MA 02111-1307, USA. */
492 : XINT (CHAR_TABLE_REF (Vchar_width_table, c))) 496 : XINT (CHAR_TABLE_REF (Vchar_width_table, c)))
493 497
494extern int char_string_with_unification P_ ((int, unsigned char *)); 498extern int char_string_with_unification P_ ((int, unsigned char *));
495extern int string_char_with_unification P_ ((unsigned char *, 499extern int string_char_with_unification P_ ((const unsigned char *,
496 unsigned char **, int *)); 500 const unsigned char **, int *));
497 501
498extern int translate_char P_ ((Lisp_Object, int c)); 502extern int translate_char P_ ((Lisp_Object, int c));
499extern int char_printable_p P_ ((int c)); 503extern int char_printable_p P_ ((int c));
@@ -523,6 +527,8 @@ extern Lisp_Object string_escape_byte8 P_ ((Lisp_Object));
523/* A char-table for characters which may invoke auto-filling. */ 527/* A char-table for characters which may invoke auto-filling. */
524extern Lisp_Object Vauto_fill_chars; 528extern Lisp_Object Vauto_fill_chars;
525 529
530extern Lisp_Object Vscript_alist;
531
526/* Copy LEN bytes from FROM to TO. This macro should be used only 532/* Copy LEN bytes from FROM to TO. This macro should be used only
527 when a caller knows that LEN is short and the obvious copy loop is 533 when a caller knows that LEN is short and the obvious copy loop is
528 faster than calling bcopy which has some overhead. Copying a 534 faster than calling bcopy which has some overhead. Copying a