fix link errors on compilers with strict "extern" enforcement
[rofl0r-openbor.git] / stringswitch_impl_lcm_cmdcom.c
blob8ebdbbf20d565f9e92e3cb85e4daaef21dc4c035
1 typedef enum {
2 stringswitch_enumerator_default_member_name(lcm_cmdcom),
3 stringswitch_enumerator_member_name(lcm_cmdcom, u),
4 stringswitch_enumerator_member_name(lcm_cmdcom, d),
5 stringswitch_enumerator_member_name(lcm_cmdcom, f),
6 stringswitch_enumerator_member_name(lcm_cmdcom, b),
7 stringswitch_enumerator_member_name(lcm_cmdcom, a),
8 stringswitch_enumerator_member_name(lcm_cmdcom, j),
9 stringswitch_enumerator_member_name(lcm_cmdcom, s),
10 stringswitch_enumerator_member_name(lcm_cmdcom, k),
11 stringswitch_enumerator_member_name(lcm_cmdcom, a2),
12 stringswitch_enumerator_member_name(lcm_cmdcom, a3),
13 stringswitch_enumerator_member_name(lcm_cmdcom, a4),
14 } stringswitch_enumerator_name(lcm_cmdcom);
16 static int stringswitch_enumerator_eval_func(lcm_cmdcom) (char* str, size_t l) {
17 switch(l) {
18 case 1:
19 switch(str[0]) {
20 case 'u':
21 return stringswitch_enumerator_member_name(lcm_cmdcom, u);
22 case 'd':
23 return stringswitch_enumerator_member_name(lcm_cmdcom, d);
24 case 'f':
25 return stringswitch_enumerator_member_name(lcm_cmdcom, f);
26 case 'b':
27 return stringswitch_enumerator_member_name(lcm_cmdcom, b);
28 case 'a':
29 return stringswitch_enumerator_member_name(lcm_cmdcom, a);
30 case 'j':
31 return stringswitch_enumerator_member_name(lcm_cmdcom, j);
32 case 's':
33 return stringswitch_enumerator_member_name(lcm_cmdcom, s);
34 case 'k':
35 return stringswitch_enumerator_member_name(lcm_cmdcom, k);
36 default: goto main_default;
38 case 2:
39 if(str[0]!='a') goto main_default;
40 switch(str[1]) {
41 case '2':
42 return stringswitch_enumerator_member_name(lcm_cmdcom, a2);
43 case '3':
44 return stringswitch_enumerator_member_name(lcm_cmdcom, a3);
45 case '4':
46 return stringswitch_enumerator_member_name(lcm_cmdcom, a4);
47 default: goto main_default;
49 default:
50 main_default:
51 return stringswitch_enumerator_default_member_name(lcm_cmdcom);