summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2008-06-17 09:20:16 -0500
committerDavid Smith <dsmith@redhat.com>2008-06-17 09:20:16 -0500
commit6ebf08661086e6739b9fd58ddae336a91113306e (patch)
tree9f45b8f3808ed1a5ab1bb144f525b3a464dfb12c /session.h
parent81c361887ec0a5cfd9bdb635b999b590cb7b57f7 (diff)
parentc815c982cc0691360dfd3073276dba071aac840e (diff)
downloadsystemtap-steved-6ebf08661086e6739b9fd58ddae336a91113306e.tar.gz
systemtap-steved-6ebf08661086e6739b9fd58ddae336a91113306e.tar.xz
systemtap-steved-6ebf08661086e6739b9fd58ddae336a91113306e.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap into work
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 f49edd46..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, const 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.
};