tdb:mksyms: allow characters after closing functions parenthesis.
authorMichael Adam <obnox@samba.org>
Fri, 11 Sep 2009 12:54:30 +0000 (14:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:44 +0000 (08:03 +0100)
Michael
(cherry picked from samba commit 400f08450b26f38a7dafd1d458542b4d9a8cb19e)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/script/mksyms.awk

index 0d80d9f70b77a17443c0f3c28951c62f2c12aeac..ca14da0f2177bf2005a3e5835d9e6679c813669f 100644 (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(/^[*]+/, "");