From c2320ee11c56d715a782d5af0114ae614979ae86 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 19 Jan 2005 11:24:29 +0000 Subject: r4842: 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! (This used to be commit b5c13fc6b8fe3f8dfa5ada73d33bd13cd607ebc4) --- source4/build/pidl/eparser.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/build/pidl') diff --git a/source4/build/pidl/eparser.pm b/source4/build/pidl/eparser.pm index f2a39eecbb..4f65d5ac17 100644 --- a/source4/build/pidl/eparser.pm +++ b/source4/build/pidl/eparser.pm @@ -630,6 +630,10 @@ sub RewriteC($$$) 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 $_; } -- cgit