1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00

r21681: Fix bug in the parsing code that parsed "struct foo;" the same as

"struct foo {};".

Reported by one of the OpenChange folks, thanks!
This commit is contained in:
Jelmer Vernooij
2007-03-04 14:16:52 +00:00
committed by Gerald (Jerry) Carter
parent c6dfc90daf
commit d65b520f08
6 changed files with 1247 additions and 1264 deletions

View File

@@ -271,10 +271,13 @@ sub GetElementLevelTable($)
#####################################################################
# see if a type contains any deferred data
sub can_contain_deferred
sub can_contain_deferred($)
{
sub can_contain_deferred($);
my $e = shift;
print "$e->{NAME}\n";
return 0 if (Parse::Pidl::Typelist::is_scalar($e->{TYPE}));
return 1 unless (hasType($e->{TYPE})); # assume the worst