summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-06-16 17:57:20 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-06-16 17:57:20 -0400
commitcfd621bc5bffb042aade8c6ec2d5b1b38cc58f5a (patch)
treeeb4dd1a1bcc05803cc4216ad0efddd4467cf66ed /session.h
parent6643650db25f9ea5b32fe767b4f09e2b6d91a7c4 (diff)
downloadsystemtap-steved-cfd621bc5bffb042aade8c6ec2d5b1b38cc58f5a.tar.gz
systemtap-steved-cfd621bc5bffb042aade8c6ec2d5b1b38cc58f5a.tar.xz
systemtap-steved-cfd621bc5bffb042aade8c6ec2d5b1b38cc58f5a.zip
warning/error message compaction by removing duplicated token file names
Diffstat (limited to 'session.h')
-rw-r--r--session.h6
1 files changed, 5 insertions, 1 deletions
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<std::string> seen_errors;
std::set<std::string> 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.
};