diff options
author | hiramatu <hiramatu> | 2007-12-03 21:30:31 +0000 |
---|---|---|
committer | hiramatu <hiramatu> | 2007-12-03 21:30:31 +0000 |
commit | 0c218afb69ed53355a69e4264cbc5584908d65b4 (patch) | |
tree | 0a87329b516338c59d9359ff35b22b14a34d650f /parse.h | |
parent | b171146c8e8d4fa749b8829c47750750dc19f11c (diff) | |
download | systemtap-steved-0c218afb69ed53355a69e4264cbc5584908d65b4.tar.gz systemtap-steved-0c218afb69ed53355a69e4264cbc5584908d65b4.tar.xz systemtap-steved-0c218afb69ed53355a69e4264cbc5584908d65b4.zip |
2007-12-03 Masami Hiramatsu <mhiramat@redhat.com>
PR 5376
* parse.cxx (lexer::scan): Treat '*' as an alphabet if the wildcard
flag is true.
(parser::parse_probe_point): Call parser::next() with wildcard = true.
(parser::scan_pp): Add wildcard flag and pass it to lexer::scan.
(parser::next): Ditto.
(parser::peek): Ditto.
* parse.h : Ditto.
* testsuites/perseko/twentytwo.stp: Change testcase to the wildcarded
probe points with spaces.
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -69,7 +69,7 @@ struct systemtap_session; class lexer { public: - token* scan (bool expand_args=true); + token* scan (bool wildcard=false, bool expand_args=true); lexer (std::istream&, const std::string&, systemtap_session&); private: @@ -132,12 +132,12 @@ private: // preprocessing subordinate std::vector<const token*> enqueued_pp; - const token* scan_pp (bool expand_args=true); + const token* scan_pp (bool wildcard=false, bool expand_args=true); // scanning state const token* last (); - const token* next (); - const token* peek (); + const token* next (bool wildcard=false); + const token* peek (bool wildcard=false); const token* last_t; // the last value returned by peek() or next() const token* next_t; // lookahead token |