diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2012-07-21 20:40:00 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-24 16:52:48 +0000 |
commit | 09a405d8f652b56944c93ebf5c673cdfe5319b04 (patch) | |
tree | 9cc4518b0a21096735b20ac3204a6fa032f1c566 /lesskey.h | |
download | less-master.tar.gz |
Imported from /srv/lorry/lorry-area/less/less-451.tar.gz.HEADless-451masterbaserock/morph
Diffstat (limited to 'lesskey.h')
-rwxr-xr-x | lesskey.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lesskey.h b/lesskey.h new file mode 100755 index 0000000..91098a5 --- /dev/null +++ b/lesskey.h @@ -0,0 +1,39 @@ +/* + * Copyright (C) 1984-2012 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + + +/* + * Format of a lesskey file: + * + * LESSKEY_MAGIC (4 bytes) + * sections... + * END_LESSKEY_MAGIC (4 bytes) + * + * Each section is: + * + * section_MAGIC (1 byte) + * section_length (2 bytes) + * key table (section_length bytes) + */ +#define C0_LESSKEY_MAGIC '\0' +#define C1_LESSKEY_MAGIC 'M' +#define C2_LESSKEY_MAGIC '+' +#define C3_LESSKEY_MAGIC 'G' + +#define CMD_SECTION 'c' +#define EDIT_SECTION 'e' +#define VAR_SECTION 'v' +#define END_SECTION 'x' + +#define C0_END_LESSKEY_MAGIC 'E' +#define C1_END_LESSKEY_MAGIC 'n' +#define C2_END_LESSKEY_MAGIC 'd' + +/* */ +#define KRADIX 64 |