summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
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.
};