diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-20 10:57:13 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-20 10:57:13 -0800 |
commit | adf5b036d646561dbcd7d3d5d04ab7a0e6827a87 (patch) | |
tree | 990f17d0ac56a59bcd1a2ee3c2a770d5eb32329a /parser.h | |
parent | 3ab954644fb8c0997a4eeb6830e8e342de5aff8a (diff) |
Fix to stop reporting config.fish execution as coming from "standard
input" within backtraces
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -283,6 +283,9 @@ private: /** Indication that we should skip all blocks */ bool cancellation_requested; + + /** Indicates that we are within the process of initializing fish */ + bool is_within_fish_initialization; /** Stack of execution contexts. We own these pointers and must delete them */ std::vector<parse_execution_context_t *> execution_contexts; @@ -447,6 +450,9 @@ public: { return my_job_list; } + + /* Hackish. In order to correctly report the origin of code with no associated file, we need to know whether it's run during initialization or not. */ + void set_is_within_fish_initialization(bool flag); /** Pushes the block. pop_block will call delete on it. */ void push_block(block_t *newv); |