1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

tdb:mksyms: allow characters after closing functions parenthesis.

Michael
(cherry picked from samba commit 400f08450b)

Signed-off-by: Stefan Metzmacher <metze@samba.org>

(This used to be ctdb commit 310d673b7cb9000d76437d78e43bc2bf133e4e14)
This commit is contained in:
Michael Adam 2009-09-11 14:54:30 +02:00 committed by Stefan Metzmacher
parent 31b9126d29
commit 67d7709140

View File

@ -28,7 +28,7 @@ END {
current_file=FILENAME
}
if (inheader) {
if (match($0,"[)][ \t]*[;][ \t]*$")) {
if (match($0,"[)][^()]*[;][ \t]*$")) {
inheader = 0;
}
next;
@ -57,7 +57,7 @@ END {
}
}
/[_A-Za-z0-9]+[ \t]*[(].*[)][ \t]*;[ \t]*$/ {
/[_A-Za-z0-9]+[ \t]*[(].*[)][^()]*;[ \t]*$/ {
sub(/[(].*$/, "");
gsub(/[^ \t]+[ \t]+/, "");
gsub(/^[*]+/, "");