summaryrefslogtreecommitdiffstats
path: root/parse.h
diff options
context:
space:
mode:
authorfche <fche>2006-09-06 15:01:37 +0000
committerfche <fche>2006-09-06 15:01:37 +0000
commit4b5f3e450724431c52c100143d859846f4009329 (patch)
tree9f56e99a45928635482aa0356b18bac47fa730de /parse.h
parentbf72ac26078c3c179c98afca46e69827acf4d246 (diff)
downloadsystemtap-steved-4b5f3e450724431c52c100143d859846f4009329.tar.gz
systemtap-steved-4b5f3e450724431c52c100143d859846f4009329.tar.xz
systemtap-steved-4b5f3e450724431c52c100143d859846f4009329.zip
2006-09-06 Frank Ch. Eigler <fche@elastic.org>
Add basic support for initialized globals. * parse.cxx (parse_global): Parse initialization clause, implement by rewriting to "probe begin { var = value }". * parse.h: Corresponding changes. * stap.1.in: Document optional initialization. 2006-09-06 Frank Ch. Eigler <fche@elastic.org> * parseok/eighteen.stp, semok/twentythree.stp: New files for testing initialized globals.
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.h b/parse.h
index 335cbe53..0b10010d 100644
--- a/parse.h
+++ b/parse.h
@@ -154,7 +154,7 @@ private:
private: // nonterminals
void parse_probe (std::vector<probe*>&, std::vector<probe_alias*>&);
- void parse_global (std::vector<vardecl*>&);
+ void parse_global (std::vector<vardecl*>&, std::vector<probe*>&);
void parse_functiondecl (std::vector<functiondecl*>&);
embeddedcode* parse_embeddedcode ();
probe_point* parse_probe_point ();