From f1a0157a5bacc6c7f739a621ee86fec2be9b0080 Mon Sep 17 00:00:00 2001 From: Charley Wang Date: Tue, 10 Nov 2009 12:22:18 -0500 Subject: PR10877: Give token* to each component instead of each probe_point --- parse.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'parse.cxx') 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_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_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 && -- cgit