Add framework for switching command sets

This will allow the bar {} block to have a different command set (and
also bar { colors { } }.
This commit is contained in:
Drew DeVault 2015-11-29 17:20:27 -05:00
parent 4f89735fc4
commit 44d0f731c3
3 changed files with 30 additions and 7 deletions

View file

@ -224,7 +224,7 @@ bool read_config(FILE *file, bool is_active) {
if (line[0] == '#') {
continue;
}
struct cmd_results *res = config_command(line);
struct cmd_results *res = config_command(line, block);
switch(res->status) {
case CMD_FAILURE:
case CMD_INVALID: