aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1999-11-18 05:08:25 +0000
committerKenichi Handa1999-11-18 05:08:25 +0000
commitb0ca4f56d5564497d6044c4afd5fd506583707a4 (patch)
tree696e9e8e10ea8cefa5ad42ac07b3cfff3a4bc9de /src
parenteeedff6357b90967a1374c435054bc77dd6927a3 (diff)
downloademacs-b0ca4f56d5564497d6044c4afd5fd506583707a4.tar.gz
emacs-b0ca4f56d5564497d6044c4afd5fd506583707a4.zip
(KEY_DESCRIPTION_SIZE): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index a45e30f2d8e..d48ec29461d 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1070,6 +1070,16 @@ typedef unsigned char UCHAR;
1070 itself. */ 1070 itself. */
1071#define CHARACTERBITS 19 1071#define CHARACTERBITS 19
1072 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)
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