diff options
author | 2014-03-16 14:49:51 -0700 | |
---|---|---|
committer | 2014-03-20 21:32:02 -0700 | |
commit | 8ec73b2dd40bf95d2b665cfb4cc22c26a2717cae (patch) | |
tree | 1edf1cef90414d28d2eb38ceffccc0da079627a6 /parser.h | |
parent | 5c54ef7b0dceee99f180131a59ae19e649b31e84 (diff) |
Removing some variables from parser_t that are no longer used in the new
execution model
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 24 |
1 files changed, 1 insertions, 23 deletions
@@ -260,31 +260,18 @@ private: /** Pointer to the current tokenizer */ tokenizer_t *current_tokenizer; - /** String for representing the current line */ - wcstring lineinfo; - /** This is the position of the beginning of the currently parsed command */ int current_tokenizer_pos; /** List of called functions, used to help prevent infinite recursion */ wcstring_list_t forbidden_function; - /** String index where the current job started. */ - int job_start_pos; - /** The jobs associated with this parser */ job_list_t my_job_list; /** The list of blocks, allocated with new. It's our responsibility to delete these */ std::vector<block_t *> block_stack; - /** - Keeps track of how many recursive eval calls have been made. Eval - doesn't call itself directly, recursion happens on blocks and on - command substitutions. - */ - int eval_level; - /* No copying allowed */ parser_t(const parser_t&); parser_t& operator=(const parser_t&); @@ -371,7 +358,7 @@ public: init.fish (line 127): ls|grep pancake */ - const wchar_t *current_line(); + wcstring current_line(); /** Returns the current line number */ int get_lineno() const; @@ -379,15 +366,6 @@ public: /** Returns the line number for the character at the given index */ int line_number_of_character_at_offset(size_t idx) const; - /** Returns the current position in the latest string of the tokenizer. */ - int get_pos() const; - - /** Returns the position where the current job started in the latest string of the tokenizer. */ - int get_job_pos() const; - - /** Set the current position in the latest string of the tokenizer. */ - void set_pos(int p); - /** Returns the block at the given index. 0 corresponds to the innermost block. Returns NULL when idx is at or equal to the number of blocks. */ const block_t *block_at_index(size_t idx) const; block_t *block_at_index(size_t idx); |