Wireshark-commits: [Wireshark-commits] master d4eeeaf6: Lua: Add unit names support.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d4eeeaf6d463f930c89e9026b682339e1e114b34
Submitter: Stig Bjørlykke (stig@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
d4eeeaf6 by Stig Bjørlykke (stig@xxxxxxxxxxxxx):
Lua: Add unit names support.
Add support for using unit names in ProtoField integer types by
using base.UNIT_STRING.
Add unit name table argument in ProtoField.float() and
ProtoField.double() (and made backward compatibility).
The use of base.UNIT_STRING is not really the best API for adding
unit names in Lua, but is the simples solution without adding new
arguments to ProtoField.
Change-Id: Ib5d064480cffd970a41db1764440642f6c593bb2
Reviewed-on: https://code.wireshark.org/review/19313
Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Actions performed:
from d9cc2b5 Update comments and messages for the new name for Apple's OS for Macs.
adds d4eeeaf6 Lua: Add unit names support.
Summary of changes:
epan/wslua/make-init-lua.pl | 6 ++
epan/wslua/wslua_proto_field.c | 231 ++++++++++++++++++++++++++++++++--------
2 files changed, 194 insertions(+), 43 deletions(-)