svn commit: samba r4842 - in branches/SAMBA_4_0/source/build/pidl: .

tpot at samba.org tpot at samba.org
Wed Jan 19 11:24:30 GMT 2005


Author: tpot
Date: 2005-01-19 11:24:29 +0000 (Wed, 19 Jan 2005)
New Revision: 4842

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4842

Log:
Set the end of a structure so that when you click on the proto tree,
the hex display window highlights the part of the buffer occupied by
the structure.  Cool!

Modified:
   branches/SAMBA_4_0/source/build/pidl/eparser.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/eparser.pm
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/eparser.pm	2005-01-19 10:17:46 UTC (rev 4841)
+++ branches/SAMBA_4_0/source/build/pidl/eparser.pm	2005-01-19 11:24:29 UTC (rev 4842)
@@ -630,6 +630,10 @@
         s/(u?)int(8|16|32) _level;/$1int$2_t _level;/smg;
         s/ndr_pull_([^\(]*)\(ndr,\ tree,\ hf_level,\ &_level\);
             /ndr_pull_$1(ndr, tree, hf_level_$1, &_level);/smgx;
+
+        # Set the end of a structure
+       
+        s/(ndr_pull_struct_end.*)/$1\tproto_item_set_end(tree->proto_tree, ndr->tvb, ndr->offset);\n/smg;
 				
 	pidl $_;
     }



More information about the samba-cvs mailing list