summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-03-08 22:32:22 +0100
committerGitHub <noreply@github.com>2020-03-08 22:32:22 +0100
commit21e3a41e912336914d0456257b6737dd2e9be0ef (patch)
tree02b2311c68e2301d5c2e1e73deb4b10777b0257a /tools
parent4891c9710015fdf98ebea2873802e993aa127654 (diff)
parent2f32871ca7790a4924dec19aeeabc1da6cb1fc32 (diff)
downloadhercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.gz
hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.bz2
hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.xz
hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.zip
Merge pull request #2546 from HerculesWS/unit_refactor
Refactor unit.c - Part I
Diffstat (limited to 'tools')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl2
1 files changed, 2 insertions, 0 deletions
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