r4797: Add the name of what we are pointing to when dissecting pointers.
authorTim Potter <tpot@samba.org>
Mon, 17 Jan 2005 06:21:40 +0000 (06:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:56 +0000 (13:08 -0500)
(This used to be commit 6fc162738f86f8f7df013623e57a21970a8b6f36)

source4/build/pidl/eparser.pm

index 58a545cc6f51243a3ab3979c8c1c56ca8f28b4f6..b97857552fe3f9fb3290696860772027dbfea22a 100644 (file)
@@ -511,10 +511,10 @@ sub RewriteC($$$)
        # of adding a couple of parameters to each function call.
         #
 
-       # Add proto tree and hf argument to ndr_pull_ptr() calls.
+       # Add proto tree and name argument to ndr_pull_ptr() calls.
 
-       s/(ndr_pull_ptr\(ndr,\ ([^\)]*?)\);)
-           /ndr_pull_ptr(ndr, tree, hf_ptr, $2);/smgx;
+       s/(ndr_pull_ptr\(ndr,\ (&_ptr_([^\)]*?))\);)
+           /ndr_pull_ptr(ndr, tree, "$3", $2);/smgx;
 
        # Wrap ndr_pull_array_size() and ndr_pull_array_length()
        # functions.  Add leading space in front of first parameter so