Commit ef9a9c49 authored by unknown's avatar unknown

dbug_add_tags.pl:

  bugfixes


dbug/dbug_add_tags.pl:
  bugfixes
parent 6c76246e
...@@ -7,7 +7,7 @@ $ctags="exctags -x -f - --c-types=f -u"; ...@@ -7,7 +7,7 @@ $ctags="exctags -x -f - --c-types=f -u";
sub get_tag { sub get_tag {
local $.; local $_=<TAGS>; local $.; local $_=<TAGS>;
($symbol, $line)= /^(.*\S)\s+function\s+(\d+)/; ($symbol, $line)= /^(.*\S)\s+function\s+(\d+)/;
$symbol=$1 if /\s(\S+)\s*\(/; $symbol=$1 if /[\s*]([^\s*]+)\s*\(/;
$line=1e50 unless $line; $line=1e50 unless $line;
} }
...@@ -51,7 +51,7 @@ while($src=shift) ...@@ -51,7 +51,7 @@ while($src=shift)
$skip=!$semicolon; $skip=!$semicolon;
$semicolon= /;\s*$/; $semicolon= /;\s*$/;
print && next if $skip || print && next if $skip ||
(/^\s+\w+((::\w+)?|<\w+>)\s+\**\w+/ && !/^\s*return/); (/^\s+\w+((::\w+)?|<\w+>)\s+\**\w+/ && !/^\s*return\b/);
last if /DBUG_ENTER/; last if /DBUG_ENTER/;
print "$tab DBUG_ENTER(\"$symbol\");\n"; print "$tab DBUG_ENTER(\"$symbol\");\n";
print "\n" unless $_ eq "\n"; print "\n" unless $_ eq "\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment