diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-04-07 00:27:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 00:27:22 (GMT) |
commit | bc84280186e65ece691d9c5bc238bed25e127ac0 (patch) | |
tree | fa07b3a236188575e450094a72d6ad0cbf0c579e /bin/trace | |
parent | 9d426d3162ed0091016becb922e1af8d865afb0d (diff) | |
download | hdf5-bc84280186e65ece691d9c5bc238bed25e127ac0.zip hdf5-bc84280186e65ece691d9c5bc238bed25e127ac0.tar.gz hdf5-bc84280186e65ece691d9c5bc238bed25e127ac0.tar.bz2 |
Normalization of 1.12 branch with develop (#1598)
Diffstat (limited to 'bin/trace')
-rwxr-xr-x | bin/trace | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -248,7 +248,9 @@ sub argstring ($$$) { # Normalize the data type by removing redundant white space, # certain type qualifiers, and indirection. - $atype =~ s/^\bconst\b//; + $atype =~ s/^\bconst\b//; # Leading const + $atype =~ s/\s*const\s*//; # const after type, possibly in the middle of '*'s + $atype =~ s/^\bstatic\b//; $atype =~ s/\bH5_ATTR_UNUSED\b//g; $atype =~ s/\bH5_ATTR_DEPRECATED_USED\b//g; $atype =~ s/\bH5_ATTR_NDEBUG_UNUSED\b//g; @@ -276,7 +278,7 @@ sub argstring ($$$) { } else { $tstr = $TypeString{$atype}; } - return ("*" x $ptr) . ($array?"[$array]":"") . $tstr; + return ("*" x $ptr) . ($array ? "[$array]" : "") . $tstr; } ############################################################################## @@ -305,7 +307,7 @@ sub rewrite_func ($$$$$) { my %names; for $arg (@args) { - if($arg=~/\w*\.{3}\w*/){ + if($arg=~/\w*\.{3}\w*/){ # Skip "..." for varargs parameter next; } unless ($arg=~/^(([a-z_A-Z]\w*\s+)+\**) |