diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-06-16 17:57:20 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-06-16 17:57:20 -0400 |
commit | cfd621bc5bffb042aade8c6ec2d5b1b38cc58f5a (patch) | |
tree | eb4dd1a1bcc05803cc4216ad0efddd4467cf66ed /session.h | |
parent | 6643650db25f9ea5b32fe767b4f09e2b6d91a7c4 (diff) | |
download | systemtap-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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. }; |