aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-20 10:57:13 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-20 10:57:13 -0800
commitadf5b036d646561dbcd7d3d5d04ab7a0e6827a87 (patch)
tree990f17d0ac56a59bcd1a2ee3c2a770d5eb32329a /parser.h
parent3ab954644fb8c0997a4eeb6830e8e342de5aff8a (diff)
Fix to stop reporting config.fish execution as coming from "standard
input" within backtraces
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 491e569f..f4dfcac2 100644
--- a/parser.h
+++ b/parser.h
@@ -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);