summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2008-05-14 10:56:37 +0530
committerAnanth N Mavinakayanahalli <ananth@in.ibm.com>2008-05-14 10:56:37 +0530
commitc3799d720b60bd74a60de4addcd0d77a90f7842a (patch)
tree82fbc6b86cb105f9bf3b9cfa4e4c6d371abaaee8 /parse.cxx
parent838cd09eb9134f49a4f290ae5f615edff781f153 (diff)
downloadsystemtap-steved-c3799d720b60bd74a60de4addcd0d77a90f7842a.tar.gz
systemtap-steved-c3799d720b60bd74a60de4addcd0d77a90f7842a.tar.xz
systemtap-steved-c3799d720b60bd74a60de4addcd0d77a90f7842a.zip
PR 5955 - Accept ; terminated globals
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.cxx b/parse.cxx
index ea22f36d..82116009 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1215,6 +1215,9 @@ parser::parse_global (vector <vardecl*>& globals, vector<probe*>&)
t = peek ();
}
+ if (t && t->type == tok_operator && t->content == ";") // termination
+ next();
+
if (t && t->type == tok_operator && t->content == ",") // next global
{
next ();