From 7214eb1ef48352911a84ada089bbebdb0d5678f2 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 16 Apr 2016 23:51:57 +0200 Subject: Changed the HPMHookGen script to correctly handle macros associated with an interface Signed-off-by: Haru --- tools/HPMHookGen/HPMHookGen.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl index 1d6a3e122..75dd51736 100755 --- a/tools/HPMHookGen/HPMHookGen.pl +++ b/tools/HPMHookGen/HPMHookGen.pl @@ -359,6 +359,7 @@ foreach my $file (@files) { # Loop through the xml files my $bstart = $b->{location}->[0]->{bodystart} || $b->{location}->[0]->{line}; $astart <=> $bstart } @$memberdef) { # Loop through the members + next unless $f->{kind} eq 'variable'; # Skip macros my $t = $f->{argsstring}->[0]; my $def = $f->{definition}->[0]; if ($f->{type}->[0] =~ /^\s*LoginParseFunc\s*\*\s*$/) { -- cgit v1.2.3-70-g09d2