Mercurial > octave
diff libinterp/parse-tree/lex.h @ 23750:ea879bc55272
move comment_list and comment_elt classes to octave namespace
* comment-list.h, comment-list.cc (class comment_list, class
comment_elt): Move inside octave namespace and rename from
octave_coment_list and octave_comment_elt. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 07 Jul 2017 18:43:32 -0400 |
parents | 85f1d31956c0 |
children | 980f39c3ab90 |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h Fri Jul 07 18:17:32 2017 -0400 +++ b/libinterp/parse-tree/lex.h Fri Jul 07 18:43:32 2017 -0400 @@ -520,39 +520,39 @@ { public: - comment_buffer (void) : comment_list (0) { } + comment_buffer (void) : m_comment_list (0) { } - ~comment_buffer (void) { delete comment_list; } + ~comment_buffer (void) { delete m_comment_list; } - void append (const std::string& s, octave_comment_elt::comment_type t) + void append (const std::string& s, comment_elt::comment_type t) { - if (! comment_list) - comment_list = new octave_comment_list (); + if (! m_comment_list) + m_comment_list = new comment_list (); - comment_list->append (s, t); + m_comment_list->append (s, t); } // Caller is expected to delete the returned value. - octave_comment_list * get_comment (void) + comment_list * get_comment (void) { - octave_comment_list *retval = comment_list; + comment_list *retval = m_comment_list; - comment_list = 0; + m_comment_list = 0; return retval; } void reset (void) { - delete comment_list; + delete m_comment_list; - comment_list = 0; + m_comment_list = 0; } private: - octave_comment_list *comment_list; + comment_list *m_comment_list; }; base_lexer (interpreter *interp = nullptr) @@ -614,9 +614,9 @@ void handle_continuation (void); - void finish_comment (octave_comment_elt::comment_type typ); + void finish_comment (comment_elt::comment_type typ); - octave_comment_list * get_comment (void) { return comment_buf.get_comment (); } + comment_list * get_comment (void) { return comment_buf.get_comment (); } int handle_close_bracket (int bracket_type);