fix windowisms: VOID
[rofl0r-openbor.git] / stringswitch_impl_menutxt_cmd.c
blob451f697a7f057fbcc774abbabbf37f62e2039aec
1 typedef enum {
2 stringswitch_enumerator_default_member_name(menutxt_cmd),
3 stringswitch_enumerator_member_name(menutxt_cmd, renamekey),
4 stringswitch_enumerator_member_name(menutxt_cmd, disablekey),
5 stringswitch_enumerator_member_name(menutxt_cmd, fontmonospace),
6 } stringswitch_enumerator_name(menutxt_cmd);
8 static int stringswitch_enumerator_eval_func(menutxt_cmd) (char* str, size_t l) {
9 switch(l) {
10 case 9:
11 if(str[0]!='r') goto main_default;
12 if(str[1]!='e') goto main_default;
13 if(str[2]!='n') goto main_default;
14 if(str[3]!='a') goto main_default;
15 if(str[4]!='m') goto main_default;
16 if(str[5]!='e') goto main_default;
17 if(str[6]!='k') goto main_default;
18 if(str[7]!='e') goto main_default;
19 if(str[8]!='y') goto main_default;
20 return stringswitch_enumerator_member_name(menutxt_cmd, renamekey);
21 case 10:
22 if(str[0]!='d') goto main_default;
23 if(str[1]!='i') goto main_default;
24 if(str[2]!='s') goto main_default;
25 if(str[3]!='a') goto main_default;
26 if(str[4]!='b') goto main_default;
27 if(str[5]!='l') goto main_default;
28 if(str[6]!='e') goto main_default;
29 if(str[7]!='k') goto main_default;
30 if(str[8]!='e') goto main_default;
31 if(str[9]!='y') goto main_default;
32 return stringswitch_enumerator_member_name(menutxt_cmd, disablekey);
33 case 13:
34 if(str[0]!='f') goto main_default;
35 if(str[1]!='o') goto main_default;
36 if(str[2]!='n') goto main_default;
37 if(str[3]!='t') goto main_default;
38 if(str[4]!='m') goto main_default;
39 if(str[5]!='o') goto main_default;
40 if(str[6]!='n') goto main_default;
41 if(str[7]!='o') goto main_default;
42 if(str[8]!='s') goto main_default;
43 if(str[9]!='p') goto main_default;
44 if(str[10]!='a') goto main_default;
45 if(str[11]!='c') goto main_default;
46 if(str[12]!='e') goto main_default;
47 return stringswitch_enumerator_member_name(menutxt_cmd, fontmonospace);
48 default:
49 main_default:
50 return stringswitch_enumerator_default_member_name(menutxt_cmd);