diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-17 23:30:45 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-22 15:54:31 +0100 |
commit | 9ce5d635f1f3d7e3e8fa0e2e028579285d23f0fc (patch) | |
tree | dc33a86900ee3f7445686ea459b1932f5e435bdf /sway | |
parent | Merge pull request #245 from sce/workspace_output_duplicates (diff) | |
download | sway-9ce5d635f1f3d7e3e8fa0e2e028579285d23f0fc.tar.gz sway-9ce5d635f1f3d7e3e8fa0e2e028579285d23f0fc.tar.zst sway-9ce5d635f1f3d7e3e8fa0e2e028579285d23f0fc.zip |
commands: Comment/doc for config_command.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 7f24f5ab..6e9137c0 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1471,6 +1471,13 @@ struct cmd_results *handle_command(char *_exec) { | |||
1471 | return results; | 1471 | return results; |
1472 | } | 1472 | } |
1473 | 1473 | ||
1474 | // this is like handle_command above, except: | ||
1475 | // 1) it ignores empty commands (empty lines) | ||
1476 | // 2) it does variable substitution | ||
1477 | // 3) it doesn't split commands (because the multiple commands are supposed to | ||
1478 | // be chained together) | ||
1479 | // 4) handle_command handles all state internally while config_command has some | ||
1480 | // state handled outside (notably the block mode, in read_config) | ||
1474 | struct cmd_results *config_command(char *exec) { | 1481 | struct cmd_results *config_command(char *exec) { |
1475 | struct cmd_results *results = NULL; | 1482 | struct cmd_results *results = NULL; |
1476 | int argc; | 1483 | int argc; |