diff options
author | Haru <haru@dotalux.com> | 2015-06-19 15:27:15 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-06-19 15:27:15 +0200 |
commit | 9bc51d6b4ca04557b240640fb8d95a95081f504d (patch) | |
tree | 8c4517829257a8f78144cd717dbbb1da25ba81f5 /tools/HPMHookGen/HPMHookGen.pl | |
parent | f444c3d53ba473641a8f21601784f83f84cc5ea2 (diff) | |
download | hercules-9bc51d6b4ca04557b240640fb8d95a95081f504d.tar.gz hercules-9bc51d6b4ca04557b240640fb8d95a95081f504d.tar.bz2 hercules-9bc51d6b4ca04557b240640fb8d95a95081f504d.tar.xz hercules-9bc51d6b4ca04557b240640fb8d95a95081f504d.zip |
Follow-up to e81d221
Let doxygen ignore __attribute__ instead of ignoring it at parse time.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen/HPMHookGen.pl')
-rwxr-xr-x | tools/HPMHookGen/HPMHookGen.pl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl index 9c0660300..a2e0698d3 100755 --- a/tools/HPMHookGen/HPMHookGen.pl +++ b/tools/HPMHookGen/HPMHookGen.pl @@ -21,11 +21,7 @@ sub trim($) { sub parse($$) { my ($p, $d) = @_; - - # Strip gcc attributes - $p =~ s/\s*__attribute__\s*\(\(.*$//; - $d =~ s/\s*__attribute__\s*\(\(.*$//; - + $p =~ s/^.*?\)\((.*)\).*$/$1/; # Clean up extra parentheses )(around the arglist) # Retrieve return type |