diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-03-20 09:35:44 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-03-20 09:35:44 +0100 |
commit | 9ba817408c6eb81d9ed470314cff1d2d412c4b68 (patch) | |
tree | 81cdd381dc4a9c8007102ce4465a7a2c6c016a4e /parse.cxx | |
parent | 5e94ef56760c087784e485c35521a6e438cfc3e5 (diff) | |
parent | 0cf9ea606eb7677a1241595f7568dd4a6c243ef2 (diff) | |
download | systemtap-steved-9ba817408c6eb81d9ed470314cff1d2d412c4b68.tar.gz systemtap-steved-9ba817408c6eb81d9ed470314cff1d2d412c4b68.tar.xz systemtap-steved-9ba817408c6eb81d9ed470314cff1d2d412c4b68.zip |
Merge branch 'master' into pr6866
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(); |