diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-21 17:13:33 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-21 17:13:33 -0700 |
commit | ad6367018b5d04bdba99f10ec3afcb3398fe880e (patch) | |
tree | fd54aaaf145a313bece854a321482323233b21fd /parser.h | |
parent | c71b1684020515f342f7dfd5e31324f84e2c6294 (diff) |
Excise use of parser_t's error() functionality. Thread a
parse_error_list_t through all of the expand functions, enabling them to
report errors more directly. Improve aspects of error reporting for
expansion failures.
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -241,12 +241,6 @@ private: /** Whether or not we output errors */ const bool show_errors; - /** Last error code */ - int error_code; - - /** Position of last error */ - int err_pos; - /** Indication that we should skip all blocks */ bool cancellation_requested; @@ -317,7 +311,7 @@ public: \return 0 on success, 1 otherwise */ - int eval(const wcstring &cmd_str, const io_chain_t &io, enum block_type_t block_type); + int eval(const wcstring &cmd, const io_chain_t &io, enum block_type_t block_type); /** Evaluates a block node at the given node offset in the topmost execution context */ int eval_block_node(node_offset_t node_idx, const io_chain_t &io, enum block_type_t block_type); @@ -333,15 +327,6 @@ public: void expand_argument_list(const wcstring &arg_src, std::vector<completion_t> &output); /** - Sets the current evaluation error. This function should only be used by libraries that are called by - - \param ec The new error code - \param p The character offset at which the error occured - \param str The printf-style error message filter - */ - void error(int ec, size_t p, const wchar_t *str, ...); - - /** Returns a string describing the current parser pisition in the format 'FILENAME (line LINE_NUMBER): LINE'. Example: |