fix link errors on compilers with strict "extern" enforcement
[rofl0r-openbor.git] / stringswitch_impl_lcm_cmdsubtype.c
blob68cf5cabb6b3fb1255e0107c391d0682cfb202ad
1 typedef enum {
2 stringswitch_enumerator_default_member_name(lcm_cmdsubtype),
3 stringswitch_enumerator_member_name(lcm_cmdsubtype, both),
4 stringswitch_enumerator_member_name(lcm_cmdsubtype, biker),
5 stringswitch_enumerator_member_name(lcm_cmdsubtype, arrow),
6 stringswitch_enumerator_member_name(lcm_cmdsubtype, touch),
7 stringswitch_enumerator_member_name(lcm_cmdsubtype, chase),
8 stringswitch_enumerator_member_name(lcm_cmdsubtype, weapon),
9 stringswitch_enumerator_member_name(lcm_cmdsubtype, noskip),
10 stringswitch_enumerator_member_name(lcm_cmdsubtype, flydie),
11 stringswitch_enumerator_member_name(lcm_cmdsubtype, follow),
12 stringswitch_enumerator_member_name(lcm_cmdsubtype, notgrab),
13 stringswitch_enumerator_member_name(lcm_cmdsubtype, project),
14 } stringswitch_enumerator_name(lcm_cmdsubtype);
16 static int stringswitch_enumerator_eval_func(lcm_cmdsubtype) (char* str, size_t l) {
17 switch(l) {
18 case 4:
19 if(str[0]!='b') goto main_default;
20 if(str[1]!='o') goto main_default;
21 if(str[2]!='t') goto main_default;
22 if(str[3]!='h') goto main_default;
23 return stringswitch_enumerator_member_name(lcm_cmdsubtype, both);
24 case 5:
25 switch(str[0]) {
26 case 'b':
27 if(str[1]!='i') goto main_default;
28 if(str[2]!='k') goto main_default;
29 if(str[3]!='e') goto main_default;
30 if(str[4]!='r') goto main_default;
31 return stringswitch_enumerator_member_name(lcm_cmdsubtype, biker);
32 case 'a':
33 if(str[1]!='r') goto main_default;
34 if(str[2]!='r') goto main_default;
35 if(str[3]!='o') goto main_default;
36 if(str[4]!='w') goto main_default;
37 return stringswitch_enumerator_member_name(lcm_cmdsubtype, arrow);
38 case 't':
39 if(str[1]!='o') goto main_default;
40 if(str[2]!='u') goto main_default;
41 if(str[3]!='c') goto main_default;
42 if(str[4]!='h') goto main_default;
43 return stringswitch_enumerator_member_name(lcm_cmdsubtype, touch);
44 case 'c':
45 if(str[1]!='h') goto main_default;
46 if(str[2]!='a') goto main_default;
47 if(str[3]!='s') goto main_default;
48 if(str[4]!='e') goto main_default;
49 return stringswitch_enumerator_member_name(lcm_cmdsubtype, chase);
50 default: goto main_default;
52 case 6:
53 switch(str[0]) {
54 case 'w':
55 if(str[1]!='e') goto main_default;
56 if(str[2]!='a') goto main_default;
57 if(str[3]!='p') goto main_default;
58 if(str[4]!='o') goto main_default;
59 if(str[5]!='n') goto main_default;
60 return stringswitch_enumerator_member_name(lcm_cmdsubtype, weapon);
61 case 'n':
62 if(str[1]!='o') goto main_default;
63 if(str[2]!='s') goto main_default;
64 if(str[3]!='k') goto main_default;
65 if(str[4]!='i') goto main_default;
66 if(str[5]!='p') goto main_default;
67 return stringswitch_enumerator_member_name(lcm_cmdsubtype, noskip);
68 case 'f':
69 switch(str[1]) {
70 case 'l':
71 if(str[2]!='y') goto main_default;
72 if(str[3]!='d') goto main_default;
73 if(str[4]!='i') goto main_default;
74 if(str[5]!='e') goto main_default;
75 return stringswitch_enumerator_member_name(lcm_cmdsubtype, flydie);
76 case 'o':
77 if(str[2]!='l') goto main_default;
78 if(str[3]!='l') goto main_default;
79 if(str[4]!='o') goto main_default;
80 if(str[5]!='w') goto main_default;
81 return stringswitch_enumerator_member_name(lcm_cmdsubtype, follow);
82 default: goto main_default;
84 default: goto main_default;
86 case 7:
87 switch(str[0]) {
88 case 'n':
89 if(str[1]!='o') goto main_default;
90 if(str[2]!='t') goto main_default;
91 if(str[3]!='g') goto main_default;
92 if(str[4]!='r') goto main_default;
93 if(str[5]!='a') goto main_default;
94 if(str[6]!='b') goto main_default;
95 return stringswitch_enumerator_member_name(lcm_cmdsubtype, notgrab);
96 case 'p':
97 if(str[1]!='r') goto main_default;
98 if(str[2]!='o') goto main_default;
99 if(str[3]!='j') goto main_default;
100 if(str[4]!='e') goto main_default;
101 if(str[5]!='c') goto main_default;
102 if(str[6]!='t') goto main_default;
103 return stringswitch_enumerator_member_name(lcm_cmdsubtype, project);
104 default: goto main_default;
106 default:
107 main_default:
108 return stringswitch_enumerator_default_member_name(lcm_cmdsubtype);