summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-04-25 17:58:29 +0200
committerHaru <haru@dotalux.com>2018-04-25 17:58:29 +0200
commitbb0e228bd29dd689ca76f64578de8759415a763b (patch)
treeaec7cbd0aab9fa7a49a009b4b2a8b810832b3909
parenta1f048fc6bdb14199cfaaf2b8f221333a764ddc9 (diff)
downloadhercules-bb0e228bd29dd689ca76f64578de8759415a763b.tar.gz
hercules-bb0e228bd29dd689ca76f64578de8759415a763b.tar.bz2
hercules-bb0e228bd29dd689ca76f64578de8759415a763b.tar.xz
hercules-bb0e228bd29dd689ca76f64578de8759415a763b.zip
Add support for time_t as return type in the HPMHookGen
Signed-off-by: Haru <haru@dotalux.com>
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index 35c531ea8..e5a5c1914 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -3,7 +3,7 @@
# This file is part of Hercules.
# http://herc.ws - http://github.com/HerculesWS/Hercules
#
-# Copyright (C) 2013-2017 Hercules Dev Team
+# Copyright (C) 2013-2018 Hercules Dev Team
#
# Hercules is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -255,6 +255,7 @@ sub parse($$) {
or $x =~ /^u?int(?:8|16|32|64)$/
or $x eq 'defType'
or $x eq 'size_t'
+ or $x eq 'time_t'
) { # Numeric variables
$rtinit = ' = 0';
} else { # Anything else