diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 10 |
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 |