summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorCharley Wang <chwang@redhat.com>2009-11-10 12:22:18 -0500
committerCharley Wang <chwang@redhat.com>2009-11-10 12:22:18 -0500
commitf1a0157a5bacc6c7f739a621ee86fec2be9b0080 (patch)
tree5be55af0801b2553afdf905524f7924219aec88d /parse.cxx
parent7885012ba0a7c1d7c974dd9528afa90aeed916a6 (diff)
downloadsystemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.tar.gz
systemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.tar.xz
systemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.zip
PR10877: Give token* to each component instead of each probe_point
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.cxx b/parse.cxx
index cfefa12d..74d7c634 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1085,7 +1085,7 @@ parser::parse_probe (std::vector<probe *> & probe_ret,
&& t->type == tok_operator && t->content == "=")
{
if (pp->optional || pp->sufficient)
- throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->tok);
+ throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->components.front()->tok);
aliases.push_back(pp);
next ();
continue;
@@ -1094,7 +1094,7 @@ parser::parse_probe (std::vector<probe *> & probe_ret,
&& t->type == tok_operator && t->content == "+=")
{
if (pp->optional || pp->sufficient)
- throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->tok);
+ throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->components.front()->tok);
aliases.push_back(pp);
epilogue_alias = 1;
next ();
@@ -1402,10 +1402,10 @@ parser::parse_probe_point ()
|| t->type == tok_keyword))
throw parse_error ("expected identifier or '*'");
- if (pl->tok == 0) pl->tok = t;
probe_point::component* c = new probe_point::component;
c->functor = t->content;
+ c->tok = t;
pl->components.push_back (c);
// NB we may add c->arg soon
@@ -1430,7 +1430,7 @@ parser::parse_probe_point ()
continue;
}
- // We only fall through here at the end of a probe point (past
+ // We only fall through here at the end of a probe point (past
// all the dotted/parametrized components).
if (t && t->type == tok_operator &&