i3
|
00001 static void GENERATED_call(const int call_identifier, struct CommandResult *result) { 00002 switch (call_identifier) { 00003 case 0: 00004 #ifndef TEST_PARSER 00005 cmd_move_con_to_workspace(¤t_match, result, get_string("workspace")); 00006 #else 00007 printf("cmd_move_con_to_workspace(%s)\n", get_string("workspace")); 00008 #endif 00009 state = INITIAL; 00010 break; 00011 case 1: 00012 #ifndef TEST_PARSER 00013 cmd_move_con_to_workspace(¤t_match, result, get_string("workspace")); 00014 #else 00015 printf("cmd_move_con_to_workspace(%s)\n", get_string("workspace")); 00016 #endif 00017 state = INITIAL; 00018 break; 00019 case 2: 00020 #ifndef TEST_PARSER 00021 cmd_move_con_to_workspace(¤t_match, result, get_string("workspace")); 00022 #else 00023 printf("cmd_move_con_to_workspace(%s)\n", get_string("workspace")); 00024 #endif 00025 state = INITIAL; 00026 break; 00027 case 3: 00028 #ifndef TEST_PARSER 00029 cmd_move_con_to_workspace(¤t_match, result, get_string("workspace")); 00030 #else 00031 printf("cmd_move_con_to_workspace(%s)\n", get_string("workspace")); 00032 #endif 00033 state = INITIAL; 00034 break; 00035 case 4: 00036 #ifndef TEST_PARSER 00037 cmd_move_con_to_workspace_name(¤t_match, result, get_string("workspace")); 00038 #else 00039 printf("cmd_move_con_to_workspace_name(%s)\n", get_string("workspace")); 00040 #endif 00041 state = INITIAL; 00042 break; 00043 case 5: 00044 #ifndef TEST_PARSER 00045 cmd_criteria_match_windows(¤t_match, result); 00046 #else 00047 printf("cmd_criteria_match_windows()\n"); 00048 #endif 00049 state = INITIAL; 00050 break; 00051 case 6: 00052 #ifndef TEST_PARSER 00053 cmd_move_window_to_position(¤t_match, result, get_string("method"), get_string("coord_x"), get_string("coord_y")); 00054 #else 00055 printf("cmd_move_window_to_position(%s, %s, %s)\n", get_string("method"), get_string("coord_x"), get_string("coord_y")); 00056 #endif 00057 state = INITIAL; 00058 break; 00059 case 7: 00060 #ifndef TEST_PARSER 00061 cmd_move_window_to_position(¤t_match, result, get_string("method"), get_string("coord_x"), get_string("coord_y")); 00062 #else 00063 printf("cmd_move_window_to_position(%s, %s, %s)\n", get_string("method"), get_string("coord_x"), get_string("coord_y")); 00064 #endif 00065 state = INITIAL; 00066 break; 00067 case 8: 00068 #ifndef TEST_PARSER 00069 cmd_resize(¤t_match, result, get_string("way"), get_string("direction"), get_string("resize_px"), "10"); 00070 #else 00071 printf("cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), get_string("resize_px"), "10"); 00072 #endif 00073 state = INITIAL; 00074 break; 00075 case 9: 00076 #ifndef TEST_PARSER 00077 cmd_border(¤t_match, result, get_string("border_style")); 00078 #else 00079 printf("cmd_border(%s)\n", get_string("border_style")); 00080 #endif 00081 state = INITIAL; 00082 break; 00083 case 10: 00084 #ifndef TEST_PARSER 00085 cmd_border(¤t_match, result, get_string("border_style")); 00086 #else 00087 printf("cmd_border(%s)\n", get_string("border_style")); 00088 #endif 00089 state = INITIAL; 00090 break; 00091 case 11: 00092 #ifndef TEST_PARSER 00093 cmd_border(¤t_match, result, get_string("border_style")); 00094 #else 00095 printf("cmd_border(%s)\n", get_string("border_style")); 00096 #endif 00097 state = INITIAL; 00098 break; 00099 case 12: 00100 #ifndef TEST_PARSER 00101 cmd_border(¤t_match, result, get_string("border_style")); 00102 #else 00103 printf("cmd_border(%s)\n", get_string("border_style")); 00104 #endif 00105 state = INITIAL; 00106 break; 00107 case 13: 00108 #ifndef TEST_PARSER 00109 cmd_mode(¤t_match, result, get_string("mode")); 00110 #else 00111 printf("cmd_mode(%s)\n", get_string("mode")); 00112 #endif 00113 state = INITIAL; 00114 break; 00115 case 14: 00116 #ifndef TEST_PARSER 00117 cmd_move_con_to_workspace_number(¤t_match, result, get_string("number")); 00118 #else 00119 printf("cmd_move_con_to_workspace_number(%s)\n", get_string("number")); 00120 #endif 00121 state = INITIAL; 00122 break; 00123 case 15: 00124 #ifndef TEST_PARSER 00125 cmd_criteria_add(¤t_match, result, get_string("ctype"), get_string("cvalue")); 00126 #else 00127 printf("cmd_criteria_add(%s, %s)\n", get_string("ctype"), get_string("cvalue")); 00128 #endif 00129 state = CRITERIA; 00130 break; 00131 case 16: 00132 #ifndef TEST_PARSER 00133 cmd_floating(¤t_match, result, get_string("floating")); 00134 #else 00135 printf("cmd_floating(%s)\n", get_string("floating")); 00136 #endif 00137 state = INITIAL; 00138 break; 00139 case 17: 00140 #ifndef TEST_PARSER 00141 cmd_floating(¤t_match, result, get_string("floating")); 00142 #else 00143 printf("cmd_floating(%s)\n", get_string("floating")); 00144 #endif 00145 state = INITIAL; 00146 break; 00147 case 18: 00148 #ifndef TEST_PARSER 00149 cmd_floating(¤t_match, result, get_string("floating")); 00150 #else 00151 printf("cmd_floating(%s)\n", get_string("floating")); 00152 #endif 00153 state = INITIAL; 00154 break; 00155 case 19: 00156 #ifndef TEST_PARSER 00157 cmd_fullscreen(¤t_match, result, get_string("fullscreen_mode")); 00158 #else 00159 printf("cmd_fullscreen(%s)\n", get_string("fullscreen_mode")); 00160 #endif 00161 state = INITIAL; 00162 break; 00163 case 20: 00164 #ifndef TEST_PARSER 00165 cmd_fullscreen(¤t_match, result, get_string("fullscreen_mode")); 00166 #else 00167 printf("cmd_fullscreen(%s)\n", get_string("fullscreen_mode")); 00168 #endif 00169 state = INITIAL; 00170 break; 00171 case 21: 00172 #ifndef TEST_PARSER 00173 cmd_rename_workspace(¤t_match, result, get_string("old_name"), get_string("new_name")); 00174 #else 00175 printf("cmd_rename_workspace(%s, %s)\n", get_string("old_name"), get_string("new_name")); 00176 #endif 00177 state = INITIAL; 00178 break; 00179 case 22: 00180 #ifndef TEST_PARSER 00181 cmd_move_direction(¤t_match, result, get_string("direction"), get_string("pixels")); 00182 #else 00183 printf("cmd_move_direction(%s, %s)\n", get_string("direction"), get_string("pixels")); 00184 #endif 00185 state = INITIAL; 00186 break; 00187 case 23: 00188 #ifndef TEST_PARSER 00189 cmd_move_direction(¤t_match, result, get_string("direction"), get_string("pixels")); 00190 #else 00191 printf("cmd_move_direction(%s, %s)\n", get_string("direction"), get_string("pixels")); 00192 #endif 00193 state = INITIAL; 00194 break; 00195 case 24: 00196 #ifndef TEST_PARSER 00197 cmd_focus_output(¤t_match, result, get_string("output")); 00198 #else 00199 printf("cmd_focus_output(%s)\n", get_string("output")); 00200 #endif 00201 state = INITIAL; 00202 break; 00203 case 25: 00204 #ifndef TEST_PARSER 00205 cmd_resize(¤t_match, result, get_string("way"), get_string("direction"), get_string("resize_px"), get_string("resize_ppt")); 00206 #else 00207 printf("cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), get_string("resize_px"), get_string("resize_ppt")); 00208 #endif 00209 state = INITIAL; 00210 break; 00211 case 26: 00212 #ifndef TEST_PARSER 00213 cmd_scratchpad_show(¤t_match, result); 00214 #else 00215 printf("cmd_scratchpad_show()\n"); 00216 #endif 00217 state = INITIAL; 00218 break; 00219 case 27: 00220 #ifndef TEST_PARSER 00221 cmd_nop(¤t_match, result, get_string("comment")); 00222 #else 00223 printf("cmd_nop(%s)\n", get_string("comment")); 00224 #endif 00225 state = INITIAL; 00226 break; 00227 case 28: 00228 #ifndef TEST_PARSER 00229 cmd_move_window_to_center(¤t_match, result, get_string("method")); 00230 #else 00231 printf("cmd_move_window_to_center(%s)\n", get_string("method")); 00232 #endif 00233 state = INITIAL; 00234 break; 00235 case 29: 00236 #ifndef TEST_PARSER 00237 cmd_workspace(¤t_match, result, get_string("direction")); 00238 #else 00239 printf("cmd_workspace(%s)\n", get_string("direction")); 00240 #endif 00241 state = INITIAL; 00242 break; 00243 case 30: 00244 #ifndef TEST_PARSER 00245 cmd_workspace(¤t_match, result, get_string("direction")); 00246 #else 00247 printf("cmd_workspace(%s)\n", get_string("direction")); 00248 #endif 00249 state = INITIAL; 00250 break; 00251 case 31: 00252 #ifndef TEST_PARSER 00253 cmd_workspace(¤t_match, result, get_string("direction")); 00254 #else 00255 printf("cmd_workspace(%s)\n", get_string("direction")); 00256 #endif 00257 state = INITIAL; 00258 break; 00259 case 32: 00260 #ifndef TEST_PARSER 00261 cmd_workspace(¤t_match, result, get_string("direction")); 00262 #else 00263 printf("cmd_workspace(%s)\n", get_string("direction")); 00264 #endif 00265 state = INITIAL; 00266 break; 00267 case 33: 00268 #ifndef TEST_PARSER 00269 cmd_workspace_back_and_forth(¤t_match, result); 00270 #else 00271 printf("cmd_workspace_back_and_forth()\n"); 00272 #endif 00273 state = INITIAL; 00274 break; 00275 case 34: 00276 #ifndef TEST_PARSER 00277 cmd_workspace_name(¤t_match, result, get_string("workspace")); 00278 #else 00279 printf("cmd_workspace_name(%s)\n", get_string("workspace")); 00280 #endif 00281 state = INITIAL; 00282 break; 00283 case 35: 00284 #ifndef TEST_PARSER 00285 cmd_append_layout(¤t_match, result, get_string("path")); 00286 #else 00287 printf("cmd_append_layout(%s)\n", get_string("path")); 00288 #endif 00289 state = INITIAL; 00290 break; 00291 case 36: 00292 #ifndef TEST_PARSER 00293 cmd_mark(¤t_match, result, get_string("mark")); 00294 #else 00295 printf("cmd_mark(%s)\n", get_string("mark")); 00296 #endif 00297 state = INITIAL; 00298 break; 00299 case 37: 00300 #ifndef TEST_PARSER 00301 cmd_move_scratchpad(¤t_match, result); 00302 #else 00303 printf("cmd_move_scratchpad()\n"); 00304 #endif 00305 state = INITIAL; 00306 break; 00307 case 38: 00308 #ifndef TEST_PARSER 00309 cmd_move_con_to_output(¤t_match, result, get_string("output")); 00310 #else 00311 printf("cmd_move_con_to_output(%s)\n", get_string("output")); 00312 #endif 00313 state = INITIAL; 00314 break; 00315 case 39: 00316 #ifndef TEST_PARSER 00317 cmd_workspace_number(¤t_match, result, get_string("workspace")); 00318 #else 00319 printf("cmd_workspace_number(%s)\n", get_string("workspace")); 00320 #endif 00321 state = INITIAL; 00322 break; 00323 case 40: 00324 #ifndef TEST_PARSER 00325 cmd_split(¤t_match, result, get_string("direction")); 00326 #else 00327 printf("cmd_split(%s)\n", get_string("direction")); 00328 #endif 00329 state = INITIAL; 00330 break; 00331 case 41: 00332 #ifndef TEST_PARSER 00333 cmd_split(¤t_match, result, get_string("direction")); 00334 #else 00335 printf("cmd_split(%s)\n", get_string("direction")); 00336 #endif 00337 state = INITIAL; 00338 break; 00339 case 42: 00340 #ifndef TEST_PARSER 00341 cmd_split(¤t_match, result, get_string("direction")); 00342 #else 00343 printf("cmd_split(%s)\n", get_string("direction")); 00344 #endif 00345 state = INITIAL; 00346 break; 00347 case 43: 00348 #ifndef TEST_PARSER 00349 cmd_split(¤t_match, result, get_string("direction")); 00350 #else 00351 printf("cmd_split(%s)\n", get_string("direction")); 00352 #endif 00353 state = INITIAL; 00354 break; 00355 case 44: 00356 #ifndef TEST_PARSER 00357 cmd_move_workspace_to_output(¤t_match, result, get_string("output")); 00358 #else 00359 printf("cmd_move_workspace_to_output(%s)\n", get_string("output")); 00360 #endif 00361 state = INITIAL; 00362 break; 00363 case 45: 00364 #ifndef TEST_PARSER 00365 cmd_kill(¤t_match, result, get_string("kill_mode")); 00366 #else 00367 printf("cmd_kill(%s)\n", get_string("kill_mode")); 00368 #endif 00369 state = INITIAL; 00370 break; 00371 case 46: 00372 #ifndef TEST_PARSER 00373 cmd_kill(¤t_match, result, get_string("kill_mode")); 00374 #else 00375 printf("cmd_kill(%s)\n", get_string("kill_mode")); 00376 #endif 00377 state = INITIAL; 00378 break; 00379 case 47: 00380 #ifndef TEST_PARSER 00381 cmd_kill(¤t_match, result, get_string("kill_mode")); 00382 #else 00383 printf("cmd_kill(%s)\n", get_string("kill_mode")); 00384 #endif 00385 state = INITIAL; 00386 break; 00387 case 48: 00388 #ifndef TEST_PARSER 00389 cmd_exec(¤t_match, result, get_string("nosn"), get_string("command")); 00390 #else 00391 printf("cmd_exec(%s, %s)\n", get_string("nosn"), get_string("command")); 00392 #endif 00393 state = INITIAL; 00394 break; 00395 case 49: 00396 #ifndef TEST_PARSER 00397 cmd_focus_direction(¤t_match, result, get_string("direction")); 00398 #else 00399 printf("cmd_focus_direction(%s)\n", get_string("direction")); 00400 #endif 00401 state = INITIAL; 00402 break; 00403 case 50: 00404 #ifndef TEST_PARSER 00405 cmd_focus_direction(¤t_match, result, get_string("direction")); 00406 #else 00407 printf("cmd_focus_direction(%s)\n", get_string("direction")); 00408 #endif 00409 state = INITIAL; 00410 break; 00411 case 51: 00412 #ifndef TEST_PARSER 00413 cmd_focus_direction(¤t_match, result, get_string("direction")); 00414 #else 00415 printf("cmd_focus_direction(%s)\n", get_string("direction")); 00416 #endif 00417 state = INITIAL; 00418 break; 00419 case 52: 00420 #ifndef TEST_PARSER 00421 cmd_focus_direction(¤t_match, result, get_string("direction")); 00422 #else 00423 printf("cmd_focus_direction(%s)\n", get_string("direction")); 00424 #endif 00425 state = INITIAL; 00426 break; 00427 case 53: 00428 #ifndef TEST_PARSER 00429 cmd_focus_window_mode(¤t_match, result, get_string("window_mode")); 00430 #else 00431 printf("cmd_focus_window_mode(%s)\n", get_string("window_mode")); 00432 #endif 00433 state = INITIAL; 00434 break; 00435 case 54: 00436 #ifndef TEST_PARSER 00437 cmd_focus_window_mode(¤t_match, result, get_string("window_mode")); 00438 #else 00439 printf("cmd_focus_window_mode(%s)\n", get_string("window_mode")); 00440 #endif 00441 state = INITIAL; 00442 break; 00443 case 55: 00444 #ifndef TEST_PARSER 00445 cmd_focus_window_mode(¤t_match, result, get_string("window_mode")); 00446 #else 00447 printf("cmd_focus_window_mode(%s)\n", get_string("window_mode")); 00448 #endif 00449 state = INITIAL; 00450 break; 00451 case 56: 00452 #ifndef TEST_PARSER 00453 cmd_focus_level(¤t_match, result, get_string("level")); 00454 #else 00455 printf("cmd_focus_level(%s)\n", get_string("level")); 00456 #endif 00457 state = INITIAL; 00458 break; 00459 case 57: 00460 #ifndef TEST_PARSER 00461 cmd_focus_level(¤t_match, result, get_string("level")); 00462 #else 00463 printf("cmd_focus_level(%s)\n", get_string("level")); 00464 #endif 00465 state = INITIAL; 00466 break; 00467 case 58: 00468 #ifndef TEST_PARSER 00469 cmd_focus(¤t_match, result); 00470 #else 00471 printf("cmd_focus()\n"); 00472 #endif 00473 state = INITIAL; 00474 break; 00475 case 59: 00476 #ifndef TEST_PARSER 00477 cmd_layout(¤t_match, result, get_string("layout_mode")); 00478 #else 00479 printf("cmd_layout(%s)\n", get_string("layout_mode")); 00480 #endif 00481 state = INITIAL; 00482 break; 00483 case 60: 00484 #ifndef TEST_PARSER 00485 cmd_layout(¤t_match, result, get_string("layout_mode")); 00486 #else 00487 printf("cmd_layout(%s)\n", get_string("layout_mode")); 00488 #endif 00489 state = INITIAL; 00490 break; 00491 case 61: 00492 #ifndef TEST_PARSER 00493 cmd_layout(¤t_match, result, get_string("layout_mode")); 00494 #else 00495 printf("cmd_layout(%s)\n", get_string("layout_mode")); 00496 #endif 00497 state = INITIAL; 00498 break; 00499 case 62: 00500 #ifndef TEST_PARSER 00501 cmd_layout(¤t_match, result, get_string("layout_mode")); 00502 #else 00503 printf("cmd_layout(%s)\n", get_string("layout_mode")); 00504 #endif 00505 state = INITIAL; 00506 break; 00507 case 63: 00508 #ifndef TEST_PARSER 00509 cmd_move_direction(¤t_match, result, get_string("direction"), "10"); 00510 #else 00511 printf("cmd_move_direction(%s, %s)\n", get_string("direction"), "10"); 00512 #endif 00513 state = INITIAL; 00514 break; 00515 case 64: 00516 #ifndef TEST_PARSER 00517 cmd_criteria_init(¤t_match, result); 00518 #else 00519 printf("cmd_criteria_init()\n"); 00520 #endif 00521 state = CRITERIA; 00522 break; 00523 case 65: 00524 #ifndef TEST_PARSER 00525 cmd_exit(¤t_match, result); 00526 #else 00527 printf("cmd_exit()\n"); 00528 #endif 00529 state = INITIAL; 00530 break; 00531 case 66: 00532 #ifndef TEST_PARSER 00533 cmd_restart(¤t_match, result); 00534 #else 00535 printf("cmd_restart()\n"); 00536 #endif 00537 state = INITIAL; 00538 break; 00539 case 67: 00540 #ifndef TEST_PARSER 00541 cmd_reload(¤t_match, result); 00542 #else 00543 printf("cmd_reload()\n"); 00544 #endif 00545 state = INITIAL; 00546 break; 00547 case 68: 00548 #ifndef TEST_PARSER 00549 cmd_open(¤t_match, result); 00550 #else 00551 printf("cmd_open()\n"); 00552 #endif 00553 state = INITIAL; 00554 break; 00555 case 69: 00556 #ifndef TEST_PARSER 00557 cmd_resize(¤t_match, result, get_string("way"), get_string("direction"), "10", "10"); 00558 #else 00559 printf("cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), "10", "10"); 00560 #endif 00561 state = INITIAL; 00562 break; 00563 default: 00564 printf("BUG in the parser. state = %d\n", call_identifier); 00565 } 00566 }