i3
GENERATED_config_call.h
Go to the documentation of this file.
1 static void GENERATED_call(const int call_identifier, struct ConfigResult *result) {
2  switch (call_identifier) {
3  case 0:
4  result->next_state = INITIAL;
5 #ifndef TEST_PARSER
6  cfg_force_display_urgency_hint(&current_match, result, get_long("duration_ms"));
7 #else
8  fprintf(stderr, "cfg_force_display_urgency_hint(%ld)\n", get_long("duration_ms"));
9 #endif
10  break;
11  case 1:
12  result->next_state = INITIAL;
13 #ifndef TEST_PARSER
14  cfg_floating_maximum_size(&current_match, result, get_long("width"), get_long("height"));
15 #else
16  fprintf(stderr, "cfg_floating_maximum_size(%ld, %ld)\n", get_long("width"), get_long("height"));
17 #endif
18  break;
19  case 2:
20  result->next_state = INITIAL;
21 #ifndef TEST_PARSER
22  cfg_floating_minimum_size(&current_match, result, get_long("width"), get_long("height"));
23 #else
24  fprintf(stderr, "cfg_floating_minimum_size(%ld, %ld)\n", get_long("width"), get_long("height"));
25 #endif
26  break;
27  case 3:
28  result->next_state = INITIAL;
29 #ifndef TEST_PARSER
30  cfg_workspace_back_and_forth(&current_match, result, get_string("value"));
31 #else
32  fprintf(stderr, "cfg_workspace_back_and_forth(%s)\n", get_string("value"));
33 #endif
34  break;
35  case 4:
36  result->next_state = INITIAL;
37 #ifndef TEST_PARSER
38  cfg_popup_during_fullscreen(&current_match, result, get_string("value"));
39 #else
40  fprintf(stderr, "cfg_popup_during_fullscreen(%s)\n", get_string("value"));
41 #endif
42  break;
43  case 5:
44  result->next_state = INITIAL;
45 #ifndef TEST_PARSER
46  cfg_popup_during_fullscreen(&current_match, result, get_string("value"));
47 #else
48  fprintf(stderr, "cfg_popup_during_fullscreen(%s)\n", get_string("value"));
49 #endif
50  break;
51  case 6:
52  result->next_state = BAR;
53 #ifndef TEST_PARSER
54  cfg_bar_workspace_buttons(&current_match, result, get_string("value"));
55 #else
56  fprintf(stderr, "cfg_bar_workspace_buttons(%s)\n", get_string("value"));
57 #endif
58  break;
59  case 7:
60  result->next_state = INITIAL;
61 #ifndef TEST_PARSER
62  cfg_workspace(&current_match, result, get_string("workspace"), get_string("output"));
63 #else
64  fprintf(stderr, "cfg_workspace(%s, %s)\n", get_string("workspace"), get_string("output"));
65 #endif
66  break;
67  case 8:
68  result->next_state = INITIAL;
69 #ifndef TEST_PARSER
70  cfg_force_focus_wrapping(&current_match, result, get_string("value"));
71 #else
72  fprintf(stderr, "cfg_force_focus_wrapping(%s)\n", get_string("value"));
73 #endif
74  break;
75  case 9:
76  result->next_state = INITIAL;
77 #ifndef TEST_PARSER
78  cfg_new_window(&current_match, result, get_string("windowtype"), get_string("border"), get_long("width"));
79 #else
80  fprintf(stderr, "cfg_new_window(%s, %s, %ld)\n", get_string("windowtype"), get_string("border"), get_long("width"));
81 #endif
82  break;
83  case 10:
84  result->next_state = INITIAL;
85 #ifndef TEST_PARSER
86  cfg_default_orientation(&current_match, result, get_string("orientation"));
87 #else
88  fprintf(stderr, "cfg_default_orientation(%s)\n", get_string("orientation"));
89 #endif
90  break;
91  case 11:
92  result->next_state = INITIAL;
93 #ifndef TEST_PARSER
94  cfg_default_orientation(&current_match, result, get_string("orientation"));
95 #else
96  fprintf(stderr, "cfg_default_orientation(%s)\n", get_string("orientation"));
97 #endif
98  break;
99  case 12:
100  result->next_state = INITIAL;
101 #ifndef TEST_PARSER
102  cfg_default_orientation(&current_match, result, get_string("orientation"));
103 #else
104  fprintf(stderr, "cfg_default_orientation(%s)\n", get_string("orientation"));
105 #endif
106  break;
107  case 13:
108  result->next_state = INITIAL;
109 #ifndef TEST_PARSER
110  cfg_focus_follows_mouse(&current_match, result, get_string("value"));
111 #else
112  fprintf(stderr, "cfg_focus_follows_mouse(%s)\n", get_string("value"));
113 #endif
114  break;
115  case 14:
116  result->next_state = BAR;
117 #ifndef TEST_PARSER
118  cfg_bar_status_command(&current_match, result, get_string("command"));
119 #else
120  fprintf(stderr, "cfg_bar_status_command(%s)\n", get_string("command"));
121 #endif
122  break;
123  case 15:
124  result->next_state = INITIAL;
125 #ifndef TEST_PARSER
126  cfg_for_window(&current_match, result, get_string("command"));
127 #else
128  fprintf(stderr, "cfg_for_window(%s)\n", get_string("command"));
129 #endif
130  break;
131  case 16:
132  result->next_state = INITIAL;
133 #ifndef TEST_PARSER
134  cfg_floating_modifier(&current_match, result, get_string("modifiers"));
135 #else
136  fprintf(stderr, "cfg_floating_modifier(%s)\n", get_string("modifiers"));
137 #endif
138  break;
139  case 17:
140  result->next_state = BAR_COLORS;
141 #ifndef TEST_PARSER
142  cfg_bar_color_single(&current_match, result, get_string("colorclass"), get_string("color"));
143 #else
144  fprintf(stderr, "cfg_bar_color_single(%s, %s)\n", get_string("colorclass"), get_string("color"));
145 #endif
146  break;
147  case 18:
148  result->next_state = INITIAL;
149 #ifndef TEST_PARSER
150  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
151 #else
152  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
153 #endif
154  break;
155  case 19:
156  result->next_state = INITIAL;
157 #ifndef TEST_PARSER
158  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
159 #else
160  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
161 #endif
162  break;
163  case 20:
164  result->next_state = INITIAL;
165 #ifndef TEST_PARSER
166  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
167 #else
168  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
169 #endif
170  break;
171  case 21:
172  result->next_state = INITIAL;
173 #ifndef TEST_PARSER
174  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
175 #else
176  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
177 #endif
178  break;
179  case 22:
180  result->next_state = INITIAL;
181 #ifndef TEST_PARSER
182  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
183 #else
184  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
185 #endif
186  break;
187  case 23:
188  result->next_state = INITIAL;
189 #ifndef TEST_PARSER
190  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
191 #else
192  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
193 #endif
194  break;
195  case 24:
196  result->next_state = INITIAL;
197 #ifndef TEST_PARSER
198  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
199 #else
200  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
201 #endif
202  break;
203  case 25:
204  result->next_state = INITIAL;
205 #ifndef TEST_PARSER
206  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
207 #else
208  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
209 #endif
210  break;
211  case 26:
212  result->next_state = INITIAL;
213 #ifndef TEST_PARSER
214  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
215 #else
216  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
217 #endif
218  break;
219  case 27:
220  result->next_state = INITIAL;
221 #ifndef TEST_PARSER
222  cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
223 #else
224  fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
225 #endif
226  break;
227  case 28:
228  result->next_state = INITIAL;
229 #ifndef TEST_PARSER
230  cfg_new_window(&current_match, result, get_string("windowtype"), get_string("border"), 2);
231 #else
232  fprintf(stderr, "cfg_new_window(%s, %s, %d)\n", get_string("windowtype"), get_string("border"), 2);
233 #endif
234  break;
235  case 29:
236  result->next_state = INITIAL;
237 #ifndef TEST_PARSER
238  cfg_assign(&current_match, result, get_string("workspace"));
239 #else
240  fprintf(stderr, "cfg_assign(%s)\n", get_string("workspace"));
241 #endif
242  break;
243  case 30:
244  result->next_state = INITIAL;
245 #ifndef TEST_PARSER
246  cfg_workspace_layout(&current_match, result, get_string("layout"));
247 #else
248  fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
249 #endif
250  break;
251  case 31:
252  result->next_state = INITIAL;
253 #ifndef TEST_PARSER
254  cfg_workspace_layout(&current_match, result, get_string("layout"));
255 #else
256  fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
257 #endif
258  break;
259  case 32:
260  result->next_state = INITIAL;
261 #ifndef TEST_PARSER
262  cfg_workspace_layout(&current_match, result, get_string("layout"));
263 #else
264  fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
265 #endif
266  break;
267  case 33:
268  result->next_state = INITIAL;
269 #ifndef TEST_PARSER
270  cfg_workspace_layout(&current_match, result, get_string("layout"));
271 #else
272  fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
273 #endif
274  break;
275  case 34:
276  result->next_state = MODE;
277 #ifndef TEST_PARSER
278  cfg_mode_binding(&current_match, result, get_string("bindtype"), get_string("modifiers"), get_string("key"), get_string("release"), get_string("command"));
279 #else
280  fprintf(stderr, "cfg_mode_binding(%s, %s, %s, %s, %s)\n", get_string("bindtype"), get_string("modifiers"), get_string("key"), get_string("release"), get_string("command"));
281 #endif
282  break;
283  case 35:
284  result->next_state = INITIAL;
285 #ifndef TEST_PARSER
286  cfg_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), get_string("indicator"));
287 #else
288  fprintf(stderr, "cfg_color(%s, %s, %s, %s, %s)\n", get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), get_string("indicator"));
289 #endif
290  break;
291  case 36:
292  result->next_state = INITIAL;
293 #ifndef TEST_PARSER
294  cfg_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), NULL);
295 #else
296  fprintf(stderr, "cfg_color(%s, %s, %s, %s, NULL)\n", get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"));
297 #endif
298  break;
299  case 37:
300  result->next_state = BAR;
301 #ifndef TEST_PARSER
302  cfg_bar_i3bar_command(&current_match, result, get_string("command"));
303 #else
304  fprintf(stderr, "cfg_bar_i3bar_command(%s)\n", get_string("command"));
305 #endif
306  break;
307  case 38:
308  result->next_state = BAR;
309 #ifndef TEST_PARSER
310  cfg_bar_tray_output(&current_match, result, get_string("output"));
311 #else
312  fprintf(stderr, "cfg_bar_tray_output(%s)\n", get_string("output"));
313 #endif
314  break;
315  case 39:
316  result->next_state = BAR;
317 #ifndef TEST_PARSER
318  cfg_bar_socket_path(&current_match, result, get_string("path"));
319 #else
320  fprintf(stderr, "cfg_bar_socket_path(%s)\n", get_string("path"));
321 #endif
322  break;
323  case 40:
324  result->next_state = BAR_COLORS;
325 #ifndef TEST_PARSER
326  cfg_bar_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), NULL);
327 #else
328  fprintf(stderr, "cfg_bar_color(%s, %s, %s, NULL)\n", get_string("colorclass"), get_string("border"), get_string("background"));
329 #endif
330  break;
331  case 41:
332  result->next_state = BAR_COLORS;
333 #ifndef TEST_PARSER
334  cfg_bar_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"));
335 #else
336  fprintf(stderr, "cfg_bar_color(%s, %s, %s, %s)\n", get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"));
337 #endif
338  break;
339  case 42:
340  result->next_state = INITIAL;
341 #ifndef TEST_PARSER
342  cfg_force_xinerama(&current_match, result, get_string("value"));
343 #else
344  fprintf(stderr, "cfg_force_xinerama(%s)\n", get_string("value"));
345 #endif
346  break;
347  case 43:
348  result->next_state = CRITERIA;
349 #ifndef TEST_PARSER
350  cfg_criteria_add(&current_match, result, get_string("ctype"), get_string("cvalue"));
351 #else
352  fprintf(stderr, "cfg_criteria_add(%s, %s)\n", get_string("ctype"), get_string("cvalue"));
353  cfg_criteria_add(&current_match, result, get_string("ctype"), get_string("cvalue"));
354 #endif
355  break;
356  case 44:
357  result->next_state = INITIAL;
358 #ifndef TEST_PARSER
359  cfg_restart_state(&current_match, result, get_string("path"));
360 #else
361  fprintf(stderr, "cfg_restart_state(%s)\n", get_string("path"));
362 #endif
363  break;
364  case 45:
365  result->next_state = BAR;
366 #ifndef TEST_PARSER
367  cfg_bar_position(&current_match, result, get_string("position"));
368 #else
369  fprintf(stderr, "cfg_bar_position(%s)\n", get_string("position"));
370 #endif
371  break;
372  case 46:
373  result->next_state = BAR;
374 #ifndef TEST_PARSER
375  cfg_bar_position(&current_match, result, get_string("position"));
376 #else
377  fprintf(stderr, "cfg_bar_position(%s)\n", get_string("position"));
378 #endif
379  break;
380  case 47:
381  result->next_state = BAR;
382 #ifndef TEST_PARSER
383  cfg_bar_modifier(&current_match, result, get_string("modifier"));
384 #else
385  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
386 #endif
387  break;
388  case 48:
389  result->next_state = BAR;
390 #ifndef TEST_PARSER
391  cfg_bar_modifier(&current_match, result, get_string("modifier"));
392 #else
393  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
394 #endif
395  break;
396  case 49:
397  result->next_state = BAR;
398 #ifndef TEST_PARSER
399  cfg_bar_modifier(&current_match, result, get_string("modifier"));
400 #else
401  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
402 #endif
403  break;
404  case 50:
405  result->next_state = BAR;
406 #ifndef TEST_PARSER
407  cfg_bar_modifier(&current_match, result, get_string("modifier"));
408 #else
409  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
410 #endif
411  break;
412  case 51:
413  result->next_state = BAR;
414 #ifndef TEST_PARSER
415  cfg_bar_modifier(&current_match, result, get_string("modifier"));
416 #else
417  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
418 #endif
419  break;
420  case 52:
421  result->next_state = BAR;
422 #ifndef TEST_PARSER
423  cfg_bar_modifier(&current_match, result, get_string("modifier"));
424 #else
425  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
426 #endif
427  break;
428  case 53:
429  result->next_state = BAR;
430 #ifndef TEST_PARSER
431  cfg_bar_modifier(&current_match, result, get_string("modifier"));
432 #else
433  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
434 #endif
435  break;
436  case 54:
437  result->next_state = BAR;
438 #ifndef TEST_PARSER
439  cfg_bar_modifier(&current_match, result, get_string("modifier"));
440 #else
441  fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifier"));
442 #endif
443  break;
444  case 55:
445  result->next_state = INITIAL;
446 #ifndef TEST_PARSER
447  cfg_color_single(&current_match, result, get_string("colorclass"), get_string("color"));
448 #else
449  fprintf(stderr, "cfg_color_single(%s, %s)\n", get_string("colorclass"), get_string("color"));
450 #endif
451  break;
452  case 56:
453  result->next_state = INITIAL;
454 #ifndef TEST_PARSER
455  cfg_fake_outputs(&current_match, result, get_string("outputs"));
456 #else
457  fprintf(stderr, "cfg_fake_outputs(%s)\n", get_string("outputs"));
458 #endif
459  break;
460  case 57:
461  result->next_state = BAR;
462 #ifndef TEST_PARSER
463  cfg_bar_verbose(&current_match, result, get_string("value"));
464 #else
465  fprintf(stderr, "cfg_bar_verbose(%s)\n", get_string("value"));
466 #endif
467  break;
468  case 58:
469  result->next_state = INITIAL;
470 #ifndef TEST_PARSER
471  cfg_binding(&current_match, result, get_string("bindtype"), get_string("modifiers"), get_string("key"), get_string("release"), get_string("command"));
472 #else
473  fprintf(stderr, "cfg_binding(%s, %s, %s, %s, %s)\n", get_string("bindtype"), get_string("modifiers"), get_string("key"), get_string("release"), get_string("command"));
474 #endif
475  break;
476  case 59:
477  result->next_state = CRITERIA;
478 #ifndef TEST_PARSER
479  cfg_criteria_init(&current_match, result, 19);
480 #else
481  fprintf(stderr, "cfg_criteria_init(%d)\n", 19);
482  cfg_criteria_init(&current_match, result, 19);
483 #endif
484  break;
485  case 60:
486  result->next_state = INITIAL;
487 #ifndef TEST_PARSER
488  cfg_new_window(&current_match, result, get_string("windowtype"), get_string("border"), -1);
489 #else
490  fprintf(stderr, "cfg_new_window(%s, %s, %d)\n", get_string("windowtype"), get_string("border"), -1);
491 #endif
492  break;
493  case 61:
494  result->next_state = INITIAL;
495 #ifndef TEST_PARSER
496  cfg_new_window(&current_match, result, get_string("windowtype"), get_string("border"), -1);
497 #else
498  fprintf(stderr, "cfg_new_window(%s, %s, %d)\n", get_string("windowtype"), get_string("border"), -1);
499 #endif
500  break;
501  case 62:
502  result->next_state = BAR;
503 #ifndef TEST_PARSER
504  cfg_bar_output(&current_match, result, get_string("output"));
505 #else
506  fprintf(stderr, "cfg_bar_output(%s)\n", get_string("output"));
507 #endif
508  break;
509  case 63:
510  result->next_state = INITIAL;
511 #ifndef TEST_PARSER
512  cfg_ipc_socket(&current_match, result, get_string("path"));
513 #else
514  fprintf(stderr, "cfg_ipc_socket(%s)\n", get_string("path"));
515 #endif
516  break;
517  case 64:
518  result->next_state = BAR;
519 #ifndef TEST_PARSER
520  cfg_bar_mode(&current_match, result, get_string("mode"));
521 #else
522  fprintf(stderr, "cfg_bar_mode(%s)\n", get_string("mode"));
523 #endif
524  break;
525  case 65:
526  result->next_state = BAR;
527 #ifndef TEST_PARSER
528  cfg_bar_mode(&current_match, result, get_string("mode"));
529 #else
530  fprintf(stderr, "cfg_bar_mode(%s)\n", get_string("mode"));
531 #endif
532  break;
533  case 66:
534  result->next_state = INITIAL;
535 #ifndef TEST_PARSER
536  cfg_criteria_pop_state(&current_match, result);
537 #else
538  fprintf(stderr, "cfg_criteria_pop_state()\n");
539  cfg_criteria_pop_state(&current_match, result);
540 #endif
541  break;
542  case 67:
543  result->next_state = BAR;
544 #ifndef TEST_PARSER
545  cfg_bar_font(&current_match, result, get_string("font"));
546 #else
547  fprintf(stderr, "cfg_bar_font(%s)\n", get_string("font"));
548 #endif
549  break;
550  case 68:
551  result->next_state = MODEBRACE;
552 #ifndef TEST_PARSER
553  cfg_enter_mode(&current_match, result, get_string("modename"));
554 #else
555  fprintf(stderr, "cfg_enter_mode(%s)\n", get_string("modename"));
556 #endif
557  break;
558  case 69:
559  result->next_state = CRITERIA;
560 #ifndef TEST_PARSER
561  cfg_criteria_init(&current_match, result, 27);
562 #else
563  fprintf(stderr, "cfg_criteria_init(%d)\n", 27);
564  cfg_criteria_init(&current_match, result, 27);
565 #endif
566  break;
567  case 70:
568  result->next_state = INITIAL;
569 #ifndef TEST_PARSER
570  cfg_font(&current_match, result, get_string("font"));
571 #else
572  fprintf(stderr, "cfg_font(%s)\n", get_string("font"));
573 #endif
574  break;
575  case 71:
576  result->next_state = INITIAL;
577 #ifndef TEST_PARSER
578  cfg_exec(&current_match, result, get_string("exectype"), get_string("no_startup_id"), get_string("command"));
579 #else
580  fprintf(stderr, "cfg_exec(%s, %s, %s)\n", get_string("exectype"), get_string("no_startup_id"), get_string("command"));
581 #endif
582  break;
583  case 72:
584  result->next_state = INITIAL;
585 #ifndef TEST_PARSER
586  cfg_bar_finish(&current_match, result);
587 #else
588  fprintf(stderr, "cfg_bar_finish()\n");
589 #endif
590  break;
591  default:
592  printf("BUG in the parser. state = %d\n", call_identifier);
593  assert(false);
594  }
595 }