diff options
author | Dave Brolley <brolley@redhat.com> | 2009-03-20 11:49:56 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-03-20 11:49:56 -0400 |
commit | c11e62bef0f85147c96aeb7d0a7f9fd69da51db6 (patch) | |
tree | fc320ed03c59849fb922acff51b7b93f89fe6047 /parse.cxx | |
parent | 1ca3466b0426566a6c6ba03251d8cca3d111f170 (diff) | |
parent | 0cf9ea606eb7677a1241595f7568dd4a6c243ef2 (diff) | |
download | systemtap-steved-c11e62bef0f85147c96aeb7d0a7f9fd69da51db6.tar.gz systemtap-steved-c11e62bef0f85147c96aeb7d0a7f9fd69da51db6.tar.xz systemtap-steved-c11e62bef0f85147c96aeb7d0a7f9fd69da51db6.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'parse.cxx')
-rw-r--r-- | parse.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2341,6 +2341,12 @@ parser::parse_symbol () cop->operand = parse_expression (); expect_op(","); expect_unknown(tok_string, cop->type); + // types never start with "struct<space>" or "union<space>", + // so gobble it up. + if (cop->type.compare(0, 7, "struct ") == 0) + cop->type = cop->type.substr(7); + if (cop->type.compare(0, 6, "union ") == 0) + cop->type = cop->type.substr(6); if (peek_op (",")) { next(); |