partially migrated build system to meson

This commit is contained in:
nixo 2020-05-09 17:46:18 +02:00
parent f63a4bef54
commit c418eb9f85
8 changed files with 2593 additions and 0 deletions

View File

@ -0,0 +1,783 @@
static void GENERATED_call(const int call_identifier, struct CommandResultIR *result) {
switch (call_identifier) {
case 0:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_rename_workspace(&current_match, result, "to", get_string("new_name"));
#else
fprintf(stderr, "cmd_rename_workspace(%s, %s)\n", "to", get_string("new_name"));
#endif
break;
case 1:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_rename_workspace(&current_match, result, NULL, "to");
#else
fprintf(stderr, "cmd_rename_workspace(NULL, %s)\n", "to");
#endif
break;
case 2:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_rename_workspace(&current_match, result, get_string("old_name"), get_string("new_name"));
#else
fprintf(stderr, "cmd_rename_workspace(%s, %s)\n", get_string("old_name"), get_string("new_name"));
#endif
break;
case 3:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_rename_workspace(&current_match, result, NULL, get_string("new_name"));
#else
fprintf(stderr, "cmd_rename_workspace(NULL, %s)\n", get_string("new_name"));
#endif
break;
case 4:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_workspace_to_output(&current_match, result, get_string("output"));
#else
fprintf(stderr, "cmd_move_workspace_to_output(%s)\n", get_string("output"));
#endif
break;
case 5:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace_number(&current_match, result, get_string("number"), get_string("no_auto_back_and_forth"));
#else
fprintf(stderr, "cmd_move_con_to_workspace_number(%s, %s)\n", get_string("number"), get_string("no_auto_back_and_forth"));
#endif
break;
case 6:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
#else
fprintf(stderr, "cmd_resize(%s, %s, %ld, %ld)\n", get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
#endif
break;
case 7:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
#else
fprintf(stderr, "cmd_resize(%s, %s, %ld, %ld)\n", get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
#endif
break;
case 8:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_window_to_position(&current_match, result, get_long("coord_x"), get_long("coord_y"));
#else
fprintf(stderr, "cmd_move_window_to_position(%ld, %ld)\n", get_long("coord_x"), get_long("coord_y"));
#endif
break;
case 9:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_window_to_position(&current_match, result, get_long("coord_x"), get_long("coord_y"));
#else
fprintf(stderr, "cmd_move_window_to_position(%ld, %ld)\n", get_long("coord_x"), get_long("coord_y"));
#endif
break;
case 10:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_fullscreen(&current_match, result, "toggle", get_string("mode"));
#else
fprintf(stderr, "cmd_fullscreen(%s, %s)\n", "toggle", get_string("mode"));
#endif
break;
case 11:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_fullscreen(&current_match, result, "toggle", "output");
#else
fprintf(stderr, "cmd_fullscreen(%s, %s)\n", "toggle", "output");
#endif
break;
case 12:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_direction(&current_match, result, get_string("direction"), get_long("pixels"));
#else
fprintf(stderr, "cmd_move_direction(%s, %ld)\n", get_string("direction"), get_long("pixels"));
#endif
break;
case 13:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_direction(&current_match, result, get_string("direction"), get_long("pixels"));
#else
fprintf(stderr, "cmd_move_direction(%s, %ld)\n", get_string("direction"), get_long("pixels"));
#endif
break;
case 14:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_window_to_center(&current_match, result, get_string("method"));
#else
fprintf(stderr, "cmd_move_window_to_center(%s)\n", get_string("method"));
#endif
break;
case 15:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_window_to_mouse(&current_match, result);
#else
fprintf(stderr, "cmd_move_window_to_mouse()\n");
#endif
break;
case 16:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_window_to_mouse(&current_match, result);
#else
fprintf(stderr, "cmd_move_window_to_mouse()\n");
#endif
break;
case 17:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_window_to_mouse(&current_match, result);
#else
fprintf(stderr, "cmd_move_window_to_mouse()\n");
#endif
break;
case 18:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_workspace_number(&current_match, result, get_string("workspace"), get_string("no_auto_back_and_forth"));
#else
fprintf(stderr, "cmd_workspace_number(%s, %s)\n", get_string("workspace"), get_string("no_auto_back_and_forth"));
#endif
break;
case 19:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_fullscreen(&current_match, result, get_string("action"), get_string("mode"));
#else
fprintf(stderr, "cmd_fullscreen(%s, %s)\n", get_string("action"), get_string("mode"));
#endif
break;
case 20:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_fullscreen(&current_match, result, get_string("action"), "output");
#else
fprintf(stderr, "cmd_fullscreen(%s, %s)\n", get_string("action"), "output");
#endif
break;
case 21:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_direction(&current_match, result, get_string("direction"), 10);
#else
fprintf(stderr, "cmd_move_direction(%s, %d)\n", get_string("direction"), 10);
#endif
break;
case 22:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_output(&current_match, result, get_string("output"));
#else
fprintf(stderr, "cmd_move_con_to_output(%s)\n", get_string("output"));
#endif
break;
case 23:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
#else
fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
#endif
break;
case 24:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
#else
fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
#endif
break;
case 25:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
#else
fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
#endif
break;
case 26:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
#else
fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
#endif
break;
case 27:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
#else
fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
#endif
break;
case 28:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace_back_and_forth(&current_match, result);
#else
fprintf(stderr, "cmd_move_con_to_workspace_back_and_forth()\n");
#endif
break;
case 29:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_workspace_name(&current_match, result, get_string("workspace"), get_string("no_auto_back_and_forth"));
#else
fprintf(stderr, "cmd_move_con_to_workspace_name(%s, %s)\n", get_string("workspace"), get_string("no_auto_back_and_forth"));
#endif
break;
case 30:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_append_layout(&current_match, result, get_string("path"));
#else
fprintf(stderr, "cmd_append_layout(%s)\n", get_string("path"));
#endif
break;
case 31:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
#else
fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
#endif
break;
case 32:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
#else
fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
#endif
break;
case 33:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_resize_set(&current_match, result, get_long("width"), get_string("mode_width"), get_long("height"), get_string("mode_height"));
#else
fprintf(stderr, "cmd_resize_set(%ld, %s, %ld, %s)\n", get_long("width"), get_string("mode_width"), get_long("height"), get_string("mode_height"));
#endif
break;
case 34:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_long("resize_px"), 0);
#else
fprintf(stderr, "cmd_resize(%s, %s, %ld, %d)\n", get_string("way"), get_string("direction"), get_long("resize_px"), 0);
#endif
break;
case 35:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_swap(&current_match, result, get_string("mode"), get_string("arg"));
#else
fprintf(stderr, "cmd_swap(%s, %s)\n", get_string("mode"), get_string("arg"));
#endif
break;
case 36:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_border(&current_match, result, get_string("border_style"), -1);
#else
fprintf(stderr, "cmd_border(%s, %d)\n", get_string("border_style"), -1);
#endif
break;
case 37:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_border(&current_match, result, get_string("border_style"), get_long("border_width"));
#else
fprintf(stderr, "cmd_border(%s, %ld)\n", get_string("border_style"), get_long("border_width"));
#endif
break;
case 38:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_output(&current_match, result, get_string("output"));
#else
fprintf(stderr, "cmd_focus_output(%s)\n", get_string("output"));
#endif
break;
case 39:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_con_to_mark(&current_match, result, get_string("mark"));
#else
fprintf(stderr, "cmd_move_con_to_mark(%s)\n", get_string("mark"));
#endif
break;
case 40:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_resize_set(&current_match, result, get_long("width"), get_string("mode_width"), 0, 0);
#else
fprintf(stderr, "cmd_resize_set(%ld, %s, %d, %d)\n", get_long("width"), get_string("mode_width"), 0, 0);
#endif
break;
case 41:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_title_format(&current_match, result, get_string("format"));
#else
fprintf(stderr, "cmd_title_format(%s)\n", get_string("format"));
#endif
break;
case 42:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_fullscreen(&current_match, result, get_string("action"), "output");
#else
fprintf(stderr, "cmd_fullscreen(%s, %s)\n", get_string("action"), "output");
#endif
break;
case 43:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_scratchpad_show(&current_match, result);
#else
fprintf(stderr, "cmd_scratchpad_show()\n");
#endif
break;
case 44:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_resize(&current_match, result, get_string("way"), get_string("direction"), 10, 10);
#else
fprintf(stderr, "cmd_resize(%s, %s, %d, %d)\n", get_string("way"), get_string("direction"), 10, 10);
#endif
break;
case 45:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_workspace(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
#endif
break;
case 46:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_workspace(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
#endif
break;
case 47:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_workspace(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
#endif
break;
case 48:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_workspace(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
#endif
break;
case 49:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_workspace_back_and_forth(&current_match, result);
#else
fprintf(stderr, "cmd_workspace_back_and_forth()\n");
#endif
break;
case 50:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_workspace_name(&current_match, result, get_string("workspace"), get_string("no_auto_back_and_forth"));
#else
fprintf(stderr, "cmd_workspace_name(%s, %s)\n", get_string("workspace"), get_string("no_auto_back_and_forth"));
#endif
break;
case 51:
result->next_state = INITIAL;
#ifndef TEST_PARSER
/* cmd_bar(&current_match, result, get_string("bar_type"), get_string("bar_value"), get_string("bar_id")); */
#else
fprintf(stderr, "cmd_bar(%s, %s, %s)\n", get_string("bar_type"), get_string("bar_value"), get_string("bar_id"));
#endif
break;
case 52:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_debuglog(&current_match, result, get_string("argument"));
#else
fprintf(stderr, "cmd_debuglog(%s)\n", get_string("argument"));
#endif
break;
case 53:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_debuglog(&current_match, result, get_string("argument"));
#else
fprintf(stderr, "cmd_debuglog(%s)\n", get_string("argument"));
#endif
break;
case 54:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_debuglog(&current_match, result, get_string("argument"));
#else
fprintf(stderr, "cmd_debuglog(%s)\n", get_string("argument"));
#endif
break;
case 55:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_floating(&current_match, result, get_string("floating"));
#else
fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
#endif
break;
case 56:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_floating(&current_match, result, get_string("floating"));
#else
fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
#endif
break;
case 57:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_floating(&current_match, result, get_string("floating"));
#else
fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
#endif
break;
case 58:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_exit(&current_match, result);
#else
fprintf(stderr, "cmd_exit()\n");
#endif
break;
case 59:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_restart(&current_match, result);
#else
fprintf(stderr, "cmd_restart()\n");
#endif
break;
case 60:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_reload(&current_match, result);
#else
fprintf(stderr, "cmd_reload()\n");
#endif
break;
case 61:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_open(&current_match, result);
#else
fprintf(stderr, "cmd_open()\n");
#endif
break;
case 62:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_border(&current_match, result, get_string("border_style"), 0);
#else
fprintf(stderr, "cmd_border(%s, %d)\n", get_string("border_style"), 0);
#endif
break;
case 63:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_border(&current_match, result, "pixel", 1);
#else
fprintf(stderr, "cmd_border(%s, %d)\n", "pixel", 1);
#endif
break;
case 64:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout(&current_match, result, get_string("layout_mode"));
#else
fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
#endif
break;
case 65:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout(&current_match, result, get_string("layout_mode"));
#else
fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
#endif
break;
case 66:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout(&current_match, result, get_string("layout_mode"));
#else
fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
#endif
break;
case 67:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout(&current_match, result, get_string("layout_mode"));
#else
fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
#endif
break;
case 68:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout(&current_match, result, get_string("layout_mode"));
#else
fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
#endif
break;
case 69:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_layout(&current_match, result, get_string("layout_mode"));
#else
fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
#endif
break;
case 70:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_shmlog(&current_match, result, get_string("argument"));
#else
fprintf(stderr, "cmd_shmlog(%s)\n", get_string("argument"));
#endif
break;
case 71:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_sticky(&current_match, result, get_string("action"));
#else
fprintf(stderr, "cmd_sticky(%s)\n", get_string("action"));
#endif
break;
case 72:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_sticky(&current_match, result, get_string("action"));
#else
fprintf(stderr, "cmd_sticky(%s)\n", get_string("action"));
#endif
break;
case 73:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_sticky(&current_match, result, get_string("action"));
#else
fprintf(stderr, "cmd_sticky(%s)\n", get_string("action"));
#endif
break;
case 74:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_unmark(&current_match, result, get_string("mark"));
#else
fprintf(stderr, "cmd_unmark(%s)\n", get_string("mark"));
#endif
break;
case 75:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_unmark(&current_match, result, get_string("mark"));
#else
fprintf(stderr, "cmd_unmark(%s)\n", get_string("mark"));
#endif
break;
case 76:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_direction(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
#endif
break;
case 77:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_direction(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
#endif
break;
case 78:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_direction(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
#endif
break;
case 79:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_direction(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
#endif
break;
case 80:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
#else
fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
#endif
break;
case 81:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
#else
fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
#endif
break;
case 82:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
#else
fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
#endif
break;
case 83:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_level(&current_match, result, get_string("level"));
#else
fprintf(stderr, "cmd_focus_level(%s)\n", get_string("level"));
#endif
break;
case 84:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus_level(&current_match, result, get_string("level"));
#else
fprintf(stderr, "cmd_focus_level(%s)\n", get_string("level"));
#endif
break;
case 85:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_focus(&current_match, result);
#else
fprintf(stderr, "cmd_focus()\n");
#endif
break;
case 86:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_split(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
#endif
break;
case 87:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_split(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
#endif
break;
case 88:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_split(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
#endif
break;
case 89:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_split(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
#endif
break;
case 90:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_split(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
#endif
break;
case 91:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_split(&current_match, result, get_string("direction"));
#else
fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
#endif
break;
case 92:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_mark(&current_match, result, get_string("mark"), get_string("mode"), get_string("toggle"));
#else
fprintf(stderr, "cmd_mark(%s, %s, %s)\n", get_string("mark"), get_string("mode"), get_string("toggle"));
#endif
break;
case 93:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_mode(&current_match, result, get_string("mode"));
#else
fprintf(stderr, "cmd_mode(%s)\n", get_string("mode"));
#endif
break;
case 94:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_move_scratchpad(&current_match, result);
#else
fprintf(stderr, "cmd_move_scratchpad()\n");
#endif
break;
case 95:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_nop(&current_match, result, get_string("comment"));
#else
fprintf(stderr, "cmd_nop(%s)\n", get_string("comment"));
#endif
break;
case 96:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cmd_nop(&current_match, result, NULL);
#else
fprintf(stderr, "cmd_nop(NULL)\n");
#endif
break;
default:
printf("BUG in the parser. state = %d\n", call_identifier);
assert(false);
}
}

View File

@ -0,0 +1,61 @@
typedef enum {
RENAME_WORKSPACE_LIKELY_TO_NEW_NAME = 0,
RENAME_WORKSPACE_TO_NEW_NAME = 1,
RENAME_WORKSPACE_LIKELY_TO = 2,
MOVE_TO_ABSOLUTE_POSITION = 3,
MOVE_WORKSPACE_TO_OUTPUT = 4,
RESIZE_HEIGHT_GET_NUMBER = 5,
MOVE_WORKSPACE_NUMBER = 6,
RENAME_WORKSPACE_TO = 7,
RESIZE_TILING_FINAL = 8,
MOVE_TO_POSITION_X = 9,
MOVE_TO_POSITION_Y = 10,
FULLSCREEN_COMPAT = 11,
MOVE_DIRECTION_PX = 12,
BAR_HIDDEN_STATE = 13,
MOVE_TO_POSITION = 14,
RENAME_WORKSPACE = 15,
RESIZE_DIRECTION = 16,
RESIZE_TILING_OR = 17,
WORKSPACE_NUMBER = 18,
FULLSCREEN_MODE = 19,
MOVE_DIRECTION = 20,
MOVE_TO_OUTPUT = 21,
MOVE_WORKSPACE = 22,
APPEND_LAYOUT = 23,
LAYOUT_TOGGLE = 24,
RESIZE_HEIGHT = 25,
RESIZE_TILING = 26,
SWAP_ARGUMENT = 27,
BORDER_WIDTH = 28,
FOCUS_OUTPUT = 29,
MOVE_TO_MARK = 30,
RESIZE_WIDTH = 31,
TITLE_FORMAT = 32,
FULLSCREEN = 33,
RESIZE_SET = 34,
SCRATCHPAD = 35,
RESIZE_PX = 36,
WORKSPACE = 37,
BAR_MODE = 38,
BAR_W_ID = 39,
DEBUGLOG = 40,
FLOATING = 41,
INITIAL = 42,
BORDER = 43,
LAYOUT = 44,
RENAME = 45,
RESIZE = 46,
SHMLOG = 47,
STICKY = 48,
UNMARK = 49,
FOCUS = 50,
SPLIT = 51,
MARK = 52,
MODE = 53,
MOVE = 54,
SWAP = 55,
BAR = 56,
NOP = 57,
__CALL = 58
} cmdp_state;

View File

@ -0,0 +1,373 @@
static cmdp_token tokens_RENAME_WORKSPACE_LIKELY_TO_NEW_NAME[2] = {
{ "string", "new_name", __CALL, { 0 } },
{ "end", "", __CALL, { 1 } },
};
static cmdp_token tokens_RENAME_WORKSPACE_TO_NEW_NAME[1] = {
{ "string", "new_name", __CALL, { 2 } },
};
static cmdp_token tokens_RENAME_WORKSPACE_LIKELY_TO[2] = {
{ "'to ", "", RENAME_WORKSPACE_LIKELY_TO_NEW_NAME, { 0 } },
{ "word", "new_name", __CALL, { 3 } },
};
static cmdp_token tokens_MOVE_TO_ABSOLUTE_POSITION[1] = {
{ "'position", "", MOVE_TO_POSITION, { 0 } },
};
static cmdp_token tokens_MOVE_WORKSPACE_TO_OUTPUT[2] = {
{ "'output", "", MOVE_WORKSPACE_TO_OUTPUT, { 0 } },
{ "string", "output", __CALL, { 4 } },
};
static cmdp_token tokens_RESIZE_HEIGHT_GET_NUMBER[1] = {
{ "number", "height", RESIZE_HEIGHT, { 0 } },
};
static cmdp_token tokens_MOVE_WORKSPACE_NUMBER[1] = {
{ "string", "number", __CALL, { 5 } },
};
static cmdp_token tokens_RENAME_WORKSPACE_TO[1] = {
{ "'to", "", RENAME_WORKSPACE_TO_NEW_NAME, { 0 } },
};
static cmdp_token tokens_RESIZE_TILING_FINAL[2] = {
{ "'ppt", "", __CALL, { 6 } },
{ "end", "", __CALL, { 7 } },
};
static cmdp_token tokens_MOVE_TO_POSITION_X[2] = {
{ "'px", "", MOVE_TO_POSITION_X, { 0 } },
{ "number", "coord_y", MOVE_TO_POSITION_Y, { 0 } },
};
static cmdp_token tokens_MOVE_TO_POSITION_Y[2] = {
{ "'px", "", __CALL, { 8 } },
{ "end", "", __CALL, { 9 } },
};
static cmdp_token tokens_FULLSCREEN_COMPAT[2] = {
{ "'global", "mode", __CALL, { 10 } },
{ "end", "", __CALL, { 11 } },
};
static cmdp_token tokens_MOVE_DIRECTION_PX[2] = {
{ "'px", "", __CALL, { 12 } },
{ "end", "", __CALL, { 13 } },
};
static cmdp_token tokens_BAR_HIDDEN_STATE[3] = {
{ "'hide", "bar_value", BAR_W_ID, { 0 } },
{ "'show", "bar_value", BAR_W_ID, { 0 } },
{ "'toggle", "bar_value", BAR_W_ID, { 0 } },
};
static cmdp_token tokens_MOVE_TO_POSITION[5] = {
{ "'center", "", __CALL, { 14 } },
{ "'mouse", "", __CALL, { 15 } },
{ "'cursor", "", __CALL, { 16 } },
{ "'pointer", "", __CALL, { 17 } },
{ "number", "coord_x", MOVE_TO_POSITION_X, { 0 } },
};
static cmdp_token tokens_RENAME_WORKSPACE[2] = {
{ "'to", "", RENAME_WORKSPACE_LIKELY_TO, { 0 } },
{ "word", "old_name", RENAME_WORKSPACE_TO, { 0 } },
};
static cmdp_token tokens_RESIZE_DIRECTION[6] = {
{ "'up", "direction", RESIZE_PX, { 0 } },
{ "'down", "direction", RESIZE_PX, { 0 } },
{ "'left", "direction", RESIZE_PX, { 0 } },
{ "'right", "direction", RESIZE_PX, { 0 } },
{ "'width", "direction", RESIZE_PX, { 0 } },
{ "'height", "direction", RESIZE_PX, { 0 } },
};
static cmdp_token tokens_RESIZE_TILING_OR[1] = {
{ "number", "resize_ppt", RESIZE_TILING_FINAL, { 0 } },
};
static cmdp_token tokens_WORKSPACE_NUMBER[1] = {
{ "string", "workspace", __CALL, { 18 } },
};
static cmdp_token tokens_FULLSCREEN_MODE[2] = {
{ "'global", "mode", __CALL, { 19 } },
{ "end", "", __CALL, { 20 } },
};
static cmdp_token tokens_MOVE_DIRECTION[2] = {
{ "number", "pixels", MOVE_DIRECTION_PX, { 0 } },
{ "end", "", __CALL, { 21 } },
};
static cmdp_token tokens_MOVE_TO_OUTPUT[1] = {
{ "string", "output", __CALL, { 22 } },
};
static cmdp_token tokens_MOVE_WORKSPACE[9] = {
{ "'to ", "", MOVE_WORKSPACE_TO_OUTPUT, { 0 } },
{ "'next_on_output", "workspace", __CALL, { 23 } },
{ "'prev_on_output", "workspace", __CALL, { 24 } },
{ "'next", "workspace", __CALL, { 25 } },
{ "'prev", "workspace", __CALL, { 26 } },
{ "'current", "workspace", __CALL, { 27 } },
{ "'back_and_forth", "", __CALL, { 28 } },
{ "'number", "", MOVE_WORKSPACE_NUMBER, { 0 } },
{ "string", "workspace", __CALL, { 29 } },
};
static cmdp_token tokens_APPEND_LAYOUT[1] = {
{ "string", "path", __CALL, { 30 } },
};
static cmdp_token tokens_LAYOUT_TOGGLE[2] = {
{ "end", "", __CALL, { 31 } },
{ "string", "toggle_mode", __CALL, { 32 } },
};
static cmdp_token tokens_RESIZE_HEIGHT[3] = {
{ "'px", "mode_height", RESIZE_HEIGHT, { 0 } },
{ "'ppt", "mode_height", RESIZE_HEIGHT, { 0 } },
{ "end", "", __CALL, { 33 } },
};
static cmdp_token tokens_RESIZE_TILING[3] = {
{ "'px", "", RESIZE_TILING, { 0 } },
{ "'or", "", RESIZE_TILING_OR, { 0 } },
{ "end", "", __CALL, { 34 } },
};
static cmdp_token tokens_SWAP_ARGUMENT[1] = {
{ "string", "arg", __CALL, { 35 } },
};
static cmdp_token tokens_BORDER_WIDTH[2] = {
{ "end", "", __CALL, { 36 } },
{ "number", "border_width", __CALL, { 37 } },
};
static cmdp_token tokens_FOCUS_OUTPUT[1] = {
{ "string", "output", __CALL, { 38 } },
};
static cmdp_token tokens_MOVE_TO_MARK[1] = {
{ "string", "mark", __CALL, { 39 } },
};
static cmdp_token tokens_RESIZE_WIDTH[5] = {
{ "'px", "mode_width", RESIZE_WIDTH, { 0 } },
{ "'ppt", "mode_width", RESIZE_WIDTH, { 0 } },
{ "end", "", __CALL, { 40 } },
{ "'height", "", RESIZE_HEIGHT_GET_NUMBER, { 0 } },
{ "number", "height", RESIZE_HEIGHT, { 0 } },
};
static cmdp_token tokens_TITLE_FORMAT[1] = {
{ "string", "format", __CALL, { 41 } },
};
static cmdp_token tokens_FULLSCREEN[4] = {
{ "'disable", "action", __CALL, { 42 } },
{ "'enable", "action", FULLSCREEN_MODE, { 0 } },
{ "'toggle", "action", FULLSCREEN_MODE, { 0 } },
{ "'", "action", FULLSCREEN_COMPAT, { 0 } },
};
static cmdp_token tokens_RESIZE_SET[3] = {
{ "'height", "", RESIZE_HEIGHT_GET_NUMBER, { 0 } },
{ "'width", "", RESIZE_SET, { 0 } },
{ "number", "width", RESIZE_WIDTH, { 0 } },
};
static cmdp_token tokens_SCRATCHPAD[1] = {
{ "'show", "", __CALL, { 43 } },
};
static cmdp_token tokens_RESIZE_PX[2] = {
{ "number", "resize_px", RESIZE_TILING, { 0 } },
{ "end", "", __CALL, { 44 } },
};
static cmdp_token tokens_WORKSPACE[8] = {
{ "'--no-auto-back-and-forth", "no_auto_back_and_forth", WORKSPACE, { 0 } },
{ "'next_on_output", "direction", __CALL, { 45 } },
{ "'prev_on_output", "direction", __CALL, { 46 } },
{ "'next", "direction", __CALL, { 47 } },
{ "'prev", "direction", __CALL, { 48 } },
{ "'back_and_forth", "", __CALL, { 49 } },
{ "'number", "", WORKSPACE_NUMBER, { 0 } },
{ "string", "workspace", __CALL, { 50 } },
};
static cmdp_token tokens_BAR_MODE[4] = {
{ "'dock", "bar_value", BAR_W_ID, { 0 } },
{ "'hide", "bar_value", BAR_W_ID, { 0 } },
{ "'invisible", "bar_value", BAR_W_ID, { 0 } },
{ "'toggle", "bar_value", BAR_W_ID, { 0 } },
};
static cmdp_token tokens_BAR_W_ID[2] = {
{ "word", "bar_id", BAR_W_ID, { 0 } },
{ "end", "", __CALL, { 51 } },
};
static cmdp_token tokens_DEBUGLOG[3] = {
{ "'toggle", "argument", __CALL, { 52 } },
{ "'on", "argument", __CALL, { 53 } },
{ "'off", "argument", __CALL, { 54 } },
};
static cmdp_token tokens_FLOATING[3] = {
{ "'enable", "floating", __CALL, { 55 } },
{ "'disable", "floating", __CALL, { 56 } },
{ "'toggle", "floating", __CALL, { 57 } },
};
static cmdp_token tokens_INITIAL[27] = {
{ "end", "", INITIAL, { 0 } },
{ "'move", "", MOVE, { 0 } },
{ "'exit", "", __CALL, { 58 } },
{ "'restart", "", __CALL, { 59 } },
{ "'reload", "", __CALL, { 60 } },
{ "'shmlog", "", SHMLOG, { 0 } },
{ "'debuglog", "", DEBUGLOG, { 0 } },
{ "'border", "", BORDER, { 0 } },
{ "'layout", "", LAYOUT, { 0 } },
{ "'append_layout", "", APPEND_LAYOUT, { 0 } },
{ "'workspace", "", WORKSPACE, { 0 } },
{ "'focus", "", FOCUS, { 0 } },
{ "'open", "", __CALL, { 61 } },
{ "'fullscreen", "", FULLSCREEN, { 0 } },
{ "'sticky", "", STICKY, { 0 } },
{ "'split", "", SPLIT, { 0 } },
{ "'floating", "", FLOATING, { 0 } },
{ "'mark", "", MARK, { 0 } },
{ "'unmark", "", UNMARK, { 0 } },
{ "'resize", "", RESIZE, { 0 } },
{ "'rename", "", RENAME, { 0 } },
{ "'nop", "", NOP, { 0 } },
{ "'scratchpad", "", SCRATCHPAD, { 0 } },
{ "'swap", "", SWAP, { 0 } },
{ "'title_format", "", TITLE_FORMAT, { 0 } },
{ "'mode", "", MODE, { 0 } },
{ "'bar", "", BAR, { 0 } },
};
static cmdp_token tokens_BORDER[5] = {
{ "'normal", "border_style", BORDER_WIDTH, { 0 } },
{ "'pixel", "border_style", BORDER_WIDTH, { 0 } },
{ "'toggle", "border_style", BORDER_WIDTH, { 0 } },
{ "'none", "border_style", __CALL, { 62 } },
{ "'1pixel", "", __CALL, { 63 } },
};
static cmdp_token tokens_LAYOUT[7] = {
{ "'default", "layout_mode", __CALL, { 64 } },
{ "'stacked", "layout_mode", __CALL, { 65 } },
{ "'stacking", "layout_mode", __CALL, { 66 } },
{ "'tabbed", "layout_mode", __CALL, { 67 } },
{ "'splitv", "layout_mode", __CALL, { 68 } },
{ "'splith", "layout_mode", __CALL, { 69 } },
{ "'toggle", "", LAYOUT_TOGGLE, { 0 } },
};
static cmdp_token tokens_RENAME[1] = {
{ "'workspace", "", RENAME_WORKSPACE, { 0 } },
};
static cmdp_token tokens_RESIZE[3] = {
{ "'grow", "way", RESIZE_DIRECTION, { 0 } },
{ "'shrink", "way", RESIZE_DIRECTION, { 0 } },
{ "'set", "set", RESIZE_SET, { 0 } },
};
static cmdp_token tokens_SHMLOG[1] = {
{ "string", "argument", __CALL, { 70 } },
};
static cmdp_token tokens_STICKY[3] = {
{ "'enable", "action", __CALL, { 71 } },
{ "'disable", "action", __CALL, { 72 } },
{ "'toggle", "action", __CALL, { 73 } },
};
static cmdp_token tokens_UNMARK[2] = {
{ "end", "", __CALL, { 74 } },
{ "string", "mark", __CALL, { 75 } },
};
static cmdp_token tokens_FOCUS[11] = {
{ "'left", "direction", __CALL, { 76 } },
{ "'right", "direction", __CALL, { 77 } },
{ "'up", "direction", __CALL, { 78 } },
{ "'down", "direction", __CALL, { 79 } },
{ "'output", "", FOCUS_OUTPUT, { 0 } },
{ "'tiling", "window_mode", __CALL, { 80 } },
{ "'floating", "window_mode", __CALL, { 81 } },
{ "'mode_toggle", "window_mode", __CALL, { 82 } },
{ "'parent", "level", __CALL, { 83 } },
{ "'child", "level", __CALL, { 84 } },
{ "end", "", __CALL, { 85 } },
};
static cmdp_token tokens_SPLIT[6] = {
{ "'horizontal", "direction", __CALL, { 86 } },
{ "'vertical", "direction", __CALL, { 87 } },
{ "'toggle", "direction", __CALL, { 88 } },
{ "'v", "direction", __CALL, { 89 } },
{ "'h", "direction", __CALL, { 90 } },
{ "'t", "direction", __CALL, { 91 } },
};
static cmdp_token tokens_MARK[4] = {
{ "'--add", "mode", MARK, { 0 } },
{ "'--replace", "mode", MARK, { 0 } },
{ "'--toggle", "toggle", MARK, { 0 } },
{ "string", "mark", __CALL, { 92 } },
};
static cmdp_token tokens_MODE[1] = {
{ "string", "mode", __CALL, { 93 } },
};
static cmdp_token tokens_MOVE[14] = {
{ "'window", "", MOVE, { 0 } },
{ "'container", "", MOVE, { 0 } },
{ "'to", "", MOVE, { 0 } },
{ "'--no-auto-back-and-forth", "no_auto_back_and_forth", MOVE, { 0 } },
{ "'workspace", "", MOVE_WORKSPACE, { 0 } },
{ "'output", "", MOVE_TO_OUTPUT, { 0 } },
{ "'mark", "", MOVE_TO_MARK, { 0 } },
{ "'scratchpad", "", __CALL, { 94 } },
{ "'left", "direction", MOVE_DIRECTION, { 0 } },
{ "'right", "direction", MOVE_DIRECTION, { 0 } },
{ "'up", "direction", MOVE_DIRECTION, { 0 } },
{ "'down", "direction", MOVE_DIRECTION, { 0 } },
{ "'position", "method", MOVE_TO_POSITION, { 0 } },
{ "'absolute", "method", MOVE_TO_ABSOLUTE_POSITION, { 0 } },
};
static cmdp_token tokens_SWAP[5] = {
{ "'container", "", SWAP, { 0 } },
{ "'with", "", SWAP, { 0 } },
{ "'id", "mode", SWAP_ARGUMENT, { 0 } },
{ "'con_id", "mode", SWAP_ARGUMENT, { 0 } },
{ "'mark", "mode", SWAP_ARGUMENT, { 0 } },
};
static cmdp_token tokens_BAR[2] = {
{ "'hidden_state", "bar_type", BAR_HIDDEN_STATE, { 0 } },
{ "'mode", "bar_type", BAR_MODE, { 0 } },
};
static cmdp_token tokens_NOP[2] = {
{ "string", "comment", __CALL, { 95 } },
{ "end", "", __CALL, { 96 } },
};
static cmdp_token_ptr tokens[58] = {
{ tokens_RENAME_WORKSPACE_LIKELY_TO_NEW_NAME, 2 },
{ tokens_RENAME_WORKSPACE_TO_NEW_NAME, 1 },
{ tokens_RENAME_WORKSPACE_LIKELY_TO, 2 },
{ tokens_MOVE_TO_ABSOLUTE_POSITION, 1 },
{ tokens_MOVE_WORKSPACE_TO_OUTPUT, 2 },
{ tokens_RESIZE_HEIGHT_GET_NUMBER, 1 },
{ tokens_MOVE_WORKSPACE_NUMBER, 1 },
{ tokens_RENAME_WORKSPACE_TO, 1 },
{ tokens_RESIZE_TILING_FINAL, 2 },
{ tokens_MOVE_TO_POSITION_X, 2 },
{ tokens_MOVE_TO_POSITION_Y, 2 },
{ tokens_FULLSCREEN_COMPAT, 2 },
{ tokens_MOVE_DIRECTION_PX, 2 },
{ tokens_BAR_HIDDEN_STATE, 3 },
{ tokens_MOVE_TO_POSITION, 5 },
{ tokens_RENAME_WORKSPACE, 2 },
{ tokens_RESIZE_DIRECTION, 6 },
{ tokens_RESIZE_TILING_OR, 1 },
{ tokens_WORKSPACE_NUMBER, 1 },
{ tokens_FULLSCREEN_MODE, 2 },
{ tokens_MOVE_DIRECTION, 2 },
{ tokens_MOVE_TO_OUTPUT, 1 },
{ tokens_MOVE_WORKSPACE, 9 },
{ tokens_APPEND_LAYOUT, 1 },
{ tokens_LAYOUT_TOGGLE, 2 },
{ tokens_RESIZE_HEIGHT, 3 },
{ tokens_RESIZE_TILING, 3 },
{ tokens_SWAP_ARGUMENT, 1 },
{ tokens_BORDER_WIDTH, 2 },
{ tokens_FOCUS_OUTPUT, 1 },
{ tokens_MOVE_TO_MARK, 1 },
{ tokens_RESIZE_WIDTH, 5 },
{ tokens_TITLE_FORMAT, 1 },
{ tokens_FULLSCREEN, 4 },
{ tokens_RESIZE_SET, 3 },
{ tokens_SCRATCHPAD, 1 },
{ tokens_RESIZE_PX, 2 },
{ tokens_WORKSPACE, 8 },
{ tokens_BAR_MODE, 4 },
{ tokens_BAR_W_ID, 2 },
{ tokens_DEBUGLOG, 3 },
{ tokens_FLOATING, 3 },
{ tokens_INITIAL, 27 },
{ tokens_BORDER, 5 },
{ tokens_LAYOUT, 7 },
{ tokens_RENAME, 1 },
{ tokens_RESIZE, 3 },
{ tokens_SHMLOG, 1 },
{ tokens_STICKY, 3 },
{ tokens_UNMARK, 2 },
{ tokens_FOCUS, 11 },
{ tokens_SPLIT, 6 },
{ tokens_MARK, 4 },
{ tokens_MODE, 1 },
{ tokens_MOVE, 14 },
{ tokens_SWAP, 5 },
{ tokens_BAR, 2 },
{ tokens_NOP, 2 },
};

View File

@ -0,0 +1,703 @@
static void GENERATED_call(const int call_identifier, struct ConfigResultIR *result) {
switch (call_identifier) {
case 0:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_force_display_urgency_hint(&current_match, result, get_long("duration_ms"));
#else
fprintf(stderr, "cfg_force_display_urgency_hint(%ld)\n", get_long("duration_ms"));
#endif
break;
case 1:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_floating_maximum_size(&current_match, result, get_long("width"), get_long("height"));
#else
fprintf(stderr, "cfg_floating_maximum_size(%ld, %ld)\n", get_long("width"), get_long("height"));
#endif
break;
case 2:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_floating_minimum_size(&current_match, result, get_long("width"), get_long("height"));
#else
fprintf(stderr, "cfg_floating_minimum_size(%ld, %ld)\n", get_long("width"), get_long("height"));
#endif
break;
case 3:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_strip_workspace_numbers(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_bar_strip_workspace_numbers(%s)\n", get_string("value"));
#endif
break;
case 4:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_binding_mode_indicator(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_bar_binding_mode_indicator(%s)\n", get_string("value"));
#endif
break;
case 5:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_on_window_activation(&current_match, result, get_string("mode"));
#else
fprintf(stderr, "cfg_focus_on_window_activation(%s)\n", get_string("mode"));
#endif
break;
case 6:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_strip_workspace_name(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_bar_strip_workspace_name(%s)\n", get_string("value"));
#endif
break;
case 7:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_default_border(&current_match, result, get_string("windowtype"), get_string("border"), get_long("width"));
#else
fprintf(stderr, "cfg_default_border(%s, %s, %ld)\n", get_string("windowtype"), get_string("border"), get_long("width"));
#endif
break;
case 8:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_workspace_back_and_forth(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_workspace_back_and_forth(%s)\n", get_string("value"));
#endif
break;
case 9:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_assign(&current_match, result, get_string("number"), 1);
#else
fprintf(stderr, "cfg_assign(%s, %d)\n", get_string("number"), 1);
#endif
break;
case 10:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_popup_during_fullscreen(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_popup_during_fullscreen(%s)\n", get_string("value"));
#endif
break;
case 11:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_popup_during_fullscreen(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_popup_during_fullscreen(%s)\n", get_string("value"));
#endif
break;
case 12:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_popup_during_fullscreen(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_popup_during_fullscreen(%s)\n", get_string("value"));
#endif
break;
case 13:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_workspace_buttons(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_bar_workspace_buttons(%s)\n", get_string("value"));
#endif
break;
case 14:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_default_border(&current_match, result, get_string("windowtype"), get_string("border"), 2);
#else
fprintf(stderr, "cfg_default_border(%s, %s, %d)\n", get_string("windowtype"), get_string("border"), 2);
#endif
break;
case 15:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_separator_symbol(&current_match, result, get_string("separator"));
#else
fprintf(stderr, "cfg_bar_separator_symbol(%s)\n", get_string("separator"));
#endif
break;
case 16:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_force_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_force_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 17:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_tray_padding(&current_match, result, get_long("padding_px"));
#else
fprintf(stderr, "cfg_bar_tray_padding(%ld)\n", get_long("padding_px"));
#endif
break;
case 18:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_default_orientation(&current_match, result, get_string("orientation"));
#else
fprintf(stderr, "cfg_default_orientation(%s)\n", get_string("orientation"));
#endif
break;
case 19:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_default_orientation(&current_match, result, get_string("orientation"));
#else
fprintf(stderr, "cfg_default_orientation(%s)\n", get_string("orientation"));
#endif
break;
case 20:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_default_orientation(&current_match, result, get_string("orientation"));
#else
fprintf(stderr, "cfg_default_orientation(%s)\n", get_string("orientation"));
#endif
break;
case 21:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_follows_mouse(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_follows_mouse(%s)\n", get_string("value"));
#endif
break;
case 22:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), get_string("indicator"), get_string("child_border"));
#else
fprintf(stderr, "cfg_color(%s, %s, %s, %s, %s, %s)\n", get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), get_string("indicator"), get_string("child_border"));
#endif
break;
case 23:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), get_string("indicator"), NULL);
#else
fprintf(stderr, "cfg_color(%s, %s, %s, %s, %s, NULL)\n", get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), get_string("indicator"));
#endif
break;
case 24:
result->next_state = BAR_COLORS;
#ifndef TEST_PARSER
cfg_bar_color_single(&current_match, result, get_string("colorclass"), get_string("color"));
#else
fprintf(stderr, "cfg_bar_color_single(%s, %s)\n", get_string("colorclass"), get_string("color"));
#endif
break;
case 25:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_floating_modifier(&current_match, result, get_string("modifiers"));
#else
fprintf(stderr, "cfg_floating_modifier(%s)\n", get_string("modifiers"));
#endif
break;
case 26:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 27:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 28:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 29:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 30:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 31:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 32:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 33:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 34:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 35:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 36:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_hide_edge_borders(&current_match, result, get_string("hide_borders"));
#else
fprintf(stderr, "cfg_hide_edge_borders(%s)\n", get_string("hide_borders"));
#endif
break;
case 37:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_assign(&current_match, result, get_string("workspace"), 0);
#else
fprintf(stderr, "cfg_assign(%s, %d)\n", get_string("workspace"), 0);
#endif
break;
case 38:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_hidden_state(&current_match, result, get_string("hidden_state"));
#else
fprintf(stderr, "cfg_bar_hidden_state(%s)\n", get_string("hidden_state"));
#endif
break;
case 39:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_hidden_state(&current_match, result, get_string("hidden_state"));
#else
fprintf(stderr, "cfg_bar_hidden_state(%s)\n", get_string("hidden_state"));
#endif
break;
case 40:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_ipc_kill_timeout(&current_match, result, get_long("timeout"));
#else
fprintf(stderr, "cfg_ipc_kill_timeout(%ld)\n", get_long("timeout"));
#endif
break;
case 41:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_workspace_layout(&current_match, result, get_string("layout"));
#else
fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
#endif
break;
case 42:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_workspace_layout(&current_match, result, get_string("layout"));
#else
fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
#endif
break;
case 43:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_workspace_layout(&current_match, result, get_string("layout"));
#else
fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
#endif
break;
case 44:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_workspace_layout(&current_match, result, get_string("layout"));
#else
fprintf(stderr, "cfg_workspace_layout(%s)\n", get_string("layout"));
#endif
break;
case 45:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_i3bar_command(&current_match, result, get_string("command"));
#else
fprintf(stderr, "cfg_bar_i3bar_command(%s)\n", get_string("command"));
#endif
break;
case 46:
result->next_state = BAR_COLORS;
#ifndef TEST_PARSER
cfg_bar_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), NULL);
#else
fprintf(stderr, "cfg_bar_color(%s, %s, %s, NULL)\n", get_string("colorclass"), get_string("border"), get_string("background"));
#endif
break;
case 47:
result->next_state = BAR_COLORS;
#ifndef TEST_PARSER
cfg_bar_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"));
#else
fprintf(stderr, "cfg_bar_color(%s, %s, %s, %s)\n", get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"));
#endif
break;
case 48:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_socket_path(&current_match, result, get_string("path"));
#else
fprintf(stderr, "cfg_bar_socket_path(%s)\n", get_string("path"));
#endif
break;
case 49:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_tray_output(&current_match, result, get_string("output"));
#else
fprintf(stderr, "cfg_bar_tray_output(%s)\n", get_string("output"));
#endif
break;
case 50:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_color(&current_match, result, get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"), NULL, NULL);
#else
fprintf(stderr, "cfg_color(%s, %s, %s, %s, NULL, NULL)\n", get_string("colorclass"), get_string("border"), get_string("background"), get_string("text"));
#endif
break;
case 51:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_disable_randr15(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_disable_randr15(%s)\n", get_string("value"));
#endif
break;
case 52:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_default_border(&current_match, result, get_string("windowtype"), get_string("border"), -1);
#else
fprintf(stderr, "cfg_default_border(%s, %s, %d)\n", get_string("windowtype"), get_string("border"), -1);
#endif
break;
case 53:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_default_border(&current_match, result, get_string("windowtype"), get_string("border"), -1);
#else
fprintf(stderr, "cfg_default_border(%s, %s, %d)\n", get_string("windowtype"), get_string("border"), -1);
#endif
break;
case 54:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 55:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 56:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 57:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 58:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 59:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 60:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 61:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 62:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 63:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 64:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 65:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 66:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_focus_wrapping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_focus_wrapping(%s)\n", get_string("value"));
#endif
break;
case 67:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_force_xinerama(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_force_xinerama(%s)\n", get_string("value"));
#endif
break;
case 68:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_assign_output(&current_match, result, get_string("output"));
#else
fprintf(stderr, "cfg_assign_output(%s)\n", get_string("output"));
#endif
break;
case 69:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_mouse_warping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_mouse_warping(%s)\n", get_string("value"));
#endif
break;
case 70:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_mouse_warping(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_mouse_warping(%s)\n", get_string("value"));
#endif
break;
case 71:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_restart_state(&current_match, result, get_string("path"));
#else
fprintf(stderr, "cfg_restart_state(%s)\n", get_string("path"));
#endif
break;
case 72:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_modifier(&current_match, result, NULL);
#else
fprintf(stderr, "cfg_bar_modifier(NULL)\n");
#endif
break;
case 73:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_modifier(&current_match, result, NULL);
#else
fprintf(stderr, "cfg_bar_modifier(NULL)\n");
#endif
break;
case 74:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_modifier(&current_match, result, get_string("modifiers"));
#else
fprintf(stderr, "cfg_bar_modifier(%s)\n", get_string("modifiers"));
#endif
break;
case 75:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_color_single(&current_match, result, get_string("colorclass"), get_string("color"));
#else
fprintf(stderr, "cfg_color_single(%s, %s)\n", get_string("colorclass"), get_string("color"));
#endif
break;
case 76:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_fake_outputs(&current_match, result, get_string("outputs"));
#else
fprintf(stderr, "cfg_fake_outputs(%s)\n", get_string("outputs"));
#endif
break;
case 77:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_verbose(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_bar_verbose(%s)\n", get_string("value"));
#endif
break;
case 78:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_title_align(&current_match, result, get_string("alignment"));
#else
fprintf(stderr, "cfg_title_align(%s)\n", get_string("alignment"));
#endif
break;
case 79:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_title_align(&current_match, result, get_string("alignment"));
#else
fprintf(stderr, "cfg_title_align(%s)\n", get_string("alignment"));
#endif
break;
case 80:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_title_align(&current_match, result, get_string("alignment"));
#else
fprintf(stderr, "cfg_title_align(%s)\n", get_string("alignment"));
#endif
break;
case 81:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_output(&current_match, result, get_string("output"));
#else
fprintf(stderr, "cfg_bar_output(%s)\n", get_string("output"));
#endif
break;
case 82:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_ipc_socket(&current_match, result, get_string("path"));
#else
fprintf(stderr, "cfg_ipc_socket(%s)\n", get_string("path"));
#endif
break;
case 83:
result->next_state = INITIAL;
#ifndef TEST_PARSER
cfg_show_marks(&current_match, result, get_string("value"));
#else
fprintf(stderr, "cfg_show_marks(%s)\n", get_string("value"));
#endif
break;
case 84:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_font(&current_match, result, get_string("font"));
#else
fprintf(stderr, "cfg_bar_font(%s)\n", get_string("font"));
#endif
break;
case 85:
result->next_state = MODEBRACE;
#ifndef TEST_PARSER
cfg_enter_mode(&current_match, result, get_string("pango_markup"), get_string("modename"));
#else
fprintf(stderr, "cfg_enter_mode(%s, %s)\n", get_string("pango_markup"), get_string("modename"));
#endif
break;
case 86:
result->next_state = BAR;
#ifndef TEST_PARSER
cfg_bar_id(&current_match, result, get_string("bar_id"));
#else
fprintf(stderr, "cfg_bar_id(%s)\n", get_string("bar_id"));
#endif
break;
default:
printf("BUG in the parser. state = %d\n", call_identifier);
assert(false);
}
}

View File

@ -0,0 +1,71 @@
typedef enum {
FORCE_DISPLAY_URGENCY_HINT_MS = 0,
FLOATING_MAXIMUM_SIZE_HEIGHT = 1,
FLOATING_MINIMUM_SIZE_HEIGHT = 2,
BAR_STRIP_WORKSPACE_NUMBERS = 3,
FLOATING_MAXIMUM_SIZE_WIDTH = 4,
FLOATING_MINIMUM_SIZE_WIDTH = 5,
BAR_BINDING_MODE_INDICATOR = 6,
FOCUS_ON_WINDOW_ACTIVATION = 7,
FORCE_DISPLAY_URGENCY_HINT = 8,
BAR_STRIP_WORKSPACE_NAME = 9,
DEFAULT_BORDER_PIXELS_PX = 10,
WORKSPACE_BACK_AND_FORTH = 11,
ASSIGN_WORKSPACE_NUMBER = 12,
FLOATING_MAXIMUM_SIZE_X = 13,
FLOATING_MINIMUM_SIZE_X = 14,
POPUP_DURING_FULLSCREEN = 15,
BAR_COLORS_IGNORE_LINE = 16,
BAR_COLORS_BACKGROUND = 17,
BAR_WORKSPACE_BUTTONS = 18,
DEFAULT_BORDER_PIXELS = 19,
BAR_SEPARATOR_SYMBOL = 20,
FORCE_FOCUS_WRAPPING = 21,
BAR_TRAY_PADDING_PX = 22,
DEFAULT_ORIENTATION = 23,
FOCUS_FOLLOWS_MOUSE = 24,
COLOR_CHILD_BORDER = 25,
BAR_COLORS_BORDER = 26,
BAR_COLORS_SINGLE = 27,
FLOATING_MODIFIER = 28,
HIDE_EDGE_BORDERS = 29,
ASSIGN_WORKSPACE = 30,
BAR_COLORS_BRACE = 31,
BAR_HIDDEN_STATE = 32,
BAR_TRAY_PADDING = 33,
COLOR_BACKGROUND = 34,
IPC_KILL_TIMEOUT = 35,
WORKSPACE_LAYOUT = 36,
BAR_BAR_COMMAND = 37,
BAR_COLORS_TEXT = 38,
BAR_IGNORE_LINE = 39,
BAR_SOCKET_PATH = 40,
BAR_TRAY_OUTPUT = 41,
COLOR_INDICATOR = 42,
DISABLE_RANDR15 = 43,
DEFAULT_BORDER = 44,
FOCUS_WRAPPING = 45,
FORCE_XINERAMA = 46,
ASSIGN_OUTPUT = 47,
MOUSE_WARPING = 48,
RESTART_STATE = 49,
BAR_MODIFIER = 50,
COLOR_BORDER = 51,
COLOR_SINGLE = 52,
FAKE_OUTPUTS = 53,
BAR_VERBOSE = 54,
IGNORE_LINE = 55,
TITLE_ALIGN = 56,
BAR_COLORS = 57,
BAR_OUTPUT = 58,
COLOR_TEXT = 59,
IPC_SOCKET = 60,
SHOW_MARKS = 61,
MODEBRACE = 62,
BAR_FONT = 63,
MODENAME = 64,
INITIAL = 65,
BAR_ID = 66,
BAR = 67,
__CALL = 68
} cmdp_state;

View File

@ -0,0 +1,418 @@
static cmdp_token tokens_FORCE_DISPLAY_URGENCY_HINT_MS[2] = {
{ "'ms", "", FORCE_DISPLAY_URGENCY_HINT_MS, { 0 } },
{ "end", "", __CALL, { 0 } },
};
static cmdp_token tokens_FLOATING_MAXIMUM_SIZE_HEIGHT[1] = {
{ "number", "height", __CALL, { 1 } },
};
static cmdp_token tokens_FLOATING_MINIMUM_SIZE_HEIGHT[1] = {
{ "number", "height", __CALL, { 2 } },
};
static cmdp_token tokens_BAR_STRIP_WORKSPACE_NUMBERS[1] = {
{ "word", "value", __CALL, { 3 } },
};
static cmdp_token tokens_FLOATING_MAXIMUM_SIZE_WIDTH[1] = {
{ "number", "width", FLOATING_MAXIMUM_SIZE_X, { 0 } },
};
static cmdp_token tokens_FLOATING_MINIMUM_SIZE_WIDTH[1] = {
{ "number", "width", FLOATING_MINIMUM_SIZE_X, { 0 } },
};
static cmdp_token tokens_BAR_BINDING_MODE_INDICATOR[1] = {
{ "word", "value", __CALL, { 4 } },
};
static cmdp_token tokens_FOCUS_ON_WINDOW_ACTIVATION[1] = {
{ "word", "mode", __CALL, { 5 } },
};
static cmdp_token tokens_FORCE_DISPLAY_URGENCY_HINT[1] = {
{ "number", "duration_ms", FORCE_DISPLAY_URGENCY_HINT_MS, { 0 } },
};
static cmdp_token tokens_BAR_STRIP_WORKSPACE_NAME[1] = {
{ "word", "value", __CALL, { 6 } },
};
static cmdp_token tokens_DEFAULT_BORDER_PIXELS_PX[2] = {
{ "'px", "", DEFAULT_BORDER_PIXELS_PX, { 0 } },
{ "end", "", __CALL, { 7 } },
};
static cmdp_token tokens_WORKSPACE_BACK_AND_FORTH[1] = {
{ "word", "value", __CALL, { 8 } },
};
static cmdp_token tokens_ASSIGN_WORKSPACE_NUMBER[1] = {
{ "string", "number", __CALL, { 9 } },
};
static cmdp_token tokens_FLOATING_MAXIMUM_SIZE_X[1] = {
{ "'x", "", FLOATING_MAXIMUM_SIZE_HEIGHT, { 0 } },
};
static cmdp_token tokens_FLOATING_MINIMUM_SIZE_X[1] = {
{ "'x", "", FLOATING_MINIMUM_SIZE_HEIGHT, { 0 } },
};
static cmdp_token tokens_POPUP_DURING_FULLSCREEN[3] = {
{ "'ignore", "value", __CALL, { 10 } },
{ "'leave_fullscreen", "value", __CALL, { 11 } },
{ "'smart", "value", __CALL, { 12 } },
};
static cmdp_token tokens_BAR_COLORS_IGNORE_LINE[1] = {
{ "line", "", BAR_COLORS, { 0 } },
};
static cmdp_token tokens_BAR_COLORS_BACKGROUND[1] = {
{ "word", "background", BAR_COLORS_TEXT, { 0 } },
};
static cmdp_token tokens_BAR_WORKSPACE_BUTTONS[1] = {
{ "word", "value", __CALL, { 13 } },
};
static cmdp_token tokens_DEFAULT_BORDER_PIXELS[2] = {
{ "end", "", __CALL, { 14 } },
{ "number", "width", DEFAULT_BORDER_PIXELS_PX, { 0 } },
};
static cmdp_token tokens_BAR_SEPARATOR_SYMBOL[1] = {
{ "string", "separator", __CALL, { 15 } },
};
static cmdp_token tokens_FORCE_FOCUS_WRAPPING[1] = {
{ "word", "value", __CALL, { 16 } },
};
static cmdp_token tokens_BAR_TRAY_PADDING_PX[2] = {
{ "'px", "", BAR_TRAY_PADDING_PX, { 0 } },
{ "end", "", __CALL, { 17 } },
};
static cmdp_token tokens_DEFAULT_ORIENTATION[3] = {
{ "'horizontal", "orientation", __CALL, { 18 } },
{ "'vertical", "orientation", __CALL, { 19 } },
{ "'auto", "orientation", __CALL, { 20 } },
};
static cmdp_token tokens_FOCUS_FOLLOWS_MOUSE[1] = {
{ "word", "value", __CALL, { 21 } },
};
static cmdp_token tokens_COLOR_CHILD_BORDER[2] = {
{ "word", "child_border", __CALL, { 22 } },
{ "end", "", __CALL, { 23 } },
};
static cmdp_token tokens_BAR_COLORS_BORDER[1] = {
{ "word", "border", BAR_COLORS_BACKGROUND, { 0 } },
};
static cmdp_token tokens_BAR_COLORS_SINGLE[1] = {
{ "word", "color", __CALL, { 24 } },
};
static cmdp_token tokens_FLOATING_MODIFIER[10] = {
{ "'Mod1", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'Mod2", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'Mod3", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'Mod4", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'Mod5", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'Shift", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'Control", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'Ctrl", "modifiers", FLOATING_MODIFIER, { 0 } },
{ "'+", "", FLOATING_MODIFIER, { 0 } },
{ "end", "", __CALL, { 25 } },
};
static cmdp_token tokens_HIDE_EDGE_BORDERS[11] = {
{ "'none", "hide_borders", __CALL, { 26 } },
{ "'vertical", "hide_borders", __CALL, { 27 } },
{ "'horizontal", "hide_borders", __CALL, { 28 } },
{ "'both", "hide_borders", __CALL, { 29 } },
{ "'smart", "hide_borders", __CALL, { 30 } },
{ "'1", "hide_borders", __CALL, { 31 } },
{ "'yes", "hide_borders", __CALL, { 32 } },
{ "'true", "hide_borders", __CALL, { 33 } },
{ "'on", "hide_borders", __CALL, { 34 } },
{ "'enable", "hide_borders", __CALL, { 35 } },
{ "'active", "hide_borders", __CALL, { 36 } },
};
static cmdp_token tokens_ASSIGN_WORKSPACE[5] = {
{ "'→", "", ASSIGN_WORKSPACE, { 0 } },
{ "'output", "", ASSIGN_OUTPUT, { 0 } },
{ "'workspace", "", ASSIGN_WORKSPACE, { 0 } },
{ "'number", "", ASSIGN_WORKSPACE_NUMBER, { 0 } },
{ "string", "workspace", __CALL, { 37 } },
};
static cmdp_token tokens_BAR_COLORS_BRACE[2] = {
{ "end", "", BAR_COLORS_BRACE, { 0 } },
{ "'{", "", BAR_COLORS, { 0 } },
};
static cmdp_token tokens_BAR_HIDDEN_STATE[2] = {
{ "'hide", "hidden_state", __CALL, { 38 } },
{ "'show", "hidden_state", __CALL, { 39 } },
};
static cmdp_token tokens_BAR_TRAY_PADDING[1] = {
{ "number", "padding_px", BAR_TRAY_PADDING_PX, { 0 } },
};
static cmdp_token tokens_COLOR_BACKGROUND[1] = {
{ "word", "background", COLOR_TEXT, { 0 } },
};
static cmdp_token tokens_IPC_KILL_TIMEOUT[1] = {
{ "number", "timeout", __CALL, { 40 } },
};
static cmdp_token tokens_WORKSPACE_LAYOUT[4] = {
{ "'default", "layout", __CALL, { 41 } },
{ "'stacking", "layout", __CALL, { 42 } },
{ "'stacked", "layout", __CALL, { 43 } },
{ "'tabbed", "layout", __CALL, { 44 } },
};
static cmdp_token tokens_BAR_BAR_COMMAND[1] = {
{ "string", "command", __CALL, { 45 } },
};
static cmdp_token tokens_BAR_COLORS_TEXT[2] = {
{ "end", "", __CALL, { 46 } },
{ "word", "text", __CALL, { 47 } },
};
static cmdp_token tokens_BAR_IGNORE_LINE[1] = {
{ "line", "", BAR, { 0 } },
};
static cmdp_token tokens_BAR_SOCKET_PATH[1] = {
{ "string", "path", __CALL, { 48 } },
};
static cmdp_token tokens_BAR_TRAY_OUTPUT[1] = {
{ "word", "output", __CALL, { 49 } },
};
static cmdp_token tokens_COLOR_INDICATOR[2] = {
{ "word", "indicator", COLOR_CHILD_BORDER, { 0 } },
{ "end", "", __CALL, { 50 } },
};
static cmdp_token tokens_DISABLE_RANDR15[1] = {
{ "word", "value", __CALL, { 51 } },
};
static cmdp_token tokens_DEFAULT_BORDER[4] = {
{ "'normal", "border", DEFAULT_BORDER_PIXELS, { 0 } },
{ "'pixel", "border", DEFAULT_BORDER_PIXELS, { 0 } },
{ "'1pixel", "border", __CALL, { 52 } },
{ "'none", "border", __CALL, { 53 } },
};
static cmdp_token tokens_FOCUS_WRAPPING[13] = {
{ "'1", "value", __CALL, { 54 } },
{ "'yes", "value", __CALL, { 55 } },
{ "'true", "value", __CALL, { 56 } },
{ "'on", "value", __CALL, { 57 } },
{ "'enable", "value", __CALL, { 58 } },
{ "'active", "value", __CALL, { 59 } },
{ "'0", "value", __CALL, { 60 } },
{ "'no", "value", __CALL, { 61 } },
{ "'false", "value", __CALL, { 62 } },
{ "'off", "value", __CALL, { 63 } },
{ "'disable", "value", __CALL, { 64 } },
{ "'inactive", "value", __CALL, { 65 } },
{ "'force", "value", __CALL, { 66 } },
};
static cmdp_token tokens_FORCE_XINERAMA[1] = {
{ "word", "value", __CALL, { 67 } },
};
static cmdp_token tokens_ASSIGN_OUTPUT[1] = {
{ "string", "output", __CALL, { 68 } },
};
static cmdp_token tokens_MOUSE_WARPING[2] = {
{ "'none", "value", __CALL, { 69 } },
{ "'output", "value", __CALL, { 70 } },
};
static cmdp_token tokens_RESTART_STATE[1] = {
{ "string", "path", __CALL, { 71 } },
};
static cmdp_token tokens_BAR_MODIFIER[12] = {
{ "'off", "", __CALL, { 72 } },
{ "'none", "", __CALL, { 73 } },
{ "'Mod1", "modifiers", BAR_MODIFIER, { 0 } },
{ "'Mod2", "modifiers", BAR_MODIFIER, { 0 } },
{ "'Mod3", "modifiers", BAR_MODIFIER, { 0 } },
{ "'Mod4", "modifiers", BAR_MODIFIER, { 0 } },
{ "'Mod5", "modifiers", BAR_MODIFIER, { 0 } },
{ "'Shift", "modifiers", BAR_MODIFIER, { 0 } },
{ "'Control", "modifiers", BAR_MODIFIER, { 0 } },
{ "'Ctrl", "modifiers", BAR_MODIFIER, { 0 } },
{ "'+", "", BAR_MODIFIER, { 0 } },
{ "end", "", __CALL, { 74 } },
};
static cmdp_token tokens_COLOR_BORDER[1] = {
{ "word", "border", COLOR_BACKGROUND, { 0 } },
};
static cmdp_token tokens_COLOR_SINGLE[1] = {
{ "word", "color", __CALL, { 75 } },
};
static cmdp_token tokens_FAKE_OUTPUTS[1] = {
{ "string", "outputs", __CALL, { 76 } },
};
static cmdp_token tokens_BAR_VERBOSE[1] = {
{ "word", "value", __CALL, { 77 } },
};
static cmdp_token tokens_IGNORE_LINE[1] = {
{ "line", "", INITIAL, { 0 } },
};
static cmdp_token tokens_TITLE_ALIGN[3] = {
{ "'left", "alignment", __CALL, { 78 } },
{ "'center", "alignment", __CALL, { 79 } },
{ "'right", "alignment", __CALL, { 80 } },
};
static cmdp_token tokens_BAR_COLORS[15] = {
{ "end", "", BAR_COLORS, { 0 } },
{ "'#", "", BAR_COLORS_IGNORE_LINE, { 0 } },
{ "'set", "", BAR_COLORS_IGNORE_LINE, { 0 } },
{ "'background", "colorclass", BAR_COLORS_SINGLE, { 0 } },
{ "'statusline", "colorclass", BAR_COLORS_SINGLE, { 0 } },
{ "'separator", "colorclass", BAR_COLORS_SINGLE, { 0 } },
{ "'focused_background", "colorclass", BAR_COLORS_SINGLE, { 0 } },
{ "'focused_statusline", "colorclass", BAR_COLORS_SINGLE, { 0 } },
{ "'focused_separator", "colorclass", BAR_COLORS_SINGLE, { 0 } },
{ "'focused_workspace", "colorclass", BAR_COLORS_BORDER, { 0 } },
{ "'active_workspace", "colorclass", BAR_COLORS_BORDER, { 0 } },
{ "'inactive_workspace", "colorclass", BAR_COLORS_BORDER, { 0 } },
{ "'urgent_workspace", "colorclass", BAR_COLORS_BORDER, { 0 } },
{ "'binding_mode", "colorclass", BAR_COLORS_BORDER, { 0 } },
{ "'}", "", BAR, { 0 } },
};
static cmdp_token tokens_BAR_OUTPUT[1] = {
{ "string", "output", __CALL, { 81 } },
};
static cmdp_token tokens_COLOR_TEXT[1] = {
{ "word", "text", COLOR_INDICATOR, { 0 } },
};
static cmdp_token tokens_IPC_SOCKET[1] = {
{ "string", "path", __CALL, { 82 } },
};
static cmdp_token tokens_SHOW_MARKS[1] = {
{ "word", "value", __CALL, { 83 } },
};
static cmdp_token tokens_MODEBRACE[1] = {
{ "end", "", MODEBRACE, { 0 } },
};
static cmdp_token tokens_BAR_FONT[1] = {
{ "string", "font", __CALL, { 84 } },
};
static cmdp_token tokens_MODENAME[2] = {
{ "'--pango_markup", "pango_markup", MODENAME, { 0 } },
{ "word", "modename", __CALL, { 85 } },
};
static cmdp_token tokens_INITIAL[43] = {
{ "end", "", INITIAL, { 0 } },
{ "error", "", INITIAL, { 0 } },
{ "'#", "", IGNORE_LINE, { 0 } },
{ "'set ", "", IGNORE_LINE, { 0 } },
{ "'set ", "", IGNORE_LINE, { 0 } },
{ "'set_from_resource", "", IGNORE_LINE, { 0 } },
{ "'mode", "", MODENAME, { 0 } },
{ "'floating_minimum_size", "", FLOATING_MINIMUM_SIZE_WIDTH, { 0 } },
{ "'floating_maximum_size", "", FLOATING_MAXIMUM_SIZE_WIDTH, { 0 } },
{ "'floating_modifier", "", FLOATING_MODIFIER, { 0 } },
{ "'default_orientation", "", DEFAULT_ORIENTATION, { 0 } },
{ "'workspace_layout", "", WORKSPACE_LAYOUT, { 0 } },
{ "'default_border", "windowtype", DEFAULT_BORDER, { 0 } },
{ "'new_window", "windowtype", DEFAULT_BORDER, { 0 } },
{ "'default_floating_border", "windowtype", DEFAULT_BORDER, { 0 } },
{ "'new_float", "windowtype", DEFAULT_BORDER, { 0 } },
{ "'hide_edge_borders", "", HIDE_EDGE_BORDERS, { 0 } },
{ "'focus_follows_mouse", "", FOCUS_FOLLOWS_MOUSE, { 0 } },
{ "'mouse_warping", "", MOUSE_WARPING, { 0 } },
{ "'focus_wrapping", "", FOCUS_WRAPPING, { 0 } },
{ "'force_focus_wrapping", "", FORCE_FOCUS_WRAPPING, { 0 } },
{ "'force_xinerama", "", FORCE_XINERAMA, { 0 } },
{ "'force-xinerama", "", FORCE_XINERAMA, { 0 } },
{ "'disable_randr15", "", DISABLE_RANDR15, { 0 } },
{ "'disable-randr15", "", DISABLE_RANDR15, { 0 } },
{ "'workspace_auto_back_and_forth", "", WORKSPACE_BACK_AND_FORTH, { 0 } },
{ "'fake_outputs", "", FAKE_OUTPUTS, { 0 } },
{ "'fake-outputs", "", FAKE_OUTPUTS, { 0 } },
{ "'force_display_urgency_hint", "", FORCE_DISPLAY_URGENCY_HINT, { 0 } },
{ "'focus_on_window_activation", "", FOCUS_ON_WINDOW_ACTIVATION, { 0 } },
{ "'title_align", "", TITLE_ALIGN, { 0 } },
{ "'show_marks", "", SHOW_MARKS, { 0 } },
{ "'ipc_socket", "", IPC_SOCKET, { 0 } },
{ "'ipc-socket", "", IPC_SOCKET, { 0 } },
{ "'ipc_kill_timeout", "", IPC_KILL_TIMEOUT, { 0 } },
{ "'restart_state", "", RESTART_STATE, { 0 } },
{ "'popup_during_fullscreen", "", POPUP_DURING_FULLSCREEN, { 0 } },
{ "'client.background", "colorclass", COLOR_SINGLE, { 0 } },
{ "'client.focused_inactive", "colorclass", COLOR_BORDER, { 0 } },
{ "'client.focused", "colorclass", COLOR_BORDER, { 0 } },
{ "'client.unfocused", "colorclass", COLOR_BORDER, { 0 } },
{ "'client.urgent", "colorclass", COLOR_BORDER, { 0 } },
{ "'client.placeholder", "colorclass", COLOR_BORDER, { 0 } },
};
static cmdp_token tokens_BAR_ID[1] = {
{ "word", "bar_id", __CALL, { 86 } },
};
static cmdp_token tokens_BAR[20] = {
{ "end", "", BAR, { 0 } },
{ "error", "", BAR, { 0 } },
{ "'#", "", BAR_IGNORE_LINE, { 0 } },
{ "'set", "", BAR_IGNORE_LINE, { 0 } },
{ "'i3bar_command", "", BAR_BAR_COMMAND, { 0 } },
{ "'socket_path", "", BAR_SOCKET_PATH, { 0 } },
{ "'hidden_state", "", BAR_HIDDEN_STATE, { 0 } },
{ "'id", "", BAR_ID, { 0 } },
{ "'modifier", "", BAR_MODIFIER, { 0 } },
{ "'output", "", BAR_OUTPUT, { 0 } },
{ "'tray_output", "", BAR_TRAY_OUTPUT, { 0 } },
{ "'tray_padding", "", BAR_TRAY_PADDING, { 0 } },
{ "'font", "", BAR_FONT, { 0 } },
{ "'separator_symbol", "", BAR_SEPARATOR_SYMBOL, { 0 } },
{ "'binding_mode_indicator", "", BAR_BINDING_MODE_INDICATOR, { 0 } },
{ "'workspace_buttons", "", BAR_WORKSPACE_BUTTONS, { 0 } },
{ "'strip_workspace_numbers", "", BAR_STRIP_WORKSPACE_NUMBERS, { 0 } },
{ "'strip_workspace_name", "", BAR_STRIP_WORKSPACE_NAME, { 0 } },
{ "'verbose", "", BAR_VERBOSE, { 0 } },
{ "'colors", "", BAR_COLORS_BRACE, { 0 } },
};
static cmdp_token_ptr tokens[68] = {
{ tokens_FORCE_DISPLAY_URGENCY_HINT_MS, 2 },
{ tokens_FLOATING_MAXIMUM_SIZE_HEIGHT, 1 },
{ tokens_FLOATING_MINIMUM_SIZE_HEIGHT, 1 },
{ tokens_BAR_STRIP_WORKSPACE_NUMBERS, 1 },
{ tokens_FLOATING_MAXIMUM_SIZE_WIDTH, 1 },
{ tokens_FLOATING_MINIMUM_SIZE_WIDTH, 1 },
{ tokens_BAR_BINDING_MODE_INDICATOR, 1 },
{ tokens_FOCUS_ON_WINDOW_ACTIVATION, 1 },
{ tokens_FORCE_DISPLAY_URGENCY_HINT, 1 },
{ tokens_BAR_STRIP_WORKSPACE_NAME, 1 },
{ tokens_DEFAULT_BORDER_PIXELS_PX, 2 },
{ tokens_WORKSPACE_BACK_AND_FORTH, 1 },
{ tokens_ASSIGN_WORKSPACE_NUMBER, 1 },
{ tokens_FLOATING_MAXIMUM_SIZE_X, 1 },
{ tokens_FLOATING_MINIMUM_SIZE_X, 1 },
{ tokens_POPUP_DURING_FULLSCREEN, 3 },
{ tokens_BAR_COLORS_IGNORE_LINE, 1 },
{ tokens_BAR_COLORS_BACKGROUND, 1 },
{ tokens_BAR_WORKSPACE_BUTTONS, 1 },
{ tokens_DEFAULT_BORDER_PIXELS, 2 },
{ tokens_BAR_SEPARATOR_SYMBOL, 1 },
{ tokens_FORCE_FOCUS_WRAPPING, 1 },
{ tokens_BAR_TRAY_PADDING_PX, 2 },
{ tokens_DEFAULT_ORIENTATION, 3 },
{ tokens_FOCUS_FOLLOWS_MOUSE, 1 },
{ tokens_COLOR_CHILD_BORDER, 2 },
{ tokens_BAR_COLORS_BORDER, 1 },
{ tokens_BAR_COLORS_SINGLE, 1 },
{ tokens_FLOATING_MODIFIER, 10 },
{ tokens_HIDE_EDGE_BORDERS, 11 },
{ tokens_ASSIGN_WORKSPACE, 5 },
{ tokens_BAR_COLORS_BRACE, 2 },
{ tokens_BAR_HIDDEN_STATE, 2 },
{ tokens_BAR_TRAY_PADDING, 1 },
{ tokens_COLOR_BACKGROUND, 1 },
{ tokens_IPC_KILL_TIMEOUT, 1 },
{ tokens_WORKSPACE_LAYOUT, 4 },
{ tokens_BAR_BAR_COMMAND, 1 },
{ tokens_BAR_COLORS_TEXT, 2 },
{ tokens_BAR_IGNORE_LINE, 1 },
{ tokens_BAR_SOCKET_PATH, 1 },
{ tokens_BAR_TRAY_OUTPUT, 1 },
{ tokens_COLOR_INDICATOR, 2 },
{ tokens_DISABLE_RANDR15, 1 },
{ tokens_DEFAULT_BORDER, 4 },
{ tokens_FOCUS_WRAPPING, 13 },
{ tokens_FORCE_XINERAMA, 1 },
{ tokens_ASSIGN_OUTPUT, 1 },
{ tokens_MOUSE_WARPING, 2 },
{ tokens_RESTART_STATE, 1 },
{ tokens_BAR_MODIFIER, 12 },
{ tokens_COLOR_BORDER, 1 },
{ tokens_COLOR_SINGLE, 1 },
{ tokens_FAKE_OUTPUTS, 1 },
{ tokens_BAR_VERBOSE, 1 },
{ tokens_IGNORE_LINE, 1 },
{ tokens_TITLE_ALIGN, 3 },
{ tokens_BAR_COLORS, 15 },
{ tokens_BAR_OUTPUT, 1 },
{ tokens_COLOR_TEXT, 1 },
{ tokens_IPC_SOCKET, 1 },
{ tokens_SHOW_MARKS, 1 },
{ tokens_MODEBRACE, 1 },
{ tokens_BAR_FONT, 1 },
{ tokens_MODENAME, 2 },
{ tokens_INITIAL, 43 },
{ tokens_BAR_ID, 1 },
{ tokens_BAR, 20 },
};

9
include/config.h Normal file
View File

@ -0,0 +1,9 @@
// FIXME: generate with meson
#define MAJOR_VERSION "4"
#define MINOR_VERSION "18"
#define PATCH_VERSION "0"
#define I3_VERSION MAJOR_VERSION "." MINOR_VERSION "." PATCH_VERSION
#define _GNU_SOURCE
#define STRIPPED__FILE__ "main.c"
#define SYSCONFDIR "./"

175
meson.build Normal file
View File

@ -0,0 +1,175 @@
project('i3-guile', 'c', version: '4.18')
cc = meson.get_compiler('c')
sources = [
'src/assignments.c',
'src/bindings.c',
'src/click.c',
'src/commands.c',
'src/commands_parser.c',
'src/con.c',
'src/config.c',
'src/config_directives.c',
'src/config_parser.c',
'src/display_version.c',
'src/drag.c',
'src/ewmh.c',
'src/fake_outputs.c',
'src/floating.c',
'src/handlers.c',
'src/ipc.c',
'src/key_press.c',
'src/load_layout.c',
'src/log.c',
'src/main.c',
'src/manage.c',
'src/match.c',
'src/move.c',
'src/output.c',
'src/randr.c',
'src/regex.c',
'src/render.c',
'src/resize.c',
'src/restore_layout.c',
'src/scratchpad.c',
'src/sd-daemon.c',
'src/sighandler.c',
'src/startup.c',
'src/sync.c',
'src/tree.c',
'src/util.c',
'src/version.c',
'src/window.c',
'src/workspace.c',
'src/x.c',
'src/xcb.c',
'src/xcursor.c',
'src/xinerama.c'
]
libm_dep = cc.find_library('m', required : true)
guile_dep = dependency('guile-3.0')
yajl_dep = dependency('yajl')
pango_dep = dependency('pango')
cairo_dep = dependency('cairo')
pangocairo_dep = dependency('pangocairo')
pcre_dep = dependency('libpcre')
sn_dep = dependency('libstartup-notification-1.0')
thread_dep = dependency('threads')
x11xcb_dep = dependency('x11-xcb')
glib_dep = dependency('glib-2.0')
glibobject_dep = dependency('gobject-2.0')
xcb_dep = dependency('xcb')
xkbcommon_dep = dependency('xkbcommon')
xkbx11_dep = dependency('xkbcommon-x11')
xcbutil_dep = dependency('xcb-util')
xcbcursor_dep = dependency('xcb-cursor')
xcbshape_dep = dependency('xcb-shape')
xcbkeysyms_dep = dependency('xcb-keysyms')
xcbrandr_dep = dependency('xcb-randr')
xcbxkb_dep = dependency('xcb-xkb')
# xcbstate_dep = dependency('xcb-state')
xcb_xinerama_dep = dependency('xcb-xinerama')
xcb_xrm_dep = dependency('xcb-xrm')
xcb_icccm_dep = dependency('xcb-icccm')
libi3_sources = [
'libi3/dpi.c',
'libi3/draw_util.c',
'libi3/fake_configure_notify.c',
'libi3/font.c',
'libi3/format_placeholders.c',
'libi3/get_colorpixel.c',
'libi3/get_config_path.c',
'libi3/get_exe_path.c',
'libi3/get_mod_mask.c',
'libi3/get_process_filename.c',
'libi3/get_visualtype.c',
'libi3/g_utf8_make_valid.c',
'libi3/ipc_connect.c',
'libi3/ipc_recv_message.c',
'libi3/ipc_send_message.c',
'libi3/is_debug_build.c',
'libi3/mkdirp.c',
'libi3/resolve_tilde.c',
'libi3/root_atom_contents.c',
'libi3/safewrappers.c',
'libi3/string.c',
'libi3/strndup.c',
'libi3/ucs2_conversion.c',
]
i3lib = static_library('i3', libi3_sources,
include_directories: include_directories('include'),
dependencies: [
libm_dep,
guile_dep,
yajl_dep,
pango_dep,
cairo_dep,
pangocairo_dep,
pcre_dep,
sn_dep,
thread_dep,
glib_dep,
glibobject_dep,
xkbcommon_dep,
xcb_dep,
xcbcursor_dep,
x11xcb_dep,
xcbutil_dep,
xcbkeysyms_dep,
xcbrandr_dep,
xcbxkb_dep,
xcb_xinerama_dep,
xcb_xrm_dep,
xcb_icccm_dep,
])
executable('i3-wm-guile', sources,
include_directories :
[
include_directories('include'),
include_directories('generated'),
],
dependencies: [
libm_dep,
guile_dep,
yajl_dep,
pango_dep,
cairo_dep,
pangocairo_dep,
pcre_dep,
sn_dep,
thread_dep,
glib_dep,
glibobject_dep,
xkbcommon_dep,
xkbx11_dep,
xcb_dep,
xcbcursor_dep,
xcbshape_dep,
x11xcb_dep,
xcbutil_dep,
xcbkeysyms_dep,
xcbrandr_dep,
xcbxkb_dep,
xcb_xinerama_dep,
xcb_xrm_dep,
xcb_icccm_dep,
],
link_with: i3lib,
link_args: ['-lrt', '-lev'])
executable('i3-nagbar', './i3-nagbar/main.c',
include_directories: include_directories('include'),
dependencies: [ pango_dep, sn_dep ],
link_with: i3lib)