GET_CONFIG: add raw/variable-processed contents of all config files (#4528)
We do this by adding to included_files as i3 processes the configs. This should allow for easy debugging, without having to change how i3 processes config files. related to #4192
This commit is contained in:
committed by
GitHub
parent
d3ff9afbb5
commit
535da94536
@@ -103,4 +103,4 @@ typedef enum {
|
||||
* parsing.
|
||||
*
|
||||
*/
|
||||
parse_file_result_t parse_file(struct parser_ctx *ctx, const char *f);
|
||||
parse_file_result_t parse_file(struct parser_ctx *ctx, const char *f, IncludedFile *included_file);
|
||||
|
@@ -77,6 +77,8 @@ struct Variable {
|
||||
*/
|
||||
struct IncludedFile {
|
||||
char *path;
|
||||
char *raw_contents;
|
||||
char *variable_replaced_contents;
|
||||
|
||||
TAILQ_ENTRY(IncludedFile) files;
|
||||
};
|
||||
|
Reference in New Issue
Block a user