i3
|
#include <yajl/yajl_gen.h>
Go to the source code of this file.
Data Structures | |
struct | ConfigResult |
Functions | |
struct ConfigResult * | parse_config (const char *input, struct context *context) |
void | parse_file (const char *f) |
Parses the given file by first replacing the variables, then calling parse_config and possibly launching i3-nagbar. More... | |
Variables | |
pid_t | config_error_nagbar_pid |
struct ConfigResult* parse_config | ( | const char * | input, |
struct context * | context | ||
) |
Definition at line 307 of file config_parser.c.
References tokenptr::array, clear_stack(), command_output, current_match, DLOG, ELOG, context::filename, context::has_errors, token::identifier, INITIAL, ConfigResult::json_gen, tokenptr::n, token::name, next_state(), push_long(), push_string(), sasprintf(), scalloc(), single_line(), smalloc(), start_of_line(), state, statelist, statelist_idx, subcommand_output, tokens, y, and ystr.
Referenced by parse_file().
void parse_file | ( | const char * | f | ) |
Parses the given file by first replacing the variables, then calling parse_config and possibly launching i3-nagbar.
Definition at line 900 of file config_parser.c.
References check_for_duplicate_bindings(), config, config_error_nagbar_pid, detect_version(), die, DLOG, ELOG, errorfilename, context::filename, Config::font, FREE, context::has_errors, context::has_warnings, ConfigResult::json_gen, Variable::key, context::line_copy, migrate_config(), Variable::next_match, parse_config(), Font::pattern, sasprintf(), scalloc(), SLIST_EMPTY, SLIST_FIRST, SLIST_FOREACH, SLIST_HEAD, SLIST_HEAD_INITIALIZER, SLIST_INSERT_HEAD, SLIST_REMOVE_HEAD, smalloc(), sstrdup(), start_nagbar(), and Variable::value.
Referenced by parse_configuration().
pid_t config_error_nagbar_pid |
Definition at line 46 of file config_parser.c.
Referenced by cmd_reload(), i3_restart(), and parse_file().