comparison src/lisp.h @ 26479:cf75e5b634ec

(KEY_DESCRIPTION_SIZE): New macro.
author Kenichi Handa <handa@m17n.org>
date Thu, 18 Nov 1999 05:08:25 +0000
parents c3c9cc1c2379
children b7438760079b
comparison
equal deleted inserted replaced
26478:15937aa505e7 26479:cf75e5b634ec
1067 1067
1068 1068
1069 /* Actually, the current Emacs uses 19 bits for the character value 1069 /* Actually, the current Emacs uses 19 bits for the character value
1070 itself. */ 1070 itself. */
1071 #define CHARACTERBITS 19 1071 #define CHARACTERBITS 19
1072
1073 /* The maximum byte size consumed by push_key_description.
1074 All callers should assure that at least this size of memory is
1075 allocated at the place pointed by the second argument.
1076
1077 Thers are 6 modifiers, each consumes 2 chars.
1078 The octal form of a character code consumes
1079 (1 + CHARACTERBITS / 3 + 1) chars (including backslash at the head).
1080 We need one more byte for string terminator `\0'. */
1081 #define KEY_DESCRIPTION_SIZE ((2 * 6) + 1 + (CHARACTERBITS / 3) + 1 + 1)
1072 1082
1073 #ifdef USE_X_TOOLKIT 1083 #ifdef USE_X_TOOLKIT
1074 #ifdef NO_UNION_TYPE 1084 #ifdef NO_UNION_TYPE
1075 /* Use this for turning a (void *) into a Lisp_Object, as when the 1085 /* Use this for turning a (void *) into a Lisp_Object, as when the
1076 Lisp_Object is passed into a toolkit callback function. */ 1086 Lisp_Object is passed into a toolkit callback function. */