Mercurial > octave
comparison libinterp/parse-tree/lex.h @ 30131:a471bf0f78ba
allow for invalid filepos objects
* filepos.h (filepos::filepos (int, int)): Don't provide default values.
(filepos::filepos (void)): Initialize to invalid line and column positions.
(filepos::operator bool): New function.
(filepos::set): Delete.
* lex.h (lexical_feedback::lexical_feedback): Initialize filepos with
line and column == 1.
* lex.ll (lexical_feedback::reset): Set m_filepos to (1, 1).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 04 Sep 2021 07:50:08 -0400 |
parents | e2e493712818 |
children | c41fec3367b0 |
comparison
equal
deleted
inserted
replaced
30130:a9e3e1c96c47 | 30131:a471bf0f78ba |
---|---|
297 m_defining_func (0), | 297 m_defining_func (0), |
298 m_looking_at_function_handle (0), | 298 m_looking_at_function_handle (0), |
299 m_block_comment_nesting_level (0), | 299 m_block_comment_nesting_level (0), |
300 m_command_arg_paren_count (0), | 300 m_command_arg_paren_count (0), |
301 m_token_count (0), | 301 m_token_count (0), |
302 m_filepos (), | 302 m_filepos (1, 1), |
303 m_tok_beg (), | 303 m_tok_beg (), |
304 m_tok_end (), | 304 m_tok_end (), |
305 m_string_text (), | 305 m_string_text (), |
306 m_current_input_line (), | 306 m_current_input_line (), |
307 m_comment_text (), | 307 m_comment_text (), |