vte r2204 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2204 - in trunk: . src
- Date: Wed, 26 Nov 2008 20:38:33 +0000 (UTC)
Author: behdad
Date: Wed Nov 26 20:38:33 2008
New Revision: 2204
URL: http://svn.gnome.org/viewvc/vte?rev=2204&view=rev
Log:
2008-11-26 Behdad Esfahbod <behdad gnome org>
* src/Makefile.am:
* src/vteseq-2.c (vteseq_2_hash), (vteseq_2_lookup):
* src/vteseq-2.gperf:
* src/vteseq-n.c (vteseq_n_lookup):
* src/vteseq-n.gperf:
Don't use switch in gperf-generated code. This increases .data by 1k
but decreases .text by 6k AND the lookup code is MUCH faster. It used
to do tens of compares before.
Modified:
trunk/ChangeLog
trunk/src/Makefile.am
trunk/src/vteseq-2.c
trunk/src/vteseq-2.gperf
trunk/src/vteseq-n.c
trunk/src/vteseq-n.gperf
Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Wed Nov 26 20:38:33 2008
@@ -32,7 +32,7 @@
unitable.KSX1001
gperf: vteseq-2.gperf vteseq-n.gperf
- gperf vteseq-2.gperf -m 100 > vteseq-2.c
+ gperf vteseq-2.gperf -m 100 --no-strlen > vteseq-2.c
gperf vteseq-n.gperf -m 100 > vteseq-n.c
#vteseq-2.c vteseq-n.c: gperf
Modified: trunk/src/vteseq-2.c
==============================================================================
--- trunk/src/vteseq-2.c (original)
+++ trunk/src/vteseq-2.c Wed Nov 26 20:38:33 2008
@@ -1,5 +1,5 @@
/* ANSI-C code produced by gperf version 3.0.3 */
-/* Command-line: gperf -m 100 vteseq-2.gperf */
+/* Command-line: gperf -m 100 --no-strlen vteseq-2.gperf */
/* Computed positions: -k'1-2' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
@@ -29,7 +29,7 @@
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf gnu org>."
#endif
-#line 15 "vteseq-2.gperf"
+#line 14 "vteseq-2.gperf"
struct vteseq_2_struct {
char seq[3];
VteTerminalSequenceHandler handler;
@@ -44,40 +44,41 @@
inline
#endif
#endif
+/*ARGSUSED*/
static unsigned int
vteseq_2_hash (register const char *str, register unsigned int len)
{
static const unsigned short asso_values[] =
{
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 168, 361, 122,
- 361, 22, 32, 361, 157, 20, 3, 15, 29, 38,
- 71, 66, 55, 43, 361, 213, 361, 361, 361, 361,
- 361, 185, 211, 169, 209, 181, 197, 206, 7, 167,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 168, 359, 122,
+ 359, 22, 32, 359, 157, 20, 3, 15, 29, 38,
+ 71, 66, 55, 43, 359, 213, 359, 359, 359, 359,
+ 359, 185, 211, 169, 209, 181, 197, 206, 7, 167,
186, 164, 148, 205, 1, 56, 201, 4, 190, 11,
- 177, 137, 130, 18, 16, 8, 47, 2, 361, 2,
- 361, 361, 361, 133, 94, 67, 91, 82, 128, 12,
+ 177, 137, 130, 18, 16, 8, 47, 2, 359, 2,
+ 359, 359, 359, 133, 94, 67, 91, 82, 128, 12,
99, 84, 95, 53, 79, 23, 175, 100, 96, 117,
- 108, 0, 33, 28, 103, 23, 361, 361, 56, 72,
- 111, 63, 59, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
- 361, 361, 361, 361, 361, 361, 361, 361, 361, 361
+ 108, 0, 33, 28, 103, 23, 359, 359, 56, 72,
+ 111, 63, 59, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359
};
- return len + asso_values[(unsigned char)str[1]+6] + asso_values[(unsigned char)str[0]+14];
+ return asso_values[(unsigned char)str[1]+6] + asso_values[(unsigned char)str[0]+14];
}
#ifdef __GNUC__
@@ -94,453 +95,472 @@
TOTAL_KEYWORDS = 221,
MIN_WORD_LENGTH = 2,
MAX_WORD_LENGTH = 2,
- MIN_HASH_VALUE = 2,
- MAX_HASH_VALUE = 360
+ MIN_HASH_VALUE = 0,
+ MAX_HASH_VALUE = 358
};
static const struct vteseq_2_struct wordlist[] =
{
-#line 229 "vteseq-2.gperf"
+#line 228 "vteseq-2.gperf"
{"ks", vte_sequence_handler_ks},
-#line 217 "vteseq-2.gperf"
+#line 216 "vteseq-2.gperf"
{"kN", vte_sequence_handler_complain_key},
-#line 103 "vteseq-2.gperf"
+#line 102 "vteseq-2.gperf"
{"FN", vte_sequence_handler_complain_key},
-#line 198 "vteseq-2.gperf"
+#line 197 "vteseq-2.gperf"
{"k2", vte_sequence_handler_complain_key},
-#line 82 "vteseq-2.gperf"
+#line 81 "vteseq-2.gperf"
{"F2", vte_sequence_handler_complain_key},
-#line 106 "vteseq-2.gperf"
+#line 105 "vteseq-2.gperf"
{"FQ", vte_sequence_handler_complain_key},
-#line 59 "vteseq-2.gperf"
+#line 58 "vteseq-2.gperf"
{"*2", vte_sequence_handler_complain_key},
-#line 213 "vteseq-2.gperf"
+#line 212 "vteseq-2.gperf"
{"kH", vte_sequence_handler_complain_key},
-#line 97 "vteseq-2.gperf"
+#line 96 "vteseq-2.gperf"
{"FH", vte_sequence_handler_complain_key},
-#line 114 "vteseq-2.gperf"
+#line 113 "vteseq-2.gperf"
{"FY", vte_sequence_handler_complain_key},
-#line 69 "vteseq-2.gperf"
+#line 68 "vteseq-2.gperf"
{"@2", vte_sequence_handler_complain_key},
-#line 220 "vteseq-2.gperf"
+#line 219 "vteseq-2.gperf"
{"kS", vte_sequence_handler_complain_key},
-#line 108 "vteseq-2.gperf"
+#line 107 "vteseq-2.gperf"
{"FS", vte_sequence_handler_complain_key},
-#line 122 "vteseq-2.gperf"
+#line 121 "vteseq-2.gperf"
{"Fg", vte_sequence_handler_complain_key},
-#line 136 "vteseq-2.gperf"
+#line 135 "vteseq-2.gperf"
{"K2", vte_sequence_handler_complain_key},
-#line 199 "vteseq-2.gperf"
+#line 198 "vteseq-2.gperf"
{"k3", vte_sequence_handler_complain_key},
-#line 83 "vteseq-2.gperf"
+#line 82 "vteseq-2.gperf"
{"F3", vte_sequence_handler_complain_key},
-#line 113 "vteseq-2.gperf"
+#line 112 "vteseq-2.gperf"
{"FX", vte_sequence_handler_complain_key},
-#line 60 "vteseq-2.gperf"
+#line 59 "vteseq-2.gperf"
{"*3", vte_sequence_handler_complain_key},
-#line 112 "vteseq-2.gperf"
+#line 111 "vteseq-2.gperf"
{"FW", vte_sequence_handler_complain_key},
-#line 197 "vteseq-2.gperf"
+#line 196 "vteseq-2.gperf"
{"k1", vte_sequence_handler_complain_key},
-#line 81 "vteseq-2.gperf"
+#line 80 "vteseq-2.gperf"
{"F1", vte_sequence_handler_complain_key},
-#line 70 "vteseq-2.gperf"
+#line 69 "vteseq-2.gperf"
{"@3", vte_sequence_handler_complain_key},
-#line 58 "vteseq-2.gperf"
+#line 57 "vteseq-2.gperf"
{"*1", vte_sequence_handler_complain_key},
-#line 128 "vteseq-2.gperf"
+#line 127 "vteseq-2.gperf"
{"Fm", vte_sequence_handler_complain_key},
-#line 29 "vteseq-2.gperf"
+#line 28 "vteseq-2.gperf"
{"%2", vte_sequence_handler_complain_key},
-#line 137 "vteseq-2.gperf"
+#line 136 "vteseq-2.gperf"
{"K3", vte_sequence_handler_complain_key},
-#line 68 "vteseq-2.gperf"
+#line 67 "vteseq-2.gperf"
{"@1", vte_sequence_handler_complain_key},
-#line 231 "vteseq-2.gperf"
+#line 230 "vteseq-2.gperf"
{"ku", vte_sequence_handler_complain_key},
-#line 200 "vteseq-2.gperf"
+#line 199 "vteseq-2.gperf"
{"k4", vte_sequence_handler_complain_key},
-#line 84 "vteseq-2.gperf"
+#line 83 "vteseq-2.gperf"
{"F4", vte_sequence_handler_complain_key},
-#line 135 "vteseq-2.gperf"
+#line 134 "vteseq-2.gperf"
{"K1", vte_sequence_handler_complain_key},
-#line 61 "vteseq-2.gperf"
+#line 60 "vteseq-2.gperf"
{"*4", vte_sequence_handler_complain_key},
-#line 230 "vteseq-2.gperf"
+#line 229 "vteseq-2.gperf"
{"kt", vte_sequence_handler_complain_key},
-#line 43 "vteseq-2.gperf"
+#line 42 "vteseq-2.gperf"
{"%g", vte_sequence_handler_complain_key},
-#line 49 "vteseq-2.gperf"
+#line 48 "vteseq-2.gperf"
{"&2", vte_sequence_handler_complain_key},
-#line 71 "vteseq-2.gperf"
+#line 70 "vteseq-2.gperf"
{"@4", vte_sequence_handler_complain_key},
-#line 30 "vteseq-2.gperf"
+#line 29 "vteseq-2.gperf"
{"%3", vte_sequence_handler_complain_key},
-#line 201 "vteseq-2.gperf"
+#line 200 "vteseq-2.gperf"
{"k5", vte_sequence_handler_complain_key},
-#line 85 "vteseq-2.gperf"
+#line 84 "vteseq-2.gperf"
{"F5", vte_sequence_handler_complain_key},
-#line 138 "vteseq-2.gperf"
+#line 137 "vteseq-2.gperf"
{"K4", vte_sequence_handler_complain_key},
-#line 62 "vteseq-2.gperf"
+#line 61 "vteseq-2.gperf"
{"*5", vte_sequence_handler_complain_key},
-#line 28 "vteseq-2.gperf"
+#line 27 "vteseq-2.gperf"
{"%1", vte_sequence_handler_complain_key},
-#line 205 "vteseq-2.gperf"
+#line 204 "vteseq-2.gperf"
{"k9", vte_sequence_handler_complain_key},
-#line 89 "vteseq-2.gperf"
+#line 88 "vteseq-2.gperf"
{"F9", vte_sequence_handler_complain_key},
-#line 72 "vteseq-2.gperf"
+#line 71 "vteseq-2.gperf"
{"@5", vte_sequence_handler_complain_key},
-#line 66 "vteseq-2.gperf"
+#line 65 "vteseq-2.gperf"
{"*9", vte_sequence_handler_complain_key},
-#line 50 "vteseq-2.gperf"
+#line 49 "vteseq-2.gperf"
{"&3", vte_sequence_handler_complain_key},
-#line 115 "vteseq-2.gperf"
+#line 114 "vteseq-2.gperf"
{"FZ", vte_sequence_handler_complain_key},
-#line 139 "vteseq-2.gperf"
+#line 138 "vteseq-2.gperf"
{"K5", vte_sequence_handler_complain_key},
-#line 76 "vteseq-2.gperf"
+#line 75 "vteseq-2.gperf"
{"@9", vte_sequence_handler_complain_key},
-#line 31 "vteseq-2.gperf"
+#line 30 "vteseq-2.gperf"
{"%4", vte_sequence_handler_complain_key},
-#line 48 "vteseq-2.gperf"
+#line 47 "vteseq-2.gperf"
{"&1", vte_sequence_handler_complain_key},
-#line 171 "vteseq-2.gperf"
+#line 170 "vteseq-2.gperf"
{"cs", vte_sequence_handler_cs},
-#line 126 "vteseq-2.gperf"
+#line 125 "vteseq-2.gperf"
{"Fk", vte_sequence_handler_complain_key},
-#line 204 "vteseq-2.gperf"
+#line 203 "vteseq-2.gperf"
{"k8", vte_sequence_handler_complain_key},
-#line 88 "vteseq-2.gperf"
+#line 87 "vteseq-2.gperf"
{"F8", vte_sequence_handler_complain_key},
-#line 104 "vteseq-2.gperf"
+#line 103 "vteseq-2.gperf"
{"FO", vte_sequence_handler_complain_key},
-#line 65 "vteseq-2.gperf"
+#line 64 "vteseq-2.gperf"
{"*8", vte_sequence_handler_complain_key},
-#line 291 "vteseq-2.gperf"
+#line 290 "vteseq-2.gperf"
{"vs", vte_sequence_handler_vs},
-#line 32 "vteseq-2.gperf"
+#line 31 "vteseq-2.gperf"
{"%5", vte_sequence_handler_complain_key},
-#line 51 "vteseq-2.gperf"
+#line 50 "vteseq-2.gperf"
{"&4", vte_sequence_handler_complain_key},
-#line 75 "vteseq-2.gperf"
+#line 74 "vteseq-2.gperf"
{"@8", vte_sequence_handler_complain_key},
-#line 287 "vteseq-2.gperf"
+#line 286 "vteseq-2.gperf"
{"us", vte_sequence_handler_us},
-#line 162 "vteseq-2.gperf"
+#line 161 "vteseq-2.gperf"
{"cS", vte_sequence_handler_cS},
-#line 36 "vteseq-2.gperf"
+#line 35 "vteseq-2.gperf"
{"%9", vte_sequence_handler_complain_key},
-#line 203 "vteseq-2.gperf"
+#line 202 "vteseq-2.gperf"
{"k7", vte_sequence_handler_complain_key},
-#line 87 "vteseq-2.gperf"
+#line 86 "vteseq-2.gperf"
{"F7", vte_sequence_handler_complain_key},
-#line 118 "vteseq-2.gperf"
+#line 117 "vteseq-2.gperf"
{"Fc", vte_sequence_handler_complain_key},
-#line 64 "vteseq-2.gperf"
+#line 63 "vteseq-2.gperf"
{"*7", vte_sequence_handler_complain_key},
-#line 52 "vteseq-2.gperf"
+#line 51 "vteseq-2.gperf"
{"&5", vte_sequence_handler_complain_key},
-#line 202 "vteseq-2.gperf"
+#line 201 "vteseq-2.gperf"
{"k6", vte_sequence_handler_complain_key},
-#line 86 "vteseq-2.gperf"
+#line 85 "vteseq-2.gperf"
{"F6", vte_sequence_handler_complain_key},
-#line 74 "vteseq-2.gperf"
+#line 73 "vteseq-2.gperf"
{"@7", vte_sequence_handler_complain_key},
-#line 63 "vteseq-2.gperf"
+#line 62 "vteseq-2.gperf"
{"*6", vte_sequence_handler_complain_key},
-#line 56 "vteseq-2.gperf"
+#line 55 "vteseq-2.gperf"
{"&9", vte_sequence_handler_complain_key},
-#line 169 "vteseq-2.gperf"
+#line 168 "vteseq-2.gperf"
{"cm", vte_sequence_handler_cm},
-#line 35 "vteseq-2.gperf"
+#line 34 "vteseq-2.gperf"
{"%8", vte_sequence_handler_complain_key},
-#line 73 "vteseq-2.gperf"
+#line 72 "vteseq-2.gperf"
{"@6", vte_sequence_handler_complain_key},
-#line 227 "vteseq-2.gperf"
+#line 226 "vteseq-2.gperf"
{"kl", vte_sequence_handler_complain_key},
-#line 127 "vteseq-2.gperf"
+#line 126 "vteseq-2.gperf"
{"Fl", vte_sequence_handler_complain_key},
-#line 249 "vteseq-2.gperf"
+#line 248 "vteseq-2.gperf"
{"mk", vte_sequence_handler_mk},
-#line 225 "vteseq-2.gperf"
+#line 224 "vteseq-2.gperf"
{"ke", vte_sequence_handler_ke},
-#line 120 "vteseq-2.gperf"
+#line 119 "vteseq-2.gperf"
{"Fe", vte_sequence_handler_complain_key},
-#line 158 "vteseq-2.gperf"
+#line 157 "vteseq-2.gperf"
{"as", vte_sequence_handler_as},
-#line 124 "vteseq-2.gperf"
+#line 123 "vteseq-2.gperf"
{"Fi", vte_sequence_handler_complain_key},
-#line 172 "vteseq-2.gperf"
+#line 171 "vteseq-2.gperf"
{"ct", vte_sequence_handler_ct},
-#line 55 "vteseq-2.gperf"
+#line 54 "vteseq-2.gperf"
{"&8", vte_sequence_handler_complain_key},
-#line 34 "vteseq-2.gperf"
+#line 33 "vteseq-2.gperf"
{"%7", vte_sequence_handler_complain_key},
-#line 39 "vteseq-2.gperf"
+#line 38 "vteseq-2.gperf"
{"%c", vte_sequence_handler_complain_key},
-#line 180 "vteseq-2.gperf"
+#line 179 "vteseq-2.gperf"
{"ec", vte_sequence_handler_ec},
-#line 224 "vteseq-2.gperf"
+#line 223 "vteseq-2.gperf"
{"kd", vte_sequence_handler_complain_key},
-#line 119 "vteseq-2.gperf"
+#line 118 "vteseq-2.gperf"
{"Fd", vte_sequence_handler_complain_key},
-#line 33 "vteseq-2.gperf"
+#line 32 "vteseq-2.gperf"
{"%6", vte_sequence_handler_complain_key},
-#line 223 "vteseq-2.gperf"
+#line 222 "vteseq-2.gperf"
{"kb", vte_sequence_handler_kb},
-#line 117 "vteseq-2.gperf"
+#line 116 "vteseq-2.gperf"
{"Fb", vte_sequence_handler_complain_key},
-#line 125 "vteseq-2.gperf"
+#line 124 "vteseq-2.gperf"
{"Fj", vte_sequence_handler_complain_key},
-#line 131 "vteseq-2.gperf"
+#line 130 "vteseq-2.gperf"
{"Fp", vte_sequence_handler_complain_key},
-#line 54 "vteseq-2.gperf"
+#line 53 "vteseq-2.gperf"
{"&7", vte_sequence_handler_complain_key},
-#line 226 "vteseq-2.gperf"
+#line 225 "vteseq-2.gperf"
{"kh", vte_sequence_handler_complain_key},
-#line 123 "vteseq-2.gperf"
+#line 122 "vteseq-2.gperf"
{"Fh", vte_sequence_handler_complain_key},
-#line 130 "vteseq-2.gperf"
+#line 129 "vteseq-2.gperf"
{"Fo", vte_sequence_handler_complain_key},
-#line 176 "vteseq-2.gperf"
+#line 175 "vteseq-2.gperf"
{"dm", vte_sequence_handler_noop},
-#line 53 "vteseq-2.gperf"
+#line 52 "vteseq-2.gperf"
{"&6", vte_sequence_handler_complain_key},
-#line 41 "vteseq-2.gperf"
+#line 40 "vteseq-2.gperf"
{"%e", vte_sequence_handler_complain_key},
-#line 279 "vteseq-2.gperf"
+#line 278 "vteseq-2.gperf"
{"st", vte_sequence_handler_st},
-#line 45 "vteseq-2.gperf"
+#line 44 "vteseq-2.gperf"
{"%i", vte_sequence_handler_complain_key},
-#line 182 "vteseq-2.gperf"
+#line 181 "vteseq-2.gperf"
{"ei", vte_sequence_handler_ei},
-#line 228 "vteseq-2.gperf"
+#line 227 "vteseq-2.gperf"
{"kr", vte_sequence_handler_complain_key},
-#line 133 "vteseq-2.gperf"
+#line 132 "vteseq-2.gperf"
{"Fr", vte_sequence_handler_complain_key},
-#line 247 "vteseq-2.gperf"
+#line 246 "vteseq-2.gperf"
{"me", vte_sequence_handler_me},
-#line 283 "vteseq-2.gperf"
+#line 282 "vteseq-2.gperf"
{"ts", vte_sequence_handler_ts},
-#line 244 "vteseq-2.gperf"
+#line 243 "vteseq-2.gperf"
{"ll", vte_sequence_handler_ll},
-#line 40 "vteseq-2.gperf"
+#line 39 "vteseq-2.gperf"
{"%d", vte_sequence_handler_complain_key},
-#line 181 "vteseq-2.gperf"
+#line 180 "vteseq-2.gperf"
{"ed", vte_sequence_handler_noop},
-#line 243 "vteseq-2.gperf"
+#line 242 "vteseq-2.gperf"
{"le", vte_sequence_handler_le},
-#line 38 "vteseq-2.gperf"
+#line 37 "vteseq-2.gperf"
{"%b", vte_sequence_handler_complain_key},
-#line 46 "vteseq-2.gperf"
+#line 45 "vteseq-2.gperf"
{"%j", vte_sequence_handler_complain_key},
-#line 132 "vteseq-2.gperf"
+#line 131 "vteseq-2.gperf"
{"Fq", vte_sequence_handler_complain_key},
-#line 246 "vteseq-2.gperf"
+#line 245 "vteseq-2.gperf"
{"md", vte_sequence_handler_md},
-#line 164 "vteseq-2.gperf"
+#line 163 "vteseq-2.gperf"
{"cc", vte_sequence_handler_noop},
-#line 44 "vteseq-2.gperf"
+#line 43 "vteseq-2.gperf"
{"%h", vte_sequence_handler_complain_key},
-#line 245 "vteseq-2.gperf"
+#line 244 "vteseq-2.gperf"
{"mb", vte_sequence_handler_mb},
-#line 269 "vteseq-2.gperf"
+#line 268 "vteseq-2.gperf"
{"rc", vte_sequence_handler_rc},
-#line 252 "vteseq-2.gperf"
+#line 251 "vteseq-2.gperf"
{"mp", vte_sequence_handler_mp},
-#line 25 "vteseq-2.gperf"
+#line 24 "vteseq-2.gperf"
{"#2", vte_sequence_handler_complain_key},
-#line 255 "vteseq-2.gperf"
+#line 254 "vteseq-2.gperf"
{"nw", vte_sequence_handler_nw},
-#line 248 "vteseq-2.gperf"
+#line 247 "vteseq-2.gperf"
{"mh", vte_sequence_handler_mh},
-#line 161 "vteseq-2.gperf"
+#line 160 "vteseq-2.gperf"
{"bt", vte_sequence_handler_bt},
-#line 121 "vteseq-2.gperf"
+#line 120 "vteseq-2.gperf"
{"Ff", vte_sequence_handler_complain_key},
-#line 284 "vteseq-2.gperf"
+#line 283 "vteseq-2.gperf"
{"uc", vte_sequence_handler_uc},
-#line 111 "vteseq-2.gperf"
+#line 110 "vteseq-2.gperf"
{"FV", vte_sequence_handler_complain_key},
-#line 168 "vteseq-2.gperf"
+#line 167 "vteseq-2.gperf"
{"cl", vte_sequence_handler_cl},
-#line 222 "vteseq-2.gperf"
+#line 221 "vteseq-2.gperf"
{"ka", vte_sequence_handler_complain_key},
-#line 116 "vteseq-2.gperf"
+#line 115 "vteseq-2.gperf"
{"Fa", vte_sequence_handler_complain_key},
-#line 166 "vteseq-2.gperf"
+#line 165 "vteseq-2.gperf"
{"ce", vte_sequence_handler_ce},
-#line 253 "vteseq-2.gperf"
+#line 252 "vteseq-2.gperf"
{"mr", vte_sequence_handler_mr},
-#line 26 "vteseq-2.gperf"
+#line 25 "vteseq-2.gperf"
{"#3", vte_sequence_handler_complain_key},
-#line 110 "vteseq-2.gperf"
+#line 109 "vteseq-2.gperf"
{"FU", vte_sequence_handler_complain_key},
-#line 274 "vteseq-2.gperf"
+#line 273 "vteseq-2.gperf"
{"sc", vte_sequence_handler_sc},
-#line 193 "vteseq-2.gperf"
+#line 192 "vteseq-2.gperf"
{"im", vte_sequence_handler_im},
-#line 289 "vteseq-2.gperf"
+#line 288 "vteseq-2.gperf"
{"ve", vte_sequence_handler_ve},
-#line 24 "vteseq-2.gperf"
+#line 23 "vteseq-2.gperf"
{"#1", vte_sequence_handler_complain_key},
-#line 290 "vteseq-2.gperf"
+#line 289 "vteseq-2.gperf"
{"vi", vte_sequence_handler_vi},
-#line 165 "vteseq-2.gperf"
+#line 164 "vteseq-2.gperf"
{"cd", vte_sequence_handler_cd},
-#line 285 "vteseq-2.gperf"
+#line 284 "vteseq-2.gperf"
{"ue", vte_sequence_handler_ue},
-#line 174 "vteseq-2.gperf"
+#line 173 "vteseq-2.gperf"
{"dc", vte_sequence_handler_dc},
-#line 163 "vteseq-2.gperf"
+#line 162 "vteseq-2.gperf"
{"cb", vte_sequence_handler_cb},
-#line 215 "vteseq-2.gperf"
+#line 214 "vteseq-2.gperf"
{"kL", vte_sequence_handler_complain_key},
-#line 101 "vteseq-2.gperf"
+#line 100 "vteseq-2.gperf"
{"FL", vte_sequence_handler_complain_key},
-#line 42 "vteseq-2.gperf"
+#line 41 "vteseq-2.gperf"
{"%f", vte_sequence_handler_complain_key},
-#line 27 "vteseq-2.gperf"
+#line 26 "vteseq-2.gperf"
{"#4", vte_sequence_handler_complain_key},
-#line 167 "vteseq-2.gperf"
+#line 166 "vteseq-2.gperf"
{"ch", vte_sequence_handler_ch},
-#line 288 "vteseq-2.gperf"
+#line 287 "vteseq-2.gperf"
{"vb", vte_sequence_handler_vb},
-#line 275 "vteseq-2.gperf"
+#line 274 "vteseq-2.gperf"
{"se", vte_sequence_handler_se},
-#line 37 "vteseq-2.gperf"
+#line 36 "vteseq-2.gperf"
{"%a", vte_sequence_handler_complain_key},
-#line 173 "vteseq-2.gperf"
+#line 172 "vteseq-2.gperf"
{"cv", vte_sequence_handler_cv},
-#line 196 "vteseq-2.gperf"
+#line 195 "vteseq-2.gperf"
{"k0", vte_sequence_handler_complain_key},
-#line 175 "vteseq-2.gperf"
+#line 174 "vteseq-2.gperf"
{"dl", vte_sequence_handler_dl},
-#line 286 "vteseq-2.gperf"
+#line 285 "vteseq-2.gperf"
{"up", vte_sequence_handler_up},
-#line 57 "vteseq-2.gperf"
+#line 56 "vteseq-2.gperf"
{"*0", vte_sequence_handler_complain_key},
-#line 170 "vteseq-2.gperf"
+#line 169 "vteseq-2.gperf"
{"cr", vte_sequence_handler_cr},
-#line 159 "vteseq-2.gperf"
+#line 158 "vteseq-2.gperf"
{"bc", vte_sequence_handler_le},
-#line 157 "vteseq-2.gperf"
+#line 156 "vteseq-2.gperf"
{"al", vte_sequence_handler_al},
-#line 67 "vteseq-2.gperf"
+#line 66 "vteseq-2.gperf"
{"@0", vte_sequence_handler_complain_key},
-#line 100 "vteseq-2.gperf"
+#line 99 "vteseq-2.gperf"
{"FK", vte_sequence_handler_complain_key},
-#line 156 "vteseq-2.gperf"
+#line 155 "vteseq-2.gperf"
{"ae", vte_sequence_handler_ae},
-#line 214 "vteseq-2.gperf"
+#line 213 "vteseq-2.gperf"
{"kI", vte_sequence_handler_complain_key},
-#line 98 "vteseq-2.gperf"
+#line 97 "vteseq-2.gperf"
{"FI", vte_sequence_handler_complain_key},
-#line 209 "vteseq-2.gperf"
+#line 208 "vteseq-2.gperf"
{"kC", vte_sequence_handler_complain_key},
-#line 92 "vteseq-2.gperf"
+#line 91 "vteseq-2.gperf"
{"FC", vte_sequence_handler_complain_key},
-#line 22 "vteseq-2.gperf"
+#line 21 "vteseq-2.gperf"
{"!2", vte_sequence_handler_complain_key},
-#line 277 "vteseq-2.gperf"
+#line 276 "vteseq-2.gperf"
{"so", vte_sequence_handler_so},
-#line 134 "vteseq-2.gperf"
+#line 133 "vteseq-2.gperf"
{"IC", vte_sequence_handler_IC},
-#line 160 "vteseq-2.gperf"
+#line 159 "vteseq-2.gperf"
{"bl", vte_sequence_handler_bl},
-#line 184 "vteseq-2.gperf"
+#line 183 "vteseq-2.gperf"
{"fs", vte_sequence_handler_fs},
-#line 129 "vteseq-2.gperf"
+#line 128 "vteseq-2.gperf"
{"Fn", vte_sequence_handler_complain_key},
-#line 221 "vteseq-2.gperf"
+#line 220 "vteseq-2.gperf"
{"kT", vte_sequence_handler_complain_key},
-#line 109 "vteseq-2.gperf"
+#line 108 "vteseq-2.gperf"
{"FT", vte_sequence_handler_complain_key},
-#line 177 "vteseq-2.gperf"
+#line 176 "vteseq-2.gperf"
{"do", vte_sequence_handler_do},
-#line 278 "vteseq-2.gperf"
+#line 277 "vteseq-2.gperf"
{"sr", vte_sequence_handler_sr},
-#line 211 "vteseq-2.gperf"
+#line 210 "vteseq-2.gperf"
{"kE", vte_sequence_handler_complain_key},
-#line 94 "vteseq-2.gperf"
+#line 93 "vteseq-2.gperf"
{"FE", vte_sequence_handler_complain_key},
-#line 23 "vteseq-2.gperf"
+#line 22 "vteseq-2.gperf"
{"!3", vte_sequence_handler_complain_key},
-#line 191 "vteseq-2.gperf"
+#line 190 "vteseq-2.gperf"
{"ic", vte_sequence_handler_ic},
-#line 207 "vteseq-2.gperf"
+#line 206 "vteseq-2.gperf"
{"kA", vte_sequence_handler_complain_key},
-#line 90 "vteseq-2.gperf"
+#line 89 "vteseq-2.gperf"
{"FA", vte_sequence_handler_complain_key},
-#line 99 "vteseq-2.gperf"
+#line 98 "vteseq-2.gperf"
{"FJ", vte_sequence_handler_complain_key},
-#line 21 "vteseq-2.gperf"
+#line 20 "vteseq-2.gperf"
{"!1", vte_sequence_handler_complain_key},
-#line 47 "vteseq-2.gperf"
+#line 46 "vteseq-2.gperf"
{"&0", vte_sequence_handler_complain_key},
-#line 219 "vteseq-2.gperf"
+#line 218 "vteseq-2.gperf"
{"kR", vte_sequence_handler_complain_key},
-#line 107 "vteseq-2.gperf"
+#line 106 "vteseq-2.gperf"
{"FR", vte_sequence_handler_complain_key},
-#line 152 "vteseq-2.gperf"
+#line 151 "vteseq-2.gperf"
{"SR", vte_sequence_handler_SR},
-#line 281 "vteseq-2.gperf"
+#line 280 "vteseq-2.gperf"
{"te", vte_sequence_handler_noop},
-#line 254 "vteseq-2.gperf"
+#line 253 "vteseq-2.gperf"
{"nd", vte_sequence_handler_nd},
-#line 282 "vteseq-2.gperf"
+#line 281 "vteseq-2.gperf"
{"ti", vte_sequence_handler_noop},
-#line 186 "vteseq-2.gperf"
+#line 185 "vteseq-2.gperf"
{"ho", vte_sequence_handler_ho},
-#line 212 "vteseq-2.gperf"
+#line 211 "vteseq-2.gperf"
{"kF", vte_sequence_handler_complain_key},
-#line 95 "vteseq-2.gperf"
+#line 94 "vteseq-2.gperf"
{"FF", vte_sequence_handler_complain_key},
-#line 151 "vteseq-2.gperf"
+#line 150 "vteseq-2.gperf"
{"SF", vte_sequence_handler_SF},
-#line 276 "vteseq-2.gperf"
+#line 275 "vteseq-2.gperf"
{"sf", vte_sequence_handler_sf},
-#line 218 "vteseq-2.gperf"
+#line 217 "vteseq-2.gperf"
{"kP", vte_sequence_handler_complain_key},
-#line 105 "vteseq-2.gperf"
+#line 104 "vteseq-2.gperf"
{"FP", vte_sequence_handler_complain_key},
-#line 154 "vteseq-2.gperf"
+#line 153 "vteseq-2.gperf"
{"UP", vte_sequence_handler_UP},
-#line 80 "vteseq-2.gperf"
+#line 79 "vteseq-2.gperf"
{"DO", vte_sequence_handler_DO},
-#line 216 "vteseq-2.gperf"
+#line 215 "vteseq-2.gperf"
{"kM", vte_sequence_handler_complain_key},
-#line 102 "vteseq-2.gperf"
+#line 101 "vteseq-2.gperf"
{"FM", vte_sequence_handler_complain_key},
-#line 96 "vteseq-2.gperf"
+#line 95 "vteseq-2.gperf"
{"FG", vte_sequence_handler_complain_key},
-#line 179 "vteseq-2.gperf"
+#line 178 "vteseq-2.gperf"
{"eA", vte_sequence_handler_eA},
-#line 210 "vteseq-2.gperf"
+#line 209 "vteseq-2.gperf"
{"kD", vte_sequence_handler_complain_key},
-#line 93 "vteseq-2.gperf"
+#line 92 "vteseq-2.gperf"
{"FD", vte_sequence_handler_complain_key},
-#line 208 "vteseq-2.gperf"
+#line 207 "vteseq-2.gperf"
{"kB", vte_sequence_handler_complain_key},
-#line 91 "vteseq-2.gperf"
+#line 90 "vteseq-2.gperf"
{"FB", vte_sequence_handler_complain_key},
-#line 206 "vteseq-2.gperf"
+#line 205 "vteseq-2.gperf"
{"k;", vte_sequence_handler_complain_key},
-#line 148 "vteseq-2.gperf"
+#line 147 "vteseq-2.gperf"
{"RI", vte_sequence_handler_RI},
-#line 280 "vteseq-2.gperf"
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""},
+#line 279 "vteseq-2.gperf"
{"ta", vte_sequence_handler_ta},
-#line 79 "vteseq-2.gperf"
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 78 "vteseq-2.gperf"
{"DL", vte_sequence_handler_DL},
-#line 183 "vteseq-2.gperf"
+ {""}, {""}, {""}, {""}, {""}, {""},
+#line 182 "vteseq-2.gperf"
{"ff", vte_sequence_handler_noop},
-#line 77 "vteseq-2.gperf"
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""},
+#line 76 "vteseq-2.gperf"
{"AL", vte_sequence_handler_AL},
-#line 78 "vteseq-2.gperf"
+ {""},
+#line 77 "vteseq-2.gperf"
{"DC", vte_sequence_handler_DC},
-#line 140 "vteseq-2.gperf"
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+ {""}, {""}, {""}, {""},
+#line 139 "vteseq-2.gperf"
{"LE", vte_sequence_handler_LE}
};
@@ -548,711 +568,12 @@
{
register int key = vteseq_2_hash (str, len);
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
+ if (key <= MAX_HASH_VALUE && key >= 0)
{
- register const struct vteseq_2_struct *resword;
-
- if (key < 113)
- {
- if (key < 58)
- {
- switch (key - 2)
- {
- case 0:
- resword = &wordlist[0];
- goto compare;
- case 1:
- resword = &wordlist[1];
- goto compare;
- case 2:
- resword = &wordlist[2];
- goto compare;
- case 3:
- resword = &wordlist[3];
- goto compare;
- case 4:
- resword = &wordlist[4];
- goto compare;
- case 5:
- resword = &wordlist[5];
- goto compare;
- case 6:
- resword = &wordlist[6];
- goto compare;
- case 7:
- resword = &wordlist[7];
- goto compare;
- case 8:
- resword = &wordlist[8];
- goto compare;
- case 9:
- resword = &wordlist[9];
- goto compare;
- case 10:
- resword = &wordlist[10];
- goto compare;
- case 11:
- resword = &wordlist[11];
- goto compare;
- case 12:
- resword = &wordlist[12];
- goto compare;
- case 13:
- resword = &wordlist[13];
- goto compare;
- case 14:
- resword = &wordlist[14];
- goto compare;
- case 15:
- resword = &wordlist[15];
- goto compare;
- case 16:
- resword = &wordlist[16];
- goto compare;
- case 17:
- resword = &wordlist[17];
- goto compare;
- case 18:
- resword = &wordlist[18];
- goto compare;
- case 19:
- resword = &wordlist[19];
- goto compare;
- case 20:
- resword = &wordlist[20];
- goto compare;
- case 21:
- resword = &wordlist[21];
- goto compare;
- case 22:
- resword = &wordlist[22];
- goto compare;
- case 23:
- resword = &wordlist[23];
- goto compare;
- case 24:
- resword = &wordlist[24];
- goto compare;
- case 25:
- resword = &wordlist[25];
- goto compare;
- case 26:
- resword = &wordlist[26];
- goto compare;
- case 27:
- resword = &wordlist[27];
- goto compare;
- case 28:
- resword = &wordlist[28];
- goto compare;
- case 29:
- resword = &wordlist[29];
- goto compare;
- case 30:
- resword = &wordlist[30];
- goto compare;
- case 31:
- resword = &wordlist[31];
- goto compare;
- case 32:
- resword = &wordlist[32];
- goto compare;
- case 33:
- resword = &wordlist[33];
- goto compare;
- case 34:
- resword = &wordlist[34];
- goto compare;
- case 35:
- resword = &wordlist[35];
- goto compare;
- case 36:
- resword = &wordlist[36];
- goto compare;
- case 37:
- resword = &wordlist[37];
- goto compare;
- case 38:
- resword = &wordlist[38];
- goto compare;
- case 39:
- resword = &wordlist[39];
- goto compare;
- case 40:
- resword = &wordlist[40];
- goto compare;
- case 41:
- resword = &wordlist[41];
- goto compare;
- case 42:
- resword = &wordlist[42];
- goto compare;
- case 43:
- resword = &wordlist[43];
- goto compare;
- case 44:
- resword = &wordlist[44];
- goto compare;
- case 45:
- resword = &wordlist[45];
- goto compare;
- case 46:
- resword = &wordlist[46];
- goto compare;
- case 47:
- resword = &wordlist[47];
- goto compare;
- case 48:
- resword = &wordlist[48];
- goto compare;
- case 49:
- resword = &wordlist[49];
- goto compare;
- case 50:
- resword = &wordlist[50];
- goto compare;
- case 51:
- resword = &wordlist[51];
- goto compare;
- case 52:
- resword = &wordlist[52];
- goto compare;
- case 53:
- resword = &wordlist[53];
- goto compare;
- case 54:
- resword = &wordlist[54];
- goto compare;
- case 55:
- resword = &wordlist[55];
- goto compare;
- }
- }
- else
- {
- switch (key - 58)
- {
- case 0:
- resword = &wordlist[56];
- goto compare;
- case 1:
- resword = &wordlist[57];
- goto compare;
- case 2:
- resword = &wordlist[58];
- goto compare;
- case 3:
- resword = &wordlist[59];
- goto compare;
- case 4:
- resword = &wordlist[60];
- goto compare;
- case 5:
- resword = &wordlist[61];
- goto compare;
- case 6:
- resword = &wordlist[62];
- goto compare;
- case 7:
- resword = &wordlist[63];
- goto compare;
- case 8:
- resword = &wordlist[64];
- goto compare;
- case 9:
- resword = &wordlist[65];
- goto compare;
- case 10:
- resword = &wordlist[66];
- goto compare;
- case 11:
- resword = &wordlist[67];
- goto compare;
- case 12:
- resword = &wordlist[68];
- goto compare;
- case 13:
- resword = &wordlist[69];
- goto compare;
- case 14:
- resword = &wordlist[70];
- goto compare;
- case 15:
- resword = &wordlist[71];
- goto compare;
- case 16:
- resword = &wordlist[72];
- goto compare;
- case 17:
- resword = &wordlist[73];
- goto compare;
- case 18:
- resword = &wordlist[74];
- goto compare;
- case 19:
- resword = &wordlist[75];
- goto compare;
- case 20:
- resword = &wordlist[76];
- goto compare;
- case 21:
- resword = &wordlist[77];
- goto compare;
- case 22:
- resword = &wordlist[78];
- goto compare;
- case 23:
- resword = &wordlist[79];
- goto compare;
- case 24:
- resword = &wordlist[80];
- goto compare;
- case 25:
- resword = &wordlist[81];
- goto compare;
- case 26:
- resword = &wordlist[82];
- goto compare;
- case 27:
- resword = &wordlist[83];
- goto compare;
- case 28:
- resword = &wordlist[84];
- goto compare;
- case 29:
- resword = &wordlist[85];
- goto compare;
- case 30:
- resword = &wordlist[86];
- goto compare;
- case 31:
- resword = &wordlist[87];
- goto compare;
- case 32:
- resword = &wordlist[88];
- goto compare;
- case 33:
- resword = &wordlist[89];
- goto compare;
- case 34:
- resword = &wordlist[90];
- goto compare;
- case 35:
- resword = &wordlist[91];
- goto compare;
- case 36:
- resword = &wordlist[92];
- goto compare;
- case 37:
- resword = &wordlist[93];
- goto compare;
- case 38:
- resword = &wordlist[94];
- goto compare;
- case 39:
- resword = &wordlist[95];
- goto compare;
- case 40:
- resword = &wordlist[96];
- goto compare;
- case 41:
- resword = &wordlist[97];
- goto compare;
- case 42:
- resword = &wordlist[98];
- goto compare;
- case 43:
- resword = &wordlist[99];
- goto compare;
- case 44:
- resword = &wordlist[100];
- goto compare;
- case 45:
- resword = &wordlist[101];
- goto compare;
- case 46:
- resword = &wordlist[102];
- goto compare;
- case 47:
- resword = &wordlist[103];
- goto compare;
- case 48:
- resword = &wordlist[104];
- goto compare;
- case 49:
- resword = &wordlist[105];
- goto compare;
- case 50:
- resword = &wordlist[106];
- goto compare;
- case 51:
- resword = &wordlist[107];
- goto compare;
- case 52:
- resword = &wordlist[108];
- goto compare;
- case 53:
- resword = &wordlist[109];
- goto compare;
- case 54:
- resword = &wordlist[110];
- goto compare;
- }
- }
- }
- else
- {
- if (key < 168)
- {
- switch (key - 113)
- {
- case 0:
- resword = &wordlist[111];
- goto compare;
- case 1:
- resword = &wordlist[112];
- goto compare;
- case 2:
- resword = &wordlist[113];
- goto compare;
- case 3:
- resword = &wordlist[114];
- goto compare;
- case 4:
- resword = &wordlist[115];
- goto compare;
- case 5:
- resword = &wordlist[116];
- goto compare;
- case 6:
- resword = &wordlist[117];
- goto compare;
- case 7:
- resword = &wordlist[118];
- goto compare;
- case 8:
- resword = &wordlist[119];
- goto compare;
- case 9:
- resword = &wordlist[120];
- goto compare;
- case 10:
- resword = &wordlist[121];
- goto compare;
- case 11:
- resword = &wordlist[122];
- goto compare;
- case 12:
- resword = &wordlist[123];
- goto compare;
- case 13:
- resword = &wordlist[124];
- goto compare;
- case 14:
- resword = &wordlist[125];
- goto compare;
- case 15:
- resword = &wordlist[126];
- goto compare;
- case 16:
- resword = &wordlist[127];
- goto compare;
- case 17:
- resword = &wordlist[128];
- goto compare;
- case 18:
- resword = &wordlist[129];
- goto compare;
- case 19:
- resword = &wordlist[130];
- goto compare;
- case 20:
- resword = &wordlist[131];
- goto compare;
- case 21:
- resword = &wordlist[132];
- goto compare;
- case 22:
- resword = &wordlist[133];
- goto compare;
- case 23:
- resword = &wordlist[134];
- goto compare;
- case 24:
- resword = &wordlist[135];
- goto compare;
- case 25:
- resword = &wordlist[136];
- goto compare;
- case 26:
- resword = &wordlist[137];
- goto compare;
- case 27:
- resword = &wordlist[138];
- goto compare;
- case 28:
- resword = &wordlist[139];
- goto compare;
- case 29:
- resword = &wordlist[140];
- goto compare;
- case 30:
- resword = &wordlist[141];
- goto compare;
- case 31:
- resword = &wordlist[142];
- goto compare;
- case 32:
- resword = &wordlist[143];
- goto compare;
- case 33:
- resword = &wordlist[144];
- goto compare;
- case 34:
- resword = &wordlist[145];
- goto compare;
- case 35:
- resword = &wordlist[146];
- goto compare;
- case 36:
- resword = &wordlist[147];
- goto compare;
- case 37:
- resword = &wordlist[148];
- goto compare;
- case 38:
- resword = &wordlist[149];
- goto compare;
- case 39:
- resword = &wordlist[150];
- goto compare;
- case 40:
- resword = &wordlist[151];
- goto compare;
- case 41:
- resword = &wordlist[152];
- goto compare;
- case 42:
- resword = &wordlist[153];
- goto compare;
- case 43:
- resword = &wordlist[154];
- goto compare;
- case 44:
- resword = &wordlist[155];
- goto compare;
- case 45:
- resword = &wordlist[156];
- goto compare;
- case 46:
- resword = &wordlist[157];
- goto compare;
- case 47:
- resword = &wordlist[158];
- goto compare;
- case 48:
- resword = &wordlist[159];
- goto compare;
- case 49:
- resword = &wordlist[160];
- goto compare;
- case 50:
- resword = &wordlist[161];
- goto compare;
- case 51:
- resword = &wordlist[162];
- goto compare;
- case 52:
- resword = &wordlist[163];
- goto compare;
- case 53:
- resword = &wordlist[164];
- goto compare;
- case 54:
- resword = &wordlist[165];
- goto compare;
- }
- }
- else
- {
- switch (key - 168)
- {
- case 0:
- resword = &wordlist[166];
- goto compare;
- case 1:
- resword = &wordlist[167];
- goto compare;
- case 2:
- resword = &wordlist[168];
- goto compare;
- case 3:
- resword = &wordlist[169];
- goto compare;
- case 4:
- resword = &wordlist[170];
- goto compare;
- case 5:
- resword = &wordlist[171];
- goto compare;
- case 6:
- resword = &wordlist[172];
- goto compare;
- case 7:
- resword = &wordlist[173];
- goto compare;
- case 8:
- resword = &wordlist[174];
- goto compare;
- case 9:
- resword = &wordlist[175];
- goto compare;
- case 10:
- resword = &wordlist[176];
- goto compare;
- case 11:
- resword = &wordlist[177];
- goto compare;
- case 12:
- resword = &wordlist[178];
- goto compare;
- case 13:
- resword = &wordlist[179];
- goto compare;
- case 14:
- resword = &wordlist[180];
- goto compare;
- case 15:
- resword = &wordlist[181];
- goto compare;
- case 16:
- resword = &wordlist[182];
- goto compare;
- case 17:
- resword = &wordlist[183];
- goto compare;
- case 18:
- resword = &wordlist[184];
- goto compare;
- case 19:
- resword = &wordlist[185];
- goto compare;
- case 20:
- resword = &wordlist[186];
- goto compare;
- case 21:
- resword = &wordlist[187];
- goto compare;
- case 22:
- resword = &wordlist[188];
- goto compare;
- case 23:
- resword = &wordlist[189];
- goto compare;
- case 24:
- resword = &wordlist[190];
- goto compare;
- case 25:
- resword = &wordlist[191];
- goto compare;
- case 26:
- resword = &wordlist[192];
- goto compare;
- case 27:
- resword = &wordlist[193];
- goto compare;
- case 28:
- resword = &wordlist[194];
- goto compare;
- case 29:
- resword = &wordlist[195];
- goto compare;
- case 30:
- resword = &wordlist[196];
- goto compare;
- case 31:
- resword = &wordlist[197];
- goto compare;
- case 32:
- resword = &wordlist[198];
- goto compare;
- case 33:
- resword = &wordlist[199];
- goto compare;
- case 34:
- resword = &wordlist[200];
- goto compare;
- case 35:
- resword = &wordlist[201];
- goto compare;
- case 36:
- resword = &wordlist[202];
- goto compare;
- case 37:
- resword = &wordlist[203];
- goto compare;
- case 38:
- resword = &wordlist[204];
- goto compare;
- case 39:
- resword = &wordlist[205];
- goto compare;
- case 40:
- resword = &wordlist[206];
- goto compare;
- case 41:
- resword = &wordlist[207];
- goto compare;
- case 42:
- resword = &wordlist[208];
- goto compare;
- case 43:
- resword = &wordlist[209];
- goto compare;
- case 44:
- resword = &wordlist[210];
- goto compare;
- case 45:
- resword = &wordlist[211];
- goto compare;
- case 46:
- resword = &wordlist[212];
- goto compare;
- case 47:
- resword = &wordlist[213];
- goto compare;
- case 48:
- resword = &wordlist[214];
- goto compare;
- case 78:
- resword = &wordlist[215];
- goto compare;
- case 130:
- resword = &wordlist[216];
- goto compare;
- case 137:
- resword = &wordlist[217];
- goto compare;
- case 149:
- resword = &wordlist[218];
- goto compare;
- case 151:
- resword = &wordlist[219];
- goto compare;
- case 192:
- resword = &wordlist[220];
- goto compare;
- }
- }
- }
- return 0;
- compare:
- {
- register const char *s = resword->seq;
+ register const char *s = wordlist[key].seq;
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
- return resword;
- }
+ if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
+ return &wordlist[key];
}
}
return 0;
Modified: trunk/src/vteseq-2.gperf
==============================================================================
--- trunk/src/vteseq-2.gperf (original)
+++ trunk/src/vteseq-2.gperf Wed Nov 26 20:38:33 2008
@@ -4,7 +4,6 @@
%language=ANSI-C
%includes
%enum
-%switch=4
%readonly-tables
%define slot-name seq
%define hash-function-name vteseq_2_hash
Modified: trunk/src/vteseq-n.c
==============================================================================
--- trunk/src/vteseq-n.c (original)
+++ trunk/src/vteseq-n.c Wed Nov 26 20:38:33 2008
@@ -29,7 +29,7 @@
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf gnu org>."
#endif
-#line 17 "vteseq-n.gperf"
+#line 16 "vteseq-n.gperf"
struct vteseq_n_struct {
int seq;
VteTerminalSequenceHandler handler;
@@ -81,66 +81,66 @@
struct vteseq_n_pool_t
{
- char vteseq_n_pool_str0[sizeof("set-mode")];
- char vteseq_n_pool_str1[sizeof("save-mode")];
- char vteseq_n_pool_str2[sizeof("soft-reset")];
- char vteseq_n_pool_str3[sizeof("scroll-up")];
- char vteseq_n_pool_str4[sizeof("cursor-up")];
- char vteseq_n_pool_str5[sizeof("decset")];
- char vteseq_n_pool_str6[sizeof("set-icon-title")];
- char vteseq_n_pool_str7[sizeof("decreset")];
- char vteseq_n_pool_str8[sizeof("set-window-title")];
- char vteseq_n_pool_str9[sizeof("cursor-next-line")];
- char vteseq_n_pool_str10[sizeof("cursor-lower-left")];
- char vteseq_n_pool_str11[sizeof("save-cursor")];
- char vteseq_n_pool_str12[sizeof("next-line")];
- char vteseq_n_pool_str13[sizeof("screen-alignment-test")];
- char vteseq_n_pool_str14[sizeof("cursor-preceding-line")];
- char vteseq_n_pool_str15[sizeof("tab-set")];
- char vteseq_n_pool_str16[sizeof("set-icon-and-window-title")];
- char vteseq_n_pool_str17[sizeof("cursor-character-absolute")];
- char vteseq_n_pool_str18[sizeof("device-status-report")];
- char vteseq_n_pool_str19[sizeof("character-position-absolute")];
- char vteseq_n_pool_str20[sizeof("cursor-forward")];
- char vteseq_n_pool_str21[sizeof("cursor-backward")];
- char vteseq_n_pool_str22[sizeof("dec-device-status-report")];
- char vteseq_n_pool_str23[sizeof("delete-lines")];
- char vteseq_n_pool_str24[sizeof("tab-clear")];
- char vteseq_n_pool_str25[sizeof("character-attributes")];
- char vteseq_n_pool_str26[sizeof("scroll-down")];
- char vteseq_n_pool_str27[sizeof("cursor-down")];
- char vteseq_n_pool_str28[sizeof("delete-characters")];
- char vteseq_n_pool_str29[sizeof("normal-keypad")];
- char vteseq_n_pool_str30[sizeof("reset-mode")];
- char vteseq_n_pool_str31[sizeof("cursor-position")];
- char vteseq_n_pool_str32[sizeof("restore-mode")];
- char vteseq_n_pool_str33[sizeof("utf-8-character-set")];
- char vteseq_n_pool_str34[sizeof("send-primary-device-attributes")];
- char vteseq_n_pool_str35[sizeof("set-scrolling-region")];
- char vteseq_n_pool_str36[sizeof("send-secondary-device-attributes")];
- char vteseq_n_pool_str37[sizeof("application-keypad")];
- char vteseq_n_pool_str38[sizeof("iso8859-1-character-set")];
- char vteseq_n_pool_str39[sizeof("line-position-absolute")];
- char vteseq_n_pool_str40[sizeof("insert-lines")];
- char vteseq_n_pool_str41[sizeof("cursor-forward-tabulation")];
- char vteseq_n_pool_str42[sizeof("restore-cursor")];
- char vteseq_n_pool_str43[sizeof("index")];
- char vteseq_n_pool_str44[sizeof("full-reset")];
- char vteseq_n_pool_str45[sizeof("vte_sequence_handlers_others[] = {")];
- char vteseq_n_pool_str46[sizeof("erase-in-line")];
- char vteseq_n_pool_str47[sizeof("window-manipulation")];
- char vteseq_n_pool_str48[sizeof("horizontal-and-vertical-position")];
- char vteseq_n_pool_str49[sizeof("erase-in-display")];
- char vteseq_n_pool_str50[sizeof("vertical-tab")];
- char vteseq_n_pool_str51[sizeof("insert-blank-characters")];
- char vteseq_n_pool_str52[sizeof("return-terminal-id")];
- char vteseq_n_pool_str53[sizeof("cursor-back-tab")];
- char vteseq_n_pool_str54[sizeof("return-terminal-status")];
- char vteseq_n_pool_str55[sizeof("reverse-index")];
- char vteseq_n_pool_str56[sizeof("form-feed")];
- char vteseq_n_pool_str57[sizeof("request-terminal-parameters")];
- char vteseq_n_pool_str58[sizeof("linux-console-cursor-attributes")];
- char vteseq_n_pool_str59[sizeof("erase-characters")];
+ char vteseq_n_pool_str8[sizeof("set-mode")];
+ char vteseq_n_pool_str9[sizeof("save-mode")];
+ char vteseq_n_pool_str10[sizeof("soft-reset")];
+ char vteseq_n_pool_str11[sizeof("scroll-up")];
+ char vteseq_n_pool_str12[sizeof("cursor-up")];
+ char vteseq_n_pool_str13[sizeof("decset")];
+ char vteseq_n_pool_str14[sizeof("set-icon-title")];
+ char vteseq_n_pool_str15[sizeof("decreset")];
+ char vteseq_n_pool_str16[sizeof("set-window-title")];
+ char vteseq_n_pool_str17[sizeof("cursor-next-line")];
+ char vteseq_n_pool_str18[sizeof("cursor-lower-left")];
+ char vteseq_n_pool_str19[sizeof("save-cursor")];
+ char vteseq_n_pool_str20[sizeof("next-line")];
+ char vteseq_n_pool_str21[sizeof("screen-alignment-test")];
+ char vteseq_n_pool_str22[sizeof("cursor-preceding-line")];
+ char vteseq_n_pool_str23[sizeof("tab-set")];
+ char vteseq_n_pool_str25[sizeof("set-icon-and-window-title")];
+ char vteseq_n_pool_str26[sizeof("cursor-character-absolute")];
+ char vteseq_n_pool_str27[sizeof("device-status-report")];
+ char vteseq_n_pool_str28[sizeof("character-position-absolute")];
+ char vteseq_n_pool_str29[sizeof("cursor-forward")];
+ char vteseq_n_pool_str30[sizeof("cursor-backward")];
+ char vteseq_n_pool_str31[sizeof("dec-device-status-report")];
+ char vteseq_n_pool_str32[sizeof("delete-lines")];
+ char vteseq_n_pool_str33[sizeof("tab-clear")];
+ char vteseq_n_pool_str34[sizeof("character-attributes")];
+ char vteseq_n_pool_str35[sizeof("scroll-down")];
+ char vteseq_n_pool_str36[sizeof("cursor-down")];
+ char vteseq_n_pool_str37[sizeof("delete-characters")];
+ char vteseq_n_pool_str38[sizeof("normal-keypad")];
+ char vteseq_n_pool_str39[sizeof("reset-mode")];
+ char vteseq_n_pool_str40[sizeof("cursor-position")];
+ char vteseq_n_pool_str41[sizeof("restore-mode")];
+ char vteseq_n_pool_str42[sizeof("utf-8-character-set")];
+ char vteseq_n_pool_str43[sizeof("send-primary-device-attributes")];
+ char vteseq_n_pool_str44[sizeof("set-scrolling-region")];
+ char vteseq_n_pool_str45[sizeof("send-secondary-device-attributes")];
+ char vteseq_n_pool_str46[sizeof("application-keypad")];
+ char vteseq_n_pool_str47[sizeof("iso8859-1-character-set")];
+ char vteseq_n_pool_str48[sizeof("line-position-absolute")];
+ char vteseq_n_pool_str49[sizeof("insert-lines")];
+ char vteseq_n_pool_str50[sizeof("cursor-forward-tabulation")];
+ char vteseq_n_pool_str51[sizeof("restore-cursor")];
+ char vteseq_n_pool_str52[sizeof("index")];
+ char vteseq_n_pool_str53[sizeof("full-reset")];
+ char vteseq_n_pool_str54[sizeof("vte_sequence_handlers_others[] = {")];
+ char vteseq_n_pool_str55[sizeof("erase-in-line")];
+ char vteseq_n_pool_str56[sizeof("window-manipulation")];
+ char vteseq_n_pool_str57[sizeof("horizontal-and-vertical-position")];
+ char vteseq_n_pool_str58[sizeof("erase-in-display")];
+ char vteseq_n_pool_str59[sizeof("vertical-tab")];
+ char vteseq_n_pool_str60[sizeof("insert-blank-characters")];
+ char vteseq_n_pool_str61[sizeof("return-terminal-id")];
+ char vteseq_n_pool_str63[sizeof("cursor-back-tab")];
+ char vteseq_n_pool_str64[sizeof("return-terminal-status")];
+ char vteseq_n_pool_str65[sizeof("reverse-index")];
+ char vteseq_n_pool_str66[sizeof("form-feed")];
+ char vteseq_n_pool_str69[sizeof("request-terminal-parameters")];
+ char vteseq_n_pool_str70[sizeof("linux-console-cursor-attributes")];
+ char vteseq_n_pool_str71[sizeof("erase-characters")];
};
static const struct vteseq_n_pool_t vteseq_n_pool_contents =
{
@@ -224,597 +224,155 @@
MAX_HASH_VALUE = 71
};
+ static const unsigned char lengthtable[] =
+ {
+ 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 10, 9, 9, 6,
+ 14, 8, 16, 16, 17, 11, 9, 21, 21, 7, 0, 25, 25, 20,
+ 27, 14, 15, 24, 12, 9, 20, 11, 11, 17, 13, 10, 15, 12,
+ 19, 30, 20, 32, 18, 23, 22, 12, 25, 14, 5, 10, 34, 13,
+ 19, 32, 16, 12, 23, 18, 0, 15, 22, 13, 9, 0, 0, 27,
+ 31, 16
+ };
static const struct vteseq_n_struct wordlist[] =
{
-#line 31 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str0, vte_sequence_handler_set_mode},
-#line 35 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str1, vte_sequence_handler_save_mode},
-#line 41 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str2, vte_sequence_handler_soft_reset},
-#line 36 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str3, vte_sequence_handler_scroll_up},
-#line 32 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str4, vte_sequence_handler_UP},
-#line 27 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str5, vte_sequence_handler_decset},
-#line 63 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str6, vte_sequence_handler_set_icon_title},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
#line 30 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str7, vte_sequence_handler_decreset},
-#line 73 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str8, vte_sequence_handler_set_window_title},
-#line 70 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str9, vte_sequence_handler_cursor_next_line},
-#line 74 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str10, vte_sequence_handler_cursor_lower_left},
-#line 44 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str11, vte_sequence_handler_sc},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str8, vte_sequence_handler_set_mode},
#line 34 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str12, vte_sequence_handler_next_line},
-#line 90 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str13, vte_sequence_handler_screen_alignment_test},
-#line 88 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str14, vte_sequence_handler_cursor_preceding_line},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str9, vte_sequence_handler_save_mode},
+#line 40 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str10, vte_sequence_handler_soft_reset},
+#line 35 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str11, vte_sequence_handler_scroll_up},
+#line 31 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str12, vte_sequence_handler_UP},
+#line 26 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str13, vte_sequence_handler_decset},
+#line 62 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str14, vte_sequence_handler_set_icon_title},
#line 29 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str15, vte_sequence_handler_st},
-#line 115 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str16, vte_sequence_handler_set_icon_and_window_title},
-#line 112 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str17, vte_sequence_handler_cursor_character_absolute},
-#line 84 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str18, vte_sequence_handler_device_status_report},
-#line 117 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str19, vte_sequence_handler_character_position_absolute},
-#line 60 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str20, vte_sequence_handler_RI},
-#line 65 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str21, vte_sequence_handler_LE},
-#line 109 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str22, vte_sequence_handler_dec_device_status_report},
-#line 47 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str23, vte_sequence_handler_delete_lines},
-#line 37 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str24, vte_sequence_handler_tab_clear},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str15, vte_sequence_handler_decreset},
+#line 72 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str16, vte_sequence_handler_set_window_title},
+#line 69 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str17, vte_sequence_handler_cursor_next_line},
+#line 73 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str18, vte_sequence_handler_cursor_lower_left},
+#line 43 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str19, vte_sequence_handler_sc},
+#line 33 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str20, vte_sequence_handler_next_line},
+#line 89 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str21, vte_sequence_handler_screen_alignment_test},
+#line 87 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str22, vte_sequence_handler_cursor_preceding_line},
+#line 28 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str23, vte_sequence_handler_st},
+ {-1},
+#line 114 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str25, vte_sequence_handler_set_icon_and_window_title},
+#line 111 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str26, vte_sequence_handler_cursor_character_absolute},
#line 83 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str25, vte_sequence_handler_character_attributes},
-#line 45 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str26, vte_sequence_handler_scroll_down},
-#line 42 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str27, vte_sequence_handler_DO},
-#line 75 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str28, vte_sequence_handler_DC},
-#line 55 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str29, vte_sequence_handler_normal_keypad},
-#line 40 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str30, vte_sequence_handler_reset_mode},
-#line 66 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str31, vte_sequence_handler_cursor_position},
-#line 50 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str32, vte_sequence_handler_restore_mode},
-#line 80 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str33, vte_sequence_handler_utf_8_charset},
-#line 126 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str34, vte_sequence_handler_send_primary_device_attributes},
-#line 85 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str35, vte_sequence_handler_set_scrolling_region},
-#line 129 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str36, vte_sequence_handler_send_secondary_device_attributes},
-#line 76 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str37, vte_sequence_handler_application_keypad},
-#line 102 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str38, vte_sequence_handler_local_charset},
-#line 95 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str39, vte_sequence_handler_line_position_absolute},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str27, vte_sequence_handler_device_status_report},
+#line 116 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str28, vte_sequence_handler_character_position_absolute},
+#line 59 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str29, vte_sequence_handler_RI},
+#line 64 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str30, vte_sequence_handler_LE},
+#line 108 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str31, vte_sequence_handler_dec_device_status_report},
+#line 46 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str32, vte_sequence_handler_delete_lines},
+#line 36 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str33, vte_sequence_handler_tab_clear},
+#line 82 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str34, vte_sequence_handler_character_attributes},
+#line 44 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str35, vte_sequence_handler_scroll_down},
+#line 41 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str36, vte_sequence_handler_DO},
+#line 74 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str37, vte_sequence_handler_DC},
+#line 54 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str38, vte_sequence_handler_normal_keypad},
+#line 39 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str39, vte_sequence_handler_reset_mode},
+#line 65 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str40, vte_sequence_handler_cursor_position},
#line 49 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str40, vte_sequence_handler_insert_lines},
-#line 113 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str41, vte_sequence_handler_ta},
-#line 62 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str42, vte_sequence_handler_rc},
-#line 26 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str43, vte_sequence_handler_index},
-#line 38 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str44, vte_sequence_handler_full_reset},
-#line 23 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str45},
-#line 53 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str46, vte_sequence_handler_erase_in_line},
-#line 81 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str47, vte_sequence_handler_window_manipulation},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str41, vte_sequence_handler_restore_mode},
+#line 79 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str42, vte_sequence_handler_utf_8_charset},
+#line 125 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str43, vte_sequence_handler_send_primary_device_attributes},
+#line 84 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str44, vte_sequence_handler_set_scrolling_region},
#line 128 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str48, vte_sequence_handler_horizontal_and_vertical_position},
-#line 72 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str49, vte_sequence_handler_erase_in_display},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str45, vte_sequence_handler_send_secondary_device_attributes},
+#line 75 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str46, vte_sequence_handler_application_keypad},
+#line 101 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str47, vte_sequence_handler_local_charset},
+#line 94 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str48, vte_sequence_handler_line_position_absolute},
+#line 48 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str49, vte_sequence_handler_insert_lines},
+#line 112 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str50, vte_sequence_handler_ta},
+#line 61 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str51, vte_sequence_handler_rc},
+#line 25 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str52, vte_sequence_handler_index},
+#line 37 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str53, vte_sequence_handler_full_reset},
+#line 22 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str54},
#line 52 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str50, vte_sequence_handler_vertical_tab},
-#line 99 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str51, vte_sequence_handler_insert_blank_characters},
-#line 78 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str52, vte_sequence_handler_return_terminal_id},
-#line 64 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str53, vte_sequence_handler_bt},
-#line 96 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str54, vte_sequence_handler_return_terminal_status},
-#line 56 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str55, vte_sequence_handler_reverse_index},
-#line 33 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str56, vte_sequence_handler_form_feed},
-#line 118 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str57, vte_sequence_handler_request_terminal_parameters},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str55, vte_sequence_handler_erase_in_line},
+#line 80 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str56, vte_sequence_handler_window_manipulation},
#line 127 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str58, vte_sequence_handler_noop},
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str57, vte_sequence_handler_horizontal_and_vertical_position},
#line 71 "vteseq-n.gperf"
- {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str59, vte_sequence_handler_erase_characters}
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str58, vte_sequence_handler_erase_in_display},
+#line 51 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str59, vte_sequence_handler_vertical_tab},
+#line 98 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str60, vte_sequence_handler_insert_blank_characters},
+#line 77 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str61, vte_sequence_handler_return_terminal_id},
+ {-1},
+#line 63 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str63, vte_sequence_handler_bt},
+#line 95 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str64, vte_sequence_handler_return_terminal_status},
+#line 55 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str65, vte_sequence_handler_reverse_index},
+#line 32 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str66, vte_sequence_handler_form_feed},
+ {-1}, {-1},
+#line 117 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str69, vte_sequence_handler_request_terminal_parameters},
+#line 126 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str70, vte_sequence_handler_noop},
+#line 70 "vteseq-n.gperf"
+ {(int)(long)&((struct vteseq_n_pool_t *)0)->vteseq_n_pool_str71, vte_sequence_handler_erase_characters}
};
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register int key = vteseq_n_hash (str, len);
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- register const struct vteseq_n_struct *resword;
-
- if (key < 39)
- {
- if (key < 23)
- {
- switch (key - 8)
- {
- case 0:
- if (len == 8)
- {
- resword = &wordlist[0];
- goto compare;
- }
- break;
- case 1:
- if (len == 9)
- {
- resword = &wordlist[1];
- goto compare;
- }
- break;
- case 2:
- if (len == 10)
- {
- resword = &wordlist[2];
- goto compare;
- }
- break;
- case 3:
- if (len == 9)
- {
- resword = &wordlist[3];
- goto compare;
- }
- break;
- case 4:
- if (len == 9)
- {
- resword = &wordlist[4];
- goto compare;
- }
- break;
- case 5:
- if (len == 6)
- {
- resword = &wordlist[5];
- goto compare;
- }
- break;
- case 6:
- if (len == 14)
- {
- resword = &wordlist[6];
- goto compare;
- }
- break;
- case 7:
- if (len == 8)
- {
- resword = &wordlist[7];
- goto compare;
- }
- break;
- case 8:
- if (len == 16)
- {
- resword = &wordlist[8];
- goto compare;
- }
- break;
- case 9:
- if (len == 16)
- {
- resword = &wordlist[9];
- goto compare;
- }
- break;
- case 10:
- if (len == 17)
- {
- resword = &wordlist[10];
- goto compare;
- }
- break;
- case 11:
- if (len == 11)
- {
- resword = &wordlist[11];
- goto compare;
- }
- break;
- case 12:
- if (len == 9)
- {
- resword = &wordlist[12];
- goto compare;
- }
- break;
- case 13:
- if (len == 21)
- {
- resword = &wordlist[13];
- goto compare;
- }
- break;
- case 14:
- if (len == 21)
- {
- resword = &wordlist[14];
- goto compare;
- }
- break;
- }
- }
- else
- {
- switch (key - 23)
- {
- case 0:
- if (len == 7)
- {
- resword = &wordlist[15];
- goto compare;
- }
- break;
- case 2:
- if (len == 25)
- {
- resword = &wordlist[16];
- goto compare;
- }
- break;
- case 3:
- if (len == 25)
- {
- resword = &wordlist[17];
- goto compare;
- }
- break;
- case 4:
- if (len == 20)
- {
- resword = &wordlist[18];
- goto compare;
- }
- break;
- case 5:
- if (len == 27)
- {
- resword = &wordlist[19];
- goto compare;
- }
- break;
- case 6:
- if (len == 14)
- {
- resword = &wordlist[20];
- goto compare;
- }
- break;
- case 7:
- if (len == 15)
- {
- resword = &wordlist[21];
- goto compare;
- }
- break;
- case 8:
- if (len == 24)
- {
- resword = &wordlist[22];
- goto compare;
- }
- break;
- case 9:
- if (len == 12)
- {
- resword = &wordlist[23];
- goto compare;
- }
- break;
- case 10:
- if (len == 9)
- {
- resword = &wordlist[24];
- goto compare;
- }
- break;
- case 11:
- if (len == 20)
- {
- resword = &wordlist[25];
- goto compare;
- }
- break;
- case 12:
- if (len == 11)
- {
- resword = &wordlist[26];
- goto compare;
- }
- break;
- case 13:
- if (len == 11)
- {
- resword = &wordlist[27];
- goto compare;
- }
- break;
- case 14:
- if (len == 17)
- {
- resword = &wordlist[28];
- goto compare;
- }
- break;
- case 15:
- if (len == 13)
- {
- resword = &wordlist[29];
- goto compare;
- }
- break;
- }
- }
- }
- else
- {
- if (key < 54)
- {
- switch (key - 39)
- {
- case 0:
- if (len == 10)
- {
- resword = &wordlist[30];
- goto compare;
- }
- break;
- case 1:
- if (len == 15)
- {
- resword = &wordlist[31];
- goto compare;
- }
- break;
- case 2:
- if (len == 12)
- {
- resword = &wordlist[32];
- goto compare;
- }
- break;
- case 3:
- if (len == 19)
- {
- resword = &wordlist[33];
- goto compare;
- }
- break;
- case 4:
- if (len == 30)
- {
- resword = &wordlist[34];
- goto compare;
- }
- break;
- case 5:
- if (len == 20)
- {
- resword = &wordlist[35];
- goto compare;
- }
- break;
- case 6:
- if (len == 32)
- {
- resword = &wordlist[36];
- goto compare;
- }
- break;
- case 7:
- if (len == 18)
- {
- resword = &wordlist[37];
- goto compare;
- }
- break;
- case 8:
- if (len == 23)
- {
- resword = &wordlist[38];
- goto compare;
- }
- break;
- case 9:
- if (len == 22)
- {
- resword = &wordlist[39];
- goto compare;
- }
- break;
- case 10:
- if (len == 12)
- {
- resword = &wordlist[40];
- goto compare;
- }
- break;
- case 11:
- if (len == 25)
- {
- resword = &wordlist[41];
- goto compare;
- }
- break;
- case 12:
- if (len == 14)
- {
- resword = &wordlist[42];
- goto compare;
- }
- break;
- case 13:
- if (len == 5)
- {
- resword = &wordlist[43];
- goto compare;
- }
- break;
- case 14:
- if (len == 10)
- {
- resword = &wordlist[44];
- goto compare;
- }
- break;
- }
- }
- else
- {
- switch (key - 54)
- {
- case 0:
- if (len == 34)
- {
- resword = &wordlist[45];
- goto compare;
- }
- break;
- case 1:
- if (len == 13)
- {
- resword = &wordlist[46];
- goto compare;
- }
- break;
- case 2:
- if (len == 19)
- {
- resword = &wordlist[47];
- goto compare;
- }
- break;
- case 3:
- if (len == 32)
- {
- resword = &wordlist[48];
- goto compare;
- }
- break;
- case 4:
- if (len == 16)
- {
- resword = &wordlist[49];
- goto compare;
- }
- break;
- case 5:
- if (len == 12)
- {
- resword = &wordlist[50];
- goto compare;
- }
- break;
- case 6:
- if (len == 23)
- {
- resword = &wordlist[51];
- goto compare;
- }
- break;
- case 7:
- if (len == 18)
- {
- resword = &wordlist[52];
- goto compare;
- }
- break;
- case 9:
- if (len == 15)
- {
- resword = &wordlist[53];
- goto compare;
- }
- break;
- case 10:
- if (len == 22)
- {
- resword = &wordlist[54];
- goto compare;
- }
- break;
- case 11:
- if (len == 13)
- {
- resword = &wordlist[55];
- goto compare;
- }
- break;
- case 12:
- if (len == 9)
- {
- resword = &wordlist[56];
- goto compare;
- }
- break;
- case 15:
- if (len == 27)
- {
- resword = &wordlist[57];
- goto compare;
- }
- break;
- case 16:
- if (len == 31)
- {
- resword = &wordlist[58];
- goto compare;
- }
- break;
- case 17:
- if (len == 16)
- {
- resword = &wordlist[59];
- goto compare;
- }
- break;
- }
- }
- }
- return 0;
- compare:
+ if (key <= MAX_HASH_VALUE && key >= 0)
+ if (len == lengthtable[key])
{
- register const char *s = resword->seq + vteseq_n_pool;
+ register const char *s = wordlist[key].seq + vteseq_n_pool;
if (*str == *s && !memcmp (str + 1, s + 1, len - 1))
- return resword;
+ return &wordlist[key];
}
- }
}
return 0;
}
Modified: trunk/src/vteseq-n.gperf
==============================================================================
--- trunk/src/vteseq-n.gperf (original)
+++ trunk/src/vteseq-n.gperf Wed Nov 26 20:38:33 2008
@@ -4,7 +4,6 @@
%language=ANSI-C
%includes
%enum
-%switch=4
%readonly-tables
%define slot-name seq
%define hash-function-name vteseq_n_hash
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]