diff options
author | Tim Potter <tpot@samba.org> | 2005-01-19 11:24:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:00 -0500 |
commit | c2320ee11c56d715a782d5af0114ae614979ae86 (patch) | |
tree | 810ad1a9a815378857f8462b485fd0d1bb185269 | |
parent | 72785f13cd983c6950435cf962d7db8cb2a7b030 (diff) | |
download | samba-c2320ee11c56d715a782d5af0114ae614979ae86.tar.gz samba-c2320ee11c56d715a782d5af0114ae614979ae86.tar.bz2 samba-c2320ee11c56d715a782d5af0114ae614979ae86.zip |
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)
-rw-r--r-- | source4/build/pidl/eparser.pm | 4 |
1 files changed, 4 insertions, 0 deletions
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 $_; } |