From 504d30428dc8d17c8521fd3b4b725963a49b045a Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 8 Sep 2019 20:36:29 +0200 Subject: Add support for enum market_buy_result and enum unit_dir to the HPMHookGen Signed-off-by: Haru --- tools/HPMHookGen/HPMHookGen.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl index 3cb81eeb2..cd4f10e2a 100755 --- a/tools/HPMHookGen/HPMHookGen.pl +++ b/tools/HPMHookGen/HPMHookGen.pl @@ -246,6 +246,8 @@ sub parse($$) { $rtinit = ' = THREADPRIO_NORMAL'; } elsif ($x =~ /^enum\s+market_buy_result$/) { # Known enum market_buy_result $rtinit = ' = MARKET_BUY_RESULT_ERROR'; + } elsif ($x =~ /^enum\s+unit_dir$/) { # Known enum unit_dir + $rtinit = ' = UNIT_DIR_UNDEFINED'; } elsif ($x eq 'DBComparator' or $x eq 'DBHasher' or $x eq 'DBReleaser') { # DB function pointers $rtinit = ' = NULL'; } elsif ($x =~ /^(?:struct|union)\s+.*$/) { # Structs and unions -- cgit v1.2.3-70-g09d2