#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
#include "all.h"
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
union | YYSTYPE |
union | yyalloc |
Defines | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.4.1" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | YYLSP_NEEDED 0 |
#define | YYDEBUG 1 |
#define | YYERROR_VERBOSE 1 |
#define | YYTOKEN_TABLE 0 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | yystype YYSTYPE |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSIZE_T unsigned int |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YY_(msgid) msgid |
#define | YYUSE(e) ((void) (e)) |
#define | YYID(n) (n) |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC malloc |
#define | YYFREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY(To, From, Count) |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYFINAL 2 |
#define | YYLAST 106 |
#define | YYNTOKENS 63 |
#define | YYNNTS 47 |
#define | YYNRULES 98 |
#define | YYNSTATES 146 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 310 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -95 |
#define | YYTABLE_NINF -1 |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrorlab |
#define | YYFAIL goto yyerrlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YYLEX yylex (context) |
#define | YYFPRINTF fprintf |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
Typedefs | |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
Enumerations | |
enum | yytokentype { NUMBER = 258, WORD = 259, STR = 260, STR_NG = 261, HEX = 262, OUTPUT = 263, TOKBINDCODE = 264, TOKTERMINAL = 265, TOKCOMMENT = 266, TOKFONT = 267, TOKBINDSYM = 268, MODIFIER = 269, TOKCONTROL = 270, TOKSHIFT = 271, TOKFLOATING_MODIFIER = 272, QUOTEDSTRING = 273, TOKWORKSPACE = 274, TOKOUTPUT = 275, TOKASSIGN = 276, TOKSET = 277, TOKIPCSOCKET = 278, TOKRESTARTSTATE = 279, TOKEXEC = 280, TOKEXEC_ALWAYS = 281, TOKSINGLECOLOR = 282, TOKCOLOR = 283, TOKARROW = 284, TOKMODE = 285, TOK_ORIENTATION = 286, TOK_HORIZ = 287, TOK_VERT = 288, TOK_AUTO = 289, TOK_WORKSPACE_LAYOUT = 290, TOKNEWWINDOW = 291, TOK_NORMAL = 292, TOK_NONE = 293, TOK_1PIXEL = 294, TOKFOCUSFOLLOWSMOUSE = 295, TOK_FORCE_FOCUS_WRAPPING = 296, TOKWORKSPACEBAR = 297, TOK_DEFAULT = 298, TOK_STACKING = 299, TOK_TABBED = 300, TOKSTACKLIMIT = 301, TOK_POPUP_DURING_FULLSCREEN = 302, TOK_IGNORE = 303, TOK_LEAVE_FULLSCREEN = 304, TOK_FOR_WINDOW = 305, TOK_MARK = 306, TOK_CLASS = 307, TOK_ID = 308, TOK_CON_ID = 309, TOK_TITLE = 310, NUMBER = 258, WORD = 259, STR = 260, STR_NG = 261, HEX = 262, OUTPUT = 263, TOKBINDCODE = 264, TOKTERMINAL = 265, TOKCOMMENT = 266, TOKFONT = 267, TOKBINDSYM = 268, MODIFIER = 269, TOKCONTROL = 270, TOKSHIFT = 271, TOKFLOATING_MODIFIER = 272, QUOTEDSTRING = 273, TOKWORKSPACE = 274, TOKOUTPUT = 275, TOKASSIGN = 276, TOKSET = 277, TOKIPCSOCKET = 278, TOKRESTARTSTATE = 279, TOKEXEC = 280, TOKEXEC_ALWAYS = 281, TOKSINGLECOLOR = 282, TOKCOLOR = 283, TOKARROW = 284, TOKMODE = 285, TOK_ORIENTATION = 286, TOK_HORIZ = 287, TOK_VERT = 288, TOK_AUTO = 289, TOK_WORKSPACE_LAYOUT = 290, TOKNEWWINDOW = 291, TOK_NORMAL = 292, TOK_NONE = 293, TOK_1PIXEL = 294, TOKFOCUSFOLLOWSMOUSE = 295, TOK_FORCE_FOCUS_WRAPPING = 296, TOKWORKSPACEBAR = 297, TOK_DEFAULT = 298, TOK_STACKING = 299, TOK_TABBED = 300, TOKSTACKLIMIT = 301, TOK_POPUP_DURING_FULLSCREEN = 302, TOK_IGNORE = 303, TOK_LEAVE_FULLSCREEN = 304, TOK_FOR_WINDOW = 305, TOK_MARK = 306, TOK_CLASS = 307, TOK_ID = 308, TOK_CON_ID = 309, TOK_TITLE = 310, TOK_EXEC = 258, TOK_EXIT = 259, TOK_RELOAD = 260, TOK_RESTART = 261, TOK_KILL = 262, TOK_WINDOW = 263, TOK_CLIENT = 264, TOK_FULLSCREEN = 265, TOK_GLOBAL = 266, TOK_LAYOUT = 267, TOK_DEFAULT = 268, TOK_STACKED = 269, TOK_TABBED = 270, TOK_BORDER = 271, TOK_NORMAL = 272, TOK_NONE = 273, TOK_1PIXEL = 274, TOK_MODE = 275, TOK_TILING = 276, TOK_FLOATING = 277, TOK_MODE_TOGGLE = 278, TOK_ENABLE = 279, TOK_DISABLE = 280, TOK_WORKSPACE = 281, TOK_TOGGLE = 282, TOK_FOCUS = 283, TOK_MOVE = 284, TOK_OPEN = 285, TOK_NEXT = 286, TOK_PREV = 287, TOK_SPLIT = 288, TOK_HORIZONTAL = 289, TOK_VERTICAL = 290, TOK_UP = 291, TOK_DOWN = 292, TOK_LEFT = 293, TOK_RIGHT = 294, TOK_PARENT = 295, TOK_CHILD = 296, TOK_APPEND_LAYOUT = 297, TOK_MARK = 298, TOK_RESIZE = 299, TOK_GROW = 300, TOK_SHRINK = 301, TOK_PX = 302, TOK_OR = 303, TOK_PPT = 304, TOK_NOP = 305, TOK_CLASS = 306, TOK_ID = 307, TOK_CON_ID = 308, TOK_TITLE = 309, STR = 310, NUMBER = 311, TOK_EXEC = 258, TOK_EXIT = 259, TOK_RELOAD = 260, TOK_RESTART = 261, TOK_KILL = 262, TOK_WINDOW = 263, TOK_CLIENT = 264, TOK_FULLSCREEN = 265, TOK_GLOBAL = 266, TOK_LAYOUT = 267, TOK_DEFAULT = 268, TOK_STACKED = 269, TOK_TABBED = 270, TOK_BORDER = 271, TOK_NORMAL = 272, TOK_NONE = 273, TOK_1PIXEL = 274, TOK_MODE = 275, TOK_TILING = 276, TOK_FLOATING = 277, TOK_MODE_TOGGLE = 278, TOK_ENABLE = 279, TOK_DISABLE = 280, TOK_WORKSPACE = 281, TOK_TOGGLE = 282, TOK_FOCUS = 283, TOK_MOVE = 284, TOK_OPEN = 285, TOK_NEXT = 286, TOK_PREV = 287, TOK_SPLIT = 288, TOK_HORIZONTAL = 289, TOK_VERTICAL = 290, TOK_UP = 291, TOK_DOWN = 292, TOK_LEFT = 293, TOK_RIGHT = 294, TOK_PARENT = 295, TOK_CHILD = 296, TOK_APPEND_LAYOUT = 297, TOK_MARK = 298, TOK_RESIZE = 299, TOK_GROW = 300, TOK_SHRINK = 301, TOK_PX = 302, TOK_OR = 303, TOK_PPT = 304, TOK_NOP = 305, TOK_CLASS = 306, TOK_ID = 307, TOK_CON_ID = 308, TOK_TITLE = 309, STR = 310, NUMBER = 311 } |
Functions | |
int | yylex (struct context *context) |
int | yyparse (void) |
int | yylex_destroy (void) |
YY_BUFFER_STATE | yy_scan_string (const char *) |
void | yyerror (const char *error_message) |
int | yywrap () |
static int | detect_version (char *buf) |
static char * | migrate_config (char *input, off_t size) |
static void | nagbar_exited (EV_P_ ev_child *watcher, int revents) |
static void | start_configerror_nagbar (const char *config_path) |
void | kill_configerror_nagbar (bool wait_for_it) |
Kills the configerror i3-nagbar process, if any. | |
void | parse_file (const char *f) |
static void | yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep) |
static void | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep) |
static void | yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
static void | yy_reduce_print (YYSTYPE *yyvsp, int yyrule) |
static YYSIZE_T | yystrlen (char *yystr) const |
static char * | yystpcpy (char *yydest, const char *yysrc) |
static YYSIZE_T | yytnamerr (char *yyres, const char *yystr) |
static YYSIZE_T | yysyntax_error (char *yyresult, int yystate, int yychar) |
static void | yydestruct (char *yymsg, int yytype, YYSTYPE *yyvaluep) const |
Variables | |
static pid_t | configerror_pid = -1 |
static Match | current_match |
FILE * | yyin |
static struct bindings_head * | current_bindings |
static struct context * | context |
static const yytype_uint8 | yytranslate [] |
static const yytype_uint8 | yyprhs [] |
static const yytype_int8 | yyrhs [] |
static const yytype_uint16 | yyrline [] |
static const char *const | yytname [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int16 | yydefgoto [] |
static const yytype_int8 | yypact [] |
static const yytype_int8 | yypgoto [] |
static const yytype_uint8 | yytable [] |
static const yytype_uint8 | yycheck [] |
static const yytype_uint8 | yystos [] |
int | yydebug |
int | yychar |
YYSTYPE | yylval |
int | yynerrs |
#define YY_ | ( | msgid | ) | msgid |
Definition at line 731 of file cfgparse.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YY_LOCATION_PRINT | ( | File, | |||
Loc | ) | ((void) 0) |
Definition at line 1284 of file cfgparse.tab.c.
#define YY_REDUCE_PRINT | ( | Rule | ) |
do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0))
Definition at line 1444 of file cfgparse.tab.c.
Referenced by yyparse().
#define YY_STACK_PRINT | ( | Bottom, | |||
Top | ) |
do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0))
Definition at line 1406 of file cfgparse.tab.c.
Referenced by yyparse().
#define YY_SYMBOL_PRINT | ( | Title, | |||
Type, | |||||
Value, | |||||
Location | ) |
do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0))
Definition at line 1311 of file cfgparse.tab.c.
Referenced by yydestruct(), and yyparse().
#define YYABORT goto yyabortlab |
Definition at line 1213 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYACCEPT goto yyacceptlab |
Definition at line 1212 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYBACKUP | ( | Token, | |||
Value | ) |
do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0))
Definition at line 1225 of file cfgparse.tab.c.
#define YYBISON 1 |
Definition at line 46 of file cfgparse.tab.c.
#define YYBISON_VERSION "2.4.1" |
Definition at line 49 of file cfgparse.tab.c.
#define yyclearin (yychar = YYEMPTY) |
Definition at line 1208 of file cfgparse.tab.c.
#define YYCOPY | ( | To, | |||
From, | |||||
Count | ) |
do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0))
Definition at line 857 of file cfgparse.tab.c.
#define YYDEBUG 1 |
Definition at line 564 of file cfgparse.tab.c.
#define YYDPRINTF | ( | Args | ) |
#define YYEMPTY (-2) |
Definition at line 1209 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYEOF 0 |
Definition at line 1210 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYERRCODE 256 |
Definition at line 1244 of file cfgparse.tab.c.
#define yyerrok (yyerrstatus = 0) |
Definition at line 1207 of file cfgparse.tab.c.
#define YYERROR goto yyerrorlab |
Definition at line 1214 of file cfgparse.tab.c.
#define YYERROR_VERBOSE 1 |
Definition at line 572 of file cfgparse.tab.c.
#define YYFAIL goto yyerrlab |
Definition at line 1221 of file cfgparse.tab.c.
#define YYFINAL 2 |
Definition at line 887 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYFPRINTF fprintf |
Definition at line 1302 of file cfgparse.tab.c.
Referenced by yy_reduce_print(), yy_stack_print(), and yy_symbol_print().
#define YYFREE free |
Definition at line 820 of file cfgparse.tab.c.
#define YYID | ( | n | ) | (n) |
Definition at line 744 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYINITDEPTH 200 |
Definition at line 1463 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYLAST 106 |
Definition at line 889 of file cfgparse.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YYLEX yylex (context) |
Definition at line 1294 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYLLOC_DEFAULT | ( | Current, | |||
Rhs, | |||||
N | ) |
do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0))
Definition at line 1253 of file cfgparse.tab.c.
#define YYLSP_NEEDED 0 |
Definition at line 64 of file cfgparse.tab.c.
#define YYMALLOC malloc |
Definition at line 813 of file cfgparse.tab.c.
#define YYMAXDEPTH 10000 |
Definition at line 1474 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYMAXUTOK 310 |
Definition at line 902 of file cfgparse.tab.c.
#define YYNNTS 47 |
Definition at line 894 of file cfgparse.tab.c.
#define YYNRULES 98 |
Definition at line 896 of file cfgparse.tab.c.
#define YYNSTATES 146 |
Definition at line 898 of file cfgparse.tab.c.
#define YYNTOKENS 63 |
Definition at line 892 of file cfgparse.tab.c.
Referenced by yy_symbol_print(), yy_symbol_value_print(), yyparse(), and yysyntax_error().
#define YYPACT_NINF -95 |
Definition at line 1121 of file cfgparse.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
Referenced by yyparse().
#define YYPULL 1 |
Definition at line 61 of file cfgparse.tab.c.
#define YYPURE 0 |
Definition at line 55 of file cfgparse.tab.c.
#define YYPUSH 0 |
Definition at line 58 of file cfgparse.tab.c.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 1223 of file cfgparse.tab.c.
#define YYRHSLOC | ( | Rhs, | |||
K | ) | ((Rhs)[K]) |
Definition at line 1251 of file cfgparse.tab.c.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 721 of file cfgparse.tab.c.
Referenced by yysyntax_error().
#define YYSIZE_T unsigned int |
Definition at line 717 of file cfgparse.tab.c.
Referenced by yyparse(), yystrlen(), yysyntax_error(), and yytnamerr().
#define YYSKELETON_NAME "yacc.c" |
Definition at line 52 of file cfgparse.tab.c.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 799 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 802 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYSTACK_BYTES | ( | N | ) |
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM)
Definition at line 846 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYSTACK_FREE YYFREE |
Definition at line 800 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 842 of file cfgparse.tab.c.
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |||
Stack | ) |
do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0))
Definition at line 873 of file cfgparse.tab.c.
Referenced by yyparse().
#define yystype YYSTYPE |
Definition at line 665 of file cfgparse.tab.c.
#define YYSTYPE_IS_DECLARED 1 |
Definition at line 666 of file cfgparse.tab.c.
#define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 664 of file cfgparse.tab.c.
#define YYTABLE_NINF -1 |
Definition at line 1155 of file cfgparse.tab.c.
Referenced by yyparse().
#define YYTERROR 1 |
Definition at line 1243 of file cfgparse.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YYTOKEN_TABLE 0 |
Definition at line 577 of file cfgparse.tab.c.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 904 of file cfgparse.tab.c.
Referenced by yyparse(), and yysyntax_error().
#define YYUNDEFTOK 2 |
Definition at line 901 of file cfgparse.tab.c.
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 737 of file cfgparse.tab.c.
Referenced by yy_symbol_value_print(), and yydestruct().
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 90 of file cfgparse.tab.c.
typedef short int yytype_int16 |
Definition at line 704 of file cfgparse.tab.c.
typedef short int yytype_int8 |
Definition at line 692 of file cfgparse.tab.c.
typedef unsigned short int yytype_uint16 |
Definition at line 698 of file cfgparse.tab.c.
typedef unsigned char yytype_uint8 |
Definition at line 683 of file cfgparse.tab.c.
enum yytokentype |
Definition at line 586 of file cfgparse.tab.c.
static int detect_version | ( | char * | buf | ) | [static] |
Definition at line 131 of file cfgparse.tab.c.
Referenced by parse_file().
void kill_configerror_nagbar | ( | bool | wait_for_it | ) |
Kills the configerror i3-nagbar process, if any.
Called when reloading/restarting.
If wait_for_it is set (restarting), this function will waitpid(), otherwise, ev is assumed to handle it (reloading).
Definition at line 368 of file cfgparse.tab.c.
References configerror_pid.
Referenced by i3_restart(), and yyparse().
static char* migrate_config | ( | char * | input, | |
off_t | size | |||
) | [static] |
Definition at line 197 of file cfgparse.tab.c.
References exec_i3_utility().
Referenced by parse_file().
static void nagbar_exited | ( | EV_P_ ev_child * | watcher, | |
int | revents | |||
) | [static] |
Definition at line 298 of file cfgparse.tab.c.
References configerror_pid.
Referenced by start_configerror_nagbar().
void parse_file | ( | const char * | f | ) |
Definition at line 385 of file cfgparse.tab.c.
References detect_version(), die, DLOG, context::filename, FREE, context::has_errors, Variable::key, context::line_copy, migrate_config(), Variable::next_match, scalloc(), SLIST_EMPTY, SLIST_FIRST, SLIST_FOREACH, SLIST_HEAD, SLIST_HEAD_INITIALIZER, SLIST_INSERT_HEAD, SLIST_REMOVE_HEAD, smalloc(), sstrdup(), start_configerror_nagbar(), Variable::value, yy_scan_string(), yylex_destroy(), and yyparse.
Referenced by parse_configuration().
static void start_configerror_nagbar | ( | const char * | config_path | ) | [static] |
Definition at line 321 of file cfgparse.tab.c.
References configerror_pid, errorfilename, exec_i3_utility(), main_loop, nagbar_exited(), and smalloc().
Referenced by parse_file().
static void yy_reduce_print | ( | YYSTYPE * | yyvsp, | |
int | yyrule | |||
) | [static] |
Definition at line 1423 of file cfgparse.tab.c.
References yy_symbol_print(), and YYFPRINTF.
YY_BUFFER_STATE yy_scan_string | ( | const char * | ) |
Referenced by parse_file().
static void yy_stack_print | ( | yytype_int16 * | yybottom, | |
yytype_int16 * | yytop | |||
) | [static] |
Definition at line 1392 of file cfgparse.tab.c.
References YYFPRINTF.
static void yy_symbol_print | ( | FILE * | yyoutput, | |
int | yytype, | |||
YYSTYPE const * const | yyvaluep | |||
) | [static] |
Definition at line 1366 of file cfgparse.tab.c.
References yy_symbol_value_print(), YYFPRINTF, and YYNTOKENS.
Referenced by yy_reduce_print().
static void yy_symbol_value_print | ( | FILE * | yyoutput, | |
int | yytype, | |||
YYSTYPE const * const | yyvaluep | |||
) | [static] |
Definition at line 1334 of file cfgparse.tab.c.
References YYNTOKENS, and YYUSE.
Referenced by yy_symbol_print().
static void yydestruct | ( | char * | yymsg, | |
int | yytype, | |||
YYSTYPE * | yyvaluep | |||
) | const [static] |
Definition at line 1701 of file cfgparse.tab.c.
References YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyparse().
void yyerror | ( | const char * | error_message | ) |
Definition at line 105 of file cfgparse.tab.c.
References ELOG, context::filename, context::first_column, context::has_errors, context::last_column, context::line_copy, and context::line_number.
int yylex | ( | struct context * | context | ) |
int yylex_destroy | ( | void | ) |
Definition at line 5713 of file cfgparse.yy.c.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yy_init_globals(), yyfree, and yypop_buffer_state().
Referenced by parse_file().
int yyparse | ( | void | ) |
Definition at line 1769 of file cfgparse.tab.c.
References assignments, autostarts, autostarts_always, Colortriple::background, BIND_CONTROL, BIND_SHIFT, YYSTYPE::binding, Mode::bindings, bindings, Colortriple::border, BS_1PIXEL, BS_NONE, BS_NORMAL, Match::class, YYSTYPE::color, Binding::command, Assignment::command, Match::con_id, config, Config::container_stack_limit, Config::container_stack_limit_value, current_bindings, Config::default_border, Config::default_layout, Config::default_orientation, Assignment::dest, die, Config::disable_focus_follows_mouse, Config::disable_workspace_bar, DLOG, ELOG, Config::floating_modifier, Config::font, Config::force_focus_wrapping, get_colorpixel(), HORIZ, Match::id, Config::ipc_socket_path, Binding::keycode, load_font(), Match::mark, Assignment::match, match_copy(), match_init(), modes, Binding::mods, Workspace_Assignment::name, Mode::name, NO_ORIENTATION, YYSTYPE::number, Workspace_Assignment::output, Config::popup_during_fullscreen, Config::restart_state_path, scalloc(), YYSTYPE::single_color, SLIST_INSERT_HEAD, smalloc(), sstrdup(), YYSTYPE::string, Binding::symbol, TAILQ_FOREACH, TAILQ_INIT, TAILQ_INSERT_TAIL, Colortriple::text, Match::title, Assignment::type, VERT, Assignment::workspace, workspace_get(), ws_assignments, YY_, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, YYFINAL, YYID, YYINITDEPTH, YYLAST, YYLEX, YYMAXDEPTH, YYNTOKENS, YYPACT_NINF, YYPOPSTACK, YYSIZE_T, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_ALLOC_MAXIMUM, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yysyntax_error(), YYTABLE_NINF, YYTERROR, YYTRANSLATE, and yyalloc::yyvs_alloc.
static char* yystpcpy | ( | char * | yydest, | |
const char * | yysrc | |||
) | [static] |
Definition at line 1516 of file cfgparse.tab.c.
Referenced by yysyntax_error(), and yytnamerr().
static YYSIZE_T yystrlen | ( | char * | yystr | ) | const [static] |
Definition at line 1492 of file cfgparse.tab.c.
References YYSIZE_T.
Referenced by yysyntax_error(), and yytnamerr().
static YYSIZE_T yysyntax_error | ( | char * | yyresult, | |
int | yystate, | |||
int | yychar | |||
) | [static] |
Definition at line 1588 of file cfgparse.tab.c.
References YY_, YYLAST, YYNTOKENS, YYPACT_NINF, YYSIZE_MAXIMUM, YYSIZE_T, yystpcpy(), yystrlen(), YYTERROR, yytnamerr(), and YYTRANSLATE.
Referenced by yyparse().
static YYSIZE_T yytnamerr | ( | char * | yyres, | |
const char * | yystr | |||
) | [static] |
Definition at line 1541 of file cfgparse.tab.c.
References YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
int yywrap | ( | void | ) |
Definition at line 121 of file cfgparse.tab.c.
pid_t configerror_pid = -1 [static] |
Definition at line 86 of file cfgparse.tab.c.
Referenced by kill_configerror_nagbar(), nagbar_exited(), and start_configerror_nagbar().
Definition at line 98 of file cfgparse.tab.c.
struct bindings_head* current_bindings [static] |
Definition at line 97 of file cfgparse.tab.c.
Referenced by yyparse().
Match current_match [static] |
Definition at line 88 of file cfgparse.tab.c.
int yychar |
Definition at line 1738 of file cfgparse.tab.c.
const yytype_uint8 yycheck[] [static] |
{ 17, 3, 4, 3, 98, 9, 5, 11, 102, 13, 5, 0, 1, 4, 5, 48, 49, 4, 5, 3, 9, 10, 11, 12, 13, 3, 4, 18, 17, 20, 19, 18, 21, 6, 23, 24, 25, 26, 27, 28, 5, 30, 31, 23, 24, 18, 35, 36, 14, 15, 16, 40, 41, 42, 5, 72, 60, 5, 47, 5, 62, 50, 62, 51, 52, 53, 54, 55, 43, 44, 45, 46, 32, 33, 34, 37, 38, 39, 8, 9, 61, 18, 56, 62, 5, 7, 5, 59, 46, 3, 8, 58, 5, 110, 58, 58, 5, 58, 5, 58, 57, 5, 5, 126, 126, 124, 99 }
Definition at line 1171 of file cfgparse.tab.c.
int yydebug |
Definition at line 1452 of file cfgparse.tab.c.
const yytype_uint8 yydefact[] [static] |
{ 2, 0, 1, 3, 89, 0, 27, 0, 89, 89, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 4, 25, 5, 29, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 23, 24, 21, 22, 26, 93, 94, 95, 30, 0, 90, 84, 85, 31, 0, 51, 0, 79, 78, 0, 80, 81, 82, 83, 0, 86, 0, 0, 53, 54, 55, 52, 58, 59, 60, 0, 56, 62, 63, 64, 61, 65, 66, 67, 68, 69, 97, 98, 96, 37, 0, 0, 0, 92, 45, 44, 0, 76, 75, 74, 0, 71, 77, 88, 0, 47, 0, 28, 34, 0, 0, 0, 0, 0, 0, 32, 91, 33, 72, 87, 0, 57, 0, 0, 0, 0, 0, 38, 36, 70, 73, 46, 49, 50, 48, 42, 39, 41, 40, 43 }
Definition at line 1090 of file cfgparse.tab.c.
const yytype_int16 yydefgoto[] [static] |
{ -1, 1, 27, 28, 114, 29, 30, 54, 59, 31, 96, 97, 134, 120, 102, 32, 126, 140, 33, 34, 77, 35, 82, 36, 86, 89, 37, 38, 39, 40, 135, 107, 41, 65, 42, 43, 44, 45, 46, 47, 48, 49, 71, 55, 56, 50, 94 }
Definition at line 1110 of file cfgparse.tab.c.
FILE* yyin |
Definition at line 1741 of file cfgparse.tab.c.
int yynerrs |
Definition at line 1744 of file cfgparse.tab.c.
const yytype_int8 yypact[] [static] |
{ -95, 11, -95, -95, 34, 1, -95, 5, 34, 34, 16, 27, 35, 49, 52, 54, 19, 19, 63, 40, 25, 38, 22, 22, 22, -33, 26, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, 0, -95, -95, -95, -95, -2, 21, 9, -95, -95, 79, -95, -95, -95, -95, 78, -95, 19, 28, -95, -95, -95, -95, -95, -95, -95, 42, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, 81, 12, 81, 34, -95, -95, 81, -95, -95, -95, 82, -95, -95, -95, 19, -95, 86, -95, -95, 33, 36, 37, 39, 41, 43, -95, -95, -95, 13, -95, -4, -95, 87, 91, 93, 96, 97, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95 }
Definition at line 1122 of file cfgparse.tab.c.
const yytype_int8 yypgoto[] [static] |
{ -95, -95, -95, -23, -94, -95, -22, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, 20, -95, -95, -95, -95, -95, -19, -95, -95, -95, -95, -95, -95, -95, -95, -95, -95, -17, 70, 7, -95, -95 }
Definition at line 1142 of file cfgparse.tab.c.
const yytype_uint8 yyprhs[] [static] |
{ 0, 0, 3, 4, 7, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 66, 70, 74, 78, 79, 83, 85, 87, 91, 95, 99, 103, 107, 109, 111, 117, 118, 121, 123, 125, 128, 131, 133, 135, 137, 140, 145, 147, 149, 151, 154, 156, 158, 160, 162, 164, 167, 170, 173, 179, 183, 184, 186, 188, 190, 192, 196, 198, 200, 203, 206, 209, 212, 215, 218, 221, 226, 229, 230, 232, 236, 239, 241, 243, 245, 248, 250 }
Definition at line 947 of file cfgparse.tab.c.
const yytype_uint8 yyr1[] [static] |
{ 0, 63, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 67, 68, 69, 69, 70, 71, 72, 73, 73, 74, 75, 76, 76, 76, 76, 76, 77, 77, 78, 79, 79, 80, 80, 81, 82, 83, 83, 83, 84, 84, 85, 85, 85, 86, 87, 87, 87, 88, 88, 89, 90, 91, 92, 92, 93, 93, 94, 94, 94, 95, 96, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 106, 106, 106, 107, 107, 107, 108, 109, 109 }
Definition at line 1058 of file cfgparse.tab.c.
const yytype_uint8 yyr2[] [static] |
{ 0, 2, 0, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 0, 3, 1, 1, 3, 3, 3, 3, 3, 1, 1, 5, 0, 2, 1, 1, 2, 2, 1, 1, 1, 2, 4, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 2, 5, 3, 0, 1, 1, 1, 1, 3, 1, 1, 2, 2, 2, 2, 2, 2, 2, 4, 2, 0, 1, 3, 2, 1, 1, 1, 2, 1, 1 }
Definition at line 1073 of file cfgparse.tab.c.
const yytype_int8 yyrhs[] [static] |
{ 64, 0, -1, -1, 64, 1, -1, 64, 65, -1, 68, -1, 72, -1, 78, -1, 81, -1, 82, -1, 84, -1, 86, -1, 89, -1, 90, -1, 91, -1, 92, -1, 95, -1, 97, -1, 98, -1, 99, -1, 100, -1, 103, -1, 104, -1, 101, -1, 102, -1, 66, -1, 108, -1, 11, -1, 5, -1, 69, -1, 9, 70, -1, 13, 71, -1, 106, 3, 67, -1, 106, 77, 67, -1, 50, 73, 67, -1, -1, 74, 76, 75, -1, 56, -1, 57, -1, 52, 58, 5, -1, 54, 58, 5, -1, 53, 58, 5, -1, 51, 58, 5, -1, 55, 58, 5, -1, 4, -1, 3, -1, 30, 18, 59, 79, 60, -1, -1, 79, 80, -1, 66, -1, 69, -1, 17, 106, -1, 31, 83, -1, 32, -1, 33, -1, 34, -1, 35, 85, -1, 35, 46, 46, 3, -1, 43, -1, 44, -1, 45, -1, 36, 87, -1, 37, -1, 38, -1, 39, -1, 3, -1, 4, -1, 40, 88, -1, 41, 88, -1, 42, 88, -1, 19, 3, 20, 8, 93, -1, 19, 3, 94, -1, -1, 94, -1, 18, -1, 5, -1, 4, -1, 21, 96, 5, -1, 18, -1, 6, -1, 23, 5, -1, 24, 5, -1, 25, 5, -1, 26, 5, -1, 10, 5, -1, 12, 5, -1, 27, 105, -1, 28, 105, 105, 105, -1, 61, 7, -1, -1, 107, -1, 106, 62, 107, -1, 106, 62, -1, 14, -1, 15, -1, 16, -1, 47, 109, -1, 48, -1, 49, -1 }
Definition at line 962 of file cfgparse.tab.c.
const yytype_uint16 yyrline[] [static] |
{ 0, 575, 575, 576, 577, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 606, 610, 614, 621, 622, 626, 640, 654, 665, 666, 673, 681, 688, 693, 708, 723, 728, 738, 739, 746, 769, 771, 775, 776, 788, 796, 804, 805, 806, 810, 834, 855, 856, 857, 861, 869, 870, 871, 875, 879, 891, 899, 907, 915, 935, 953, 954, 958, 959, 960, 964, 1016, 1017, 1021, 1028, 1035, 1044, 1053, 1061, 1070, 1078, 1089, 1101, 1102, 1103, 1104, 1108, 1109, 1110, 1114, 1122, 1123 }
Definition at line 993 of file cfgparse.tab.c.
const yytype_uint8 yystos[] [static] |
{ 0, 64, 0, 1, 9, 10, 11, 12, 13, 17, 19, 21, 23, 24, 25, 26, 27, 28, 30, 31, 35, 36, 40, 41, 42, 47, 50, 65, 66, 68, 69, 72, 78, 81, 82, 84, 86, 89, 90, 91, 92, 95, 97, 98, 99, 100, 101, 102, 103, 104, 108, 14, 15, 16, 70, 106, 107, 5, 5, 71, 106, 106, 3, 6, 18, 96, 5, 5, 5, 5, 61, 105, 105, 18, 32, 33, 34, 83, 43, 44, 45, 46, 85, 37, 38, 39, 87, 3, 4, 88, 88, 88, 48, 49, 109, 56, 73, 74, 3, 62, 3, 4, 77, 4, 5, 18, 20, 94, 5, 7, 105, 59, 46, 5, 67, 51, 52, 53, 54, 55, 76, 67, 107, 67, 8, 105, 79, 3, 58, 58, 58, 58, 58, 57, 75, 93, 94, 60, 66, 69, 80, 5, 5, 5, 5, 5 }
Definition at line 1188 of file cfgparse.tab.c.
const yytype_uint8 yytable[] [static] |
{ 72, 100, 101, 98, 121, 4, 57, 6, 123, 8, 58, 2, 3, 103, 104, 92, 93, 103, 104, 62, 4, 5, 6, 7, 8, 87, 88, 105, 9, 106, 10, 105, 11, 63, 12, 13, 14, 15, 16, 17, 66, 18, 19, 90, 91, 64, 20, 21, 51, 52, 53, 22, 23, 24, 67, 110, 137, 68, 25, 69, 99, 26, 99, 115, 116, 117, 118, 119, 78, 79, 80, 81, 74, 75, 76, 83, 84, 85, 60, 61, 70, 73, 95, 99, 108, 109, 113, 111, 112, 127, 124, 128, 141, 125, 129, 130, 142, 131, 143, 132, 133, 144, 145, 138, 139, 136, 122 }
Definition at line 1156 of file cfgparse.tab.c.
const char* const yytname[] [static] |
{ "$end", "error", "$undefined", "\"<number>\"", "\"<word>\"", "\"<string>\"", "\"<string (non-greedy)>\"", "\"<hex>\"", "\"<RandR output>\"", "TOKBINDCODE", "TOKTERMINAL", "\"<comment>\"", "\"font\"", "\"bindsym\"", "\"<modifier>\"", "\"control\"", "\"shift\"", "\"floating_modifier\"", "\"<quoted string>\"", "\"workspace\"", "\"output\"", "\"assign\"", "TOKSET", "\"ipc_socket\"", "\"restart_state\"", "\"exec\"", "\"exec_always\"", "TOKSINGLECOLOR", "TOKCOLOR", "\"\\342\\206\\222\"", "\"mode\"", "\"default_orientation\"", "\"horizontal\"", "\"vertical\"", "\"auto\"", "\"workspace_layout\"", "\"new_window\"", "\"normal\"", "\"none\"", "\"1pixel\"", "\"focus_follows_mouse\"", "\"force_focus_wrapping\"", "\"workspace_bar\"", "\"default\"", "\"stacking\"", "\"tabbed\"", "\"stack-limit\"", "\"popup_during_fullscreen\"", "\"ignore\"", "\"leave_fullscreen\"", "\"for_window\"", "\"mark\"", "\"class\"", "\"id\"", "\"con_id\"", "\"title\"", "'['", "']'", "'='", "'{'", "'}'", "'#'", "'+'", "$accept", "lines", "line", "comment", "command", "bindline", "binding", "bindcode", "bindsym", "for_window", "match", "matchstart", "matchend", "criteria", "word_or_number", "mode", "modelines", "modeline", "floating_modifier", "orientation", "direction", "workspace_layout", "layout_mode", "new_window", "border_style", "bool", "focus_follows_mouse", "force_focus_wrapping", "workspace_bar", "workspace", "optional_workspace_name", "workspace_name", "assign", "window_class", "ipcsocket", "restart_state", "exec", "exec_always", "terminal", "font", "single_color", "color", "colorpixel", "binding_modifiers", "binding_modifier", "popup_during_fullscreen", "popup_setting", 0 }
Definition at line 1011 of file cfgparse.tab.c.
const yytype_uint8 yytranslate[] [static] |
Definition at line 908 of file cfgparse.tab.c.