fix link errors on compilers with strict "extern" enforcement
[rofl0r-openbor.git] / stringswitch_impl_lcm_cmdaimove.c
blobd5eefd138b86283fc1ae6012154eb8be85f952f7
1 typedef enum {
2 stringswitch_enumerator_default_member_name(lcm_cmdaimove),
3 stringswitch_enumerator_member_name(lcm_cmdaimove, star),
4 stringswitch_enumerator_member_name(lcm_cmdaimove, bomb),
5 stringswitch_enumerator_member_name(lcm_cmdaimove, chase),
6 stringswitch_enumerator_member_name(lcm_cmdaimove, avoid),
7 stringswitch_enumerator_member_name(lcm_cmdaimove, biker),
8 stringswitch_enumerator_member_name(lcm_cmdaimove, arrow),
9 stringswitch_enumerator_member_name(lcm_cmdaimove, normal),
10 stringswitch_enumerator_member_name(lcm_cmdaimove, chasex),
11 stringswitch_enumerator_member_name(lcm_cmdaimove, chasez),
12 stringswitch_enumerator_member_name(lcm_cmdaimove, avoidx),
13 stringswitch_enumerator_member_name(lcm_cmdaimove, avoidz),
14 stringswitch_enumerator_member_name(lcm_cmdaimove, wander),
15 stringswitch_enumerator_member_name(lcm_cmdaimove, nomove),
16 } stringswitch_enumerator_name(lcm_cmdaimove);
18 static int stringswitch_enumerator_eval_func(lcm_cmdaimove) (char* str, size_t l) {
19 switch(l) {
20 case 4:
21 switch(str[0]) {
22 case 's':
23 if(str[1]!='t') goto main_default;
24 if(str[2]!='a') goto main_default;
25 if(str[3]!='r') goto main_default;
26 return stringswitch_enumerator_member_name(lcm_cmdaimove, star);
27 case 'b':
28 if(str[1]!='o') goto main_default;
29 if(str[2]!='m') goto main_default;
30 if(str[3]!='b') goto main_default;
31 return stringswitch_enumerator_member_name(lcm_cmdaimove, bomb);
32 default: goto main_default;
34 case 5:
35 switch(str[0]) {
36 case 'c':
37 if(str[1]!='h') goto main_default;
38 if(str[2]!='a') goto main_default;
39 if(str[3]!='s') goto main_default;
40 if(str[4]!='e') goto main_default;
41 return stringswitch_enumerator_member_name(lcm_cmdaimove, chase);
42 case 'a':
43 switch(str[1]) {
44 case 'v':
45 if(str[2]!='o') goto main_default;
46 if(str[3]!='i') goto main_default;
47 if(str[4]!='d') goto main_default;
48 return stringswitch_enumerator_member_name(lcm_cmdaimove, avoid);
49 case 'r':
50 if(str[2]!='r') goto main_default;
51 if(str[3]!='o') goto main_default;
52 if(str[4]!='w') goto main_default;
53 return stringswitch_enumerator_member_name(lcm_cmdaimove, arrow);
54 default: goto main_default;
56 case 'b':
57 if(str[1]!='i') goto main_default;
58 if(str[2]!='k') goto main_default;
59 if(str[3]!='e') goto main_default;
60 if(str[4]!='r') goto main_default;
61 return stringswitch_enumerator_member_name(lcm_cmdaimove, biker);
62 default: goto main_default;
64 case 6:
65 switch(str[0]) {
66 case 'n':
67 if(str[1]!='o') goto main_default;
68 switch(str[2]) {
69 case 'r':
70 if(str[3]!='m') goto main_default;
71 if(str[4]!='a') goto main_default;
72 if(str[5]!='l') goto main_default;
73 return stringswitch_enumerator_member_name(lcm_cmdaimove, normal);
74 case 'm':
75 if(str[3]!='o') goto main_default;
76 if(str[4]!='v') goto main_default;
77 if(str[5]!='e') goto main_default;
78 return stringswitch_enumerator_member_name(lcm_cmdaimove, nomove);
79 default: goto main_default;
81 case 'c':
82 if(str[1]!='h') goto main_default;
83 if(str[2]!='a') goto main_default;
84 if(str[3]!='s') goto main_default;
85 if(str[4]!='e') goto main_default;
86 switch(str[5]) {
87 case 'x':
88 return stringswitch_enumerator_member_name(lcm_cmdaimove, chasex);
89 case 'z':
90 return stringswitch_enumerator_member_name(lcm_cmdaimove, chasez);
91 default: goto main_default;
93 case 'a':
94 if(str[1]!='v') goto main_default;
95 if(str[2]!='o') goto main_default;
96 if(str[3]!='i') goto main_default;
97 if(str[4]!='d') goto main_default;
98 switch(str[5]) {
99 case 'x':
100 return stringswitch_enumerator_member_name(lcm_cmdaimove, avoidx);
101 case 'z':
102 return stringswitch_enumerator_member_name(lcm_cmdaimove, avoidz);
103 default: goto main_default;
105 case 'w':
106 if(str[1]!='a') goto main_default;
107 if(str[2]!='n') goto main_default;
108 if(str[3]!='d') goto main_default;
109 if(str[4]!='e') goto main_default;
110 if(str[5]!='r') goto main_default;
111 return stringswitch_enumerator_member_name(lcm_cmdaimove, wander);
112 default: goto main_default;
114 default:
115 main_default:
116 return stringswitch_enumerator_default_member_name(lcm_cmdaimove);