From cfd621bc5bffb042aade8c6ec2d5b1b38cc58f5a Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 16 Jun 2008 17:57:20 -0400 Subject: warning/error message compaction by removing duplicated token file names --- session.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'session.h') diff --git a/session.h b/session.h index 6ae44fe2..e49b50d7 100644 --- a/session.h +++ b/session.h @@ -25,6 +25,7 @@ extern "C" { struct match_node; struct stapfile; struct vardecl; +struct token; struct functiondecl; struct derived_probe; struct be_derived_probe_group; @@ -165,9 +166,12 @@ struct systemtap_session std::set seen_errors; std::set seen_warnings; unsigned num_errors () { return seen_errors.size(); } + // void print_error (const parse_error& e); + const token* last_token; + void print_token (std::ostream& o, const token* tok); void print_error (const semantic_error& e); - void print_warning (const std::string& w, std::string o); + void print_warning (const std::string& w, const token* tok = 0); // reNB: new POD members likely need to be explicitly cleared in the ctor. }; -- cgit