summaryrefslogtreecommitdiff
path: root/lib/talloc/script/mksyms.awk
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-12 11:15:38 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-12 11:15:38 +1000
commitfe36b8af64195f10acead12d4a4f426cc8772a8c (patch)
treeaf98810b529728d46a10f0ac1e2d3203b63323a2 /lib/talloc/script/mksyms.awk
parent51fd80647de9cb531181eb1eeefe9ad2c473f784 (diff)
parentbbc0a56da59df8b7cd6f19f99cfaac9c3909779f (diff)
downloadsamba-fe36b8af64195f10acead12d4a4f426cc8772a8c.tar.gz
samba-fe36b8af64195f10acead12d4a4f426cc8772a8c.tar.bz2
samba-fe36b8af64195f10acead12d4a4f426cc8772a8c.zip
Merge branch 'master' of /home/tridge/samba/git/combined
Diffstat (limited to 'lib/talloc/script/mksyms.awk')
-rw-r--r--lib/talloc/script/mksyms.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/talloc/script/mksyms.awk b/lib/talloc/script/mksyms.awk
index a30bea4d34..ca14da0f21 100644
--- a/lib/talloc/script/mksyms.awk
+++ b/lib/talloc/script/mksyms.awk
@@ -28,7 +28,7 @@ END {
current_file=FILENAME
}
if (inheader) {
- if (match($0,"[)][ \t]*[;][ \t]*$")) {
+ if (match($0,"[)][^()]*[;][ \t]*$")) {
inheader = 0;
}
next;
@@ -57,10 +57,10 @@ END {
}
}
-/[_A-Za-z0-9]+[ \t]*[(].*[)][ \t]*;[ \t]*$/ {
+/[_A-Za-z0-9]+[ \t]*[(].*[)][^()]*;[ \t]*$/ {
sub(/[(].*$/, "");
gsub(/[^ \t]+[ \t]+/, "");
- gsub(/^[*]/, "");
+ gsub(/^[*]+/, "");
printf "\t\t%s;\n",$0;
next;
}