Show lines from input files in diagnostics.
commit3bd2ebdae3a8d8439493f7279ee52ee85890605c
authorrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Oct 2005 17:38:09 +0000 (3 17:38 +0000)
committerrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Oct 2005 17:38:09 +0000 (3 17:38 +0000)
tree291dcb444b10ccba6dc4ef82279ec7678b0ce2b8
parent4f62ba51030161336a7b0dae2bfd2c1d94e5a8c1
Show lines from input files in diagnostics.
* source/ucs2.hh (ucs2_reader::limit): Rename to 'end'.
(ucs2_reader::begin): New field.
(ucs2_reader::posn): Likewise.
(ucs2_reader::max_posn): Likewise.
(ucs2_reader::get_uint8): Update POSN as needed.
(ucs2_reader::get_posn): New method.
(ucs2_reader::set_posn): Likewise.
* source/ucs2.cc (ucs2_reader::ucs2_reader): Initialise new fields.
* source/iconv.cc (iconv_ucs2_reader::refill): Use END instead of
LIMIT.
(iconv_ucs2_reader::get): Likewise.
* source/lex.hh (lexer::get_line): New method.
* source/lex.cc (lexer::get_line): Implementation of the above.
* location.hh (location::get_column): New method.
* format/format.hh (format_repr::src_lexer): New field.
(format_repr::set_lexer): New method.
* format/format.cc (format_repr::format_repr): Initialise SRC_LEXER.
(format_repr::dump): Show source line, if possible, using SRC_LEXER.
* exception.hh (exception_base::set_lexer): New method.
* model/unit.hh (model_unit::src_lexer): New field.
(model_unit::model_unit): Initialise SRC_LEXER.
(model_unit::~model_unit): New destructor.
(model_unit::set_lexer): New method.
(model_unit::get_lexer): Likewise.
* reader/source.cc (source_file_creator::apply): Set lexer for
compilation unit and exception, if any.
* source/parse.hh (parse::~parse): Do not destory token stream.
* typedefs.hh: Rearrange inclusion of headers.
* compiler.cc (compiler::do_analyze_unit): Set lexer for exception,
if any.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcjx-branch@104901 138bc75d-0d04-0410-961f-82ee72b054a4
15 files changed:
gcjx/ChangeLog
gcjx/compiler.cc
gcjx/exception.hh
gcjx/format/format.cc
gcjx/format/format.hh
gcjx/location.hh
gcjx/model/unit.hh
gcjx/reader/source.cc
gcjx/source/iconv.cc
gcjx/source/lex.cc
gcjx/source/lex.hh
gcjx/source/parse.hh
gcjx/source/ucs2.cc
gcjx/source/ucs2.hh
gcjx/typedefs.hh