]> git.sur5r.net Git - openldap/commitdiff
Update wrap_slap_ops.
authorHallvard Breien Furuseth <h.b.furuseth@usit.uio.no>
Tue, 27 Jan 2015 22:37:46 +0000 (23:37 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 28 Jan 2015 16:43:36 +0000 (10:43 -0600)
Catch a new bi_op_bind[]() case.  Silence warnings in END{}.

contrib/slapd-tools/wrap_slap_ops

index 507d7c1e25efeccb458a3246e7544bbd91c6b6f2..e0981689f78cb1f0dcdde79c4b403d21880a30f5 100755 (executable)
@@ -63,7 +63,7 @@ sub file_result( $$ ) {
 }
 
 END {
-       print STDERR <<EOMSG;
+       print STDERR <<EOMSG if defined $ccnt;
 $ccnt files to change. $rcnt suspicious lines remain. (Expect three in slapd).
 EOMSG
 }
@@ -95,7 +95,7 @@ s%(                               # 1: entire match: "<delim><function>("
 
 # (&x->bi_op_bind)[which](op, rs)  ==>  slap_bi_op(x, which, op, rs)
 #    (&x->be_bind)[which](op, rs)  ==>  slap_be_op(x, which, op, rs)
-s/\(&(\w+)->b(?=([ei]))(?:e|i_op)_bind\)\[\s* (\w+) \s*\] \((\s*) ([^()]*)\)
+s/\(&(\w+(?:(?:->|\.)\w+)*)->b(?=([ei]))(?:e|i_op)_bind\)\[\s* (\w+) \s*\] \((\s*) ([^()]*)\)
  /slap_b$2_op($4$1, $3, $5)/gox;
 
 # slap_bi_op(x->bd_info, which, op, rs)  ==>  slap_be_op( x, which, op, rs)