Commit bc2ba0a0 authored by Guillaume Quintard's avatar Guillaume Quintard

Remove flex arrays

parent ac517cb9
...@@ -8,58 +8,66 @@ struct ssym { ...@@ -8,58 +8,66 @@ struct ssym {
struct stbl { struct stbl {
int msk; int msk;
struct ssym syms[]; struct ssym *syms;
}; };
static struct stbl byte3_pref0110 = { static struct ssym byte3_pref0110_array[] = {
1,
{
/* idx 0 */ {1, 199, NULL}, /* idx 0 */ {1, 199, NULL},
/* idx 1 */ {1, 207, NULL}, /* idx 1 */ {1, 207, NULL},
}
}; };
static struct stbl byte3_pref0111 = { static struct stbl byte3_pref0110 = {
1, 1,
{ byte3_pref0110_array
};
static struct ssym byte3_pref0111_array[] = {
/* idx 0 */ {1, 234, NULL}, /* idx 0 */ {1, 234, NULL},
/* idx 1 */ {1, 235, NULL}, /* idx 1 */ {1, 235, NULL},
}
}; };
static struct stbl byte3_pref1000 = { static struct stbl byte3_pref0111 = {
2, 1,
{ byte3_pref0111_array
};
static struct ssym byte3_pref1000_array[] = {
/* idx 0 */ {2, 192, NULL}, /* idx 0 */ {2, 192, NULL},
/* idx 1 */ {2, 193, NULL}, /* idx 1 */ {2, 193, NULL},
/* idx 2 */ {2, 200, NULL}, /* idx 2 */ {2, 200, NULL},
/* idx 3 */ {2, 201, NULL}, /* idx 3 */ {2, 201, NULL},
}
}; };
static struct stbl byte3_pref1001 = { static struct stbl byte3_pref1000 = {
2, 2,
{ byte3_pref1000_array
};
static struct ssym byte3_pref1001_array[] = {
/* idx 0 */ {2, 202, NULL}, /* idx 0 */ {2, 202, NULL},
/* idx 1 */ {2, 205, NULL}, /* idx 1 */ {2, 205, NULL},
/* idx 2 */ {2, 210, NULL}, /* idx 2 */ {2, 210, NULL},
/* idx 3 */ {2, 213, NULL}, /* idx 3 */ {2, 213, NULL},
}
}; };
static struct stbl byte3_pref1010 = { static struct stbl byte3_pref1001 = {
2, 2,
{ byte3_pref1001_array
};
static struct ssym byte3_pref1010_array[] = {
/* idx 0 */ {2, 218, NULL}, /* idx 0 */ {2, 218, NULL},
/* idx 1 */ {2, 219, NULL}, /* idx 1 */ {2, 219, NULL},
/* idx 2 */ {2, 238, NULL}, /* idx 2 */ {2, 238, NULL},
/* idx 3 */ {2, 240, NULL}, /* idx 3 */ {2, 240, NULL},
}
}; };
static struct stbl byte3_pref1011 = { static struct stbl byte3_pref1010 = {
3, 2,
{ byte3_pref1010_array
};
static struct ssym byte3_pref1011_array[] = {
/* idx 0 */ {2, 242, NULL}, /* idx 0 */ {2, 242, NULL},
/* idx 1 */ {2, 242, NULL}, /* idx 1 */ {2, 242, NULL},
/* idx 2 */ {2, 243, NULL}, /* idx 2 */ {2, 243, NULL},
...@@ -68,12 +76,14 @@ static struct stbl byte3_pref1011 = { ...@@ -68,12 +76,14 @@ static struct stbl byte3_pref1011 = {
/* idx 5 */ {2, 255, NULL}, /* idx 5 */ {2, 255, NULL},
/* idx 6 */ {3, 203, NULL}, /* idx 6 */ {3, 203, NULL},
/* idx 7 */ {3, 204, NULL}, /* idx 7 */ {3, 204, NULL},
}
}; };
static struct stbl byte3_pref1100 = { static struct stbl byte3_pref1011 = {
3, 3,
{ byte3_pref1011_array
};
static struct ssym byte3_pref1100_array[] = {
/* idx 0 */ {3, 211, NULL}, /* idx 0 */ {3, 211, NULL},
/* idx 1 */ {3, 212, NULL}, /* idx 1 */ {3, 212, NULL},
/* idx 2 */ {3, 214, NULL}, /* idx 2 */ {3, 214, NULL},
...@@ -82,12 +92,14 @@ static struct stbl byte3_pref1100 = { ...@@ -82,12 +92,14 @@ static struct stbl byte3_pref1100 = {
/* idx 5 */ {3, 223, NULL}, /* idx 5 */ {3, 223, NULL},
/* idx 6 */ {3, 241, NULL}, /* idx 6 */ {3, 241, NULL},
/* idx 7 */ {3, 244, NULL}, /* idx 7 */ {3, 244, NULL},
}
}; };
static struct stbl byte3_pref1101 = { static struct stbl byte3_pref1100 = {
3, 3,
{ byte3_pref1100_array
};
static struct ssym byte3_pref1101_array[] = {
/* idx 0 */ {3, 245, NULL}, /* idx 0 */ {3, 245, NULL},
/* idx 1 */ {3, 246, NULL}, /* idx 1 */ {3, 246, NULL},
/* idx 2 */ {3, 247, NULL}, /* idx 2 */ {3, 247, NULL},
...@@ -96,12 +108,14 @@ static struct stbl byte3_pref1101 = { ...@@ -96,12 +108,14 @@ static struct stbl byte3_pref1101 = {
/* idx 5 */ {3, 251, NULL}, /* idx 5 */ {3, 251, NULL},
/* idx 6 */ {3, 252, NULL}, /* idx 6 */ {3, 252, NULL},
/* idx 7 */ {3, 253, NULL}, /* idx 7 */ {3, 253, NULL},
}
}; };
static struct stbl byte3_pref1110 = { static struct stbl byte3_pref1101 = {
4, 3,
{ byte3_pref1101_array
};
static struct ssym byte3_pref1110_array[] = {
/* idx 0 */ {3, 254, NULL}, /* idx 0 */ {3, 254, NULL},
/* idx 1 */ {3, 254, NULL}, /* idx 1 */ {3, 254, NULL},
/* idx 2 */ {4, 2, NULL}, /* idx 2 */ {4, 2, NULL},
...@@ -118,12 +132,14 @@ static struct stbl byte3_pref1110 = { ...@@ -118,12 +132,14 @@ static struct stbl byte3_pref1110 = {
/* idx 13 */ {4, 16, NULL}, /* idx 13 */ {4, 16, NULL},
/* idx 14 */ {4, 17, NULL}, /* idx 14 */ {4, 17, NULL},
/* idx 15 */ {4, 18, NULL}, /* idx 15 */ {4, 18, NULL},
}
}; };
static struct stbl byte3_pref1111 = { static struct stbl byte3_pref1110 = {
6, 4,
{ byte3_pref1110_array
};
static struct ssym byte3_pref1111_array[] = {
/* idx 0 */ {4, 19, NULL}, /* idx 0 */ {4, 19, NULL},
/* idx 1 */ {4, 19, NULL}, /* idx 1 */ {4, 19, NULL},
/* idx 2 */ {4, 19, NULL}, /* idx 2 */ {4, 19, NULL},
...@@ -188,12 +204,14 @@ static struct stbl byte3_pref1111 = { ...@@ -188,12 +204,14 @@ static struct stbl byte3_pref1111 = {
/* idx 61 */ {6, 13, NULL}, /* idx 61 */ {6, 13, NULL},
/* idx 62 */ {6, 22, NULL}, /* idx 62 */ {6, 22, NULL},
/* idx 63 */ {0, 0, NULL} /* idx 63 */ {0, 0, NULL}
}
}; };
static struct stbl byte2_pref0 = { static struct stbl byte3_pref1111 = {
5, 6,
{ byte3_pref1111_array
};
static struct ssym byte2_pref0_array[] = {
/* idx 0 */ {3, 92, NULL}, /* '\' */ /* idx 0 */ {3, 92, NULL}, /* '\' */
/* idx 1 */ {3, 92, NULL}, /* '\' */ /* idx 1 */ {3, 92, NULL}, /* '\' */
/* idx 2 */ {3, 92, NULL}, /* '\' */ /* idx 2 */ {3, 92, NULL}, /* '\' */
...@@ -226,12 +244,14 @@ static struct stbl byte2_pref0 = { ...@@ -226,12 +244,14 @@ static struct stbl byte2_pref0 = {
/* idx 29 */ {5, 161, NULL}, /* . */ /* idx 29 */ {5, 161, NULL}, /* . */
/* idx 30 */ {5, 167, NULL}, /* . */ /* idx 30 */ {5, 167, NULL}, /* . */
/* idx 31 */ {5, 172, NULL} /* . */ /* idx 31 */ {5, 172, NULL} /* . */
}
}; };
static struct stbl byte2_pref1 = { static struct stbl byte2_pref0 = {
8, 5,
{ byte2_pref0_array
};
static struct ssym byte2_pref1_array[] = {
/* idx 0 */ {5, 176, NULL}, /* . */ /* idx 0 */ {5, 176, NULL}, /* . */
/* idx 1 */ {5, 176, NULL}, /* . */ /* idx 1 */ {5, 176, NULL}, /* . */
/* idx 2 */ {5, 176, NULL}, /* . */ /* idx 2 */ {5, 176, NULL}, /* . */
...@@ -488,23 +508,26 @@ static struct stbl byte2_pref1 = { ...@@ -488,23 +508,26 @@ static struct stbl byte2_pref1 = {
/* idx 253 */ {8, 0, &byte3_pref1101 }, /* idx 253 */ {8, 0, &byte3_pref1101 },
/* idx 254 */ {8, 0, &byte3_pref1110 }, /* idx 254 */ {8, 0, &byte3_pref1110 },
/* idx 255 */ {8, 0, &byte3_pref1111 } /* idx 255 */ {8, 0, &byte3_pref1111 }
}
}; };
static struct stbl byte2_pref1 = {
8,
byte2_pref1_array
};
static struct stbl byte1_pref0 = { static struct ssym byte1_pref0_array[] = {
2,
{
/* idx 0 */ {2, 33, NULL}, /* '!' */ /* idx 0 */ {2, 33, NULL}, /* '!' */
/* idx 1 */ {2, 34, NULL}, /* '"' */ /* idx 1 */ {2, 34, NULL}, /* '"' */
/* idx 2 */ {2, 40, NULL}, /* '(' */ /* idx 2 */ {2, 40, NULL}, /* '(' */
/* idx 3 */ {2, 41, NULL}, /* ')' */ /* idx 3 */ {2, 41, NULL}, /* ')' */
}
}; };
static struct stbl byte1_pref1 = { static struct stbl byte1_pref0 = {
8, 2,
{ byte1_pref0_array
};
static struct ssym byte1_pref1_array[] = {
/* idx 0 */ {2, 63, NULL}, /* '?' */ /* idx 0 */ {2, 63, NULL}, /* '?' */
/* idx 1 */ {2, 63, NULL}, /* '?' */ /* idx 1 */ {2, 63, NULL}, /* '?' */
/* idx 2 */ {2, 63, NULL}, /* '?' */ /* idx 2 */ {2, 63, NULL}, /* '?' */
...@@ -761,13 +784,14 @@ static struct stbl byte1_pref1 = { ...@@ -761,13 +784,14 @@ static struct stbl byte1_pref1 = {
/* idx 253 */ {7, 123, NULL}, /* '{' */ /* idx 253 */ {7, 123, NULL}, /* '{' */
/* idx 254 */ {8, 0, &byte2_pref0}, /* escape */ /* idx 254 */ {8, 0, &byte2_pref0}, /* escape */
/* idx 255 */ {8, 0, &byte2_pref1} /* escape */ /* idx 255 */ {8, 0, &byte2_pref1} /* escape */
}
}; };
static struct stbl byte1_pref1 = {
static struct stbl byte0 = {
8, 8,
{ byte1_pref1_array
};
static struct ssym byte0_array[] = {
/* idx 0 */ {5, 48, NULL}, /* '0' */ /* idx 0 */ {5, 48, NULL}, /* '0' */
/* idx 1 */ {5, 48, NULL}, /* '0' */ /* idx 1 */ {5, 48, NULL}, /* '0' */
/* idx 2 */ {5, 48, NULL}, /* '0' */ /* idx 2 */ {5, 48, NULL}, /* '0' */
...@@ -1024,5 +1048,9 @@ static struct stbl byte0 = { ...@@ -1024,5 +1048,9 @@ static struct stbl byte0 = {
/* idx 253 */ {8, 90, NULL}, /* 'Z' */ /* idx 253 */ {8, 90, NULL}, /* 'Z' */
/* idx 254 */ {8, 0, &byte1_pref0}, /* escape */ /* idx 254 */ {8, 0, &byte1_pref0}, /* escape */
/* idx 255 */ {8, 0, &byte1_pref1} /* escape */ /* idx 255 */ {8, 0, &byte1_pref1} /* escape */
} };
static struct stbl byte0 = {
8,
byte0_array
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment