Wireshark-commits: [Wireshark-commits] master 6eba988: wslua: Add support for base.RANGE_STRING han

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 17 Oct 2018 20:09:02 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=6eba988f7cf739f2f9055dfedcc94eba5d3246a9
Submitter: "Richard Sharpe <realrichardsharpe@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

6eba988 by Richard Sharpe (realrichardsharpe@xxxxxxxxx):

    wslua: Add support for base.RANGE_STRING handling.
    
    A range string is passed as a table of tables, eg:
    
      range_string = {
         { 0, 24, "Some string for values 0 to 24" },
         { 25, 25, "The string for value 25" },
         { 26, 255, "The string for the remainder" }
      }
    
    Included is a minimal Lua test for range strings and value strings
    (which did not have one previously.) It will take more time than I
    currently have to figure out how to do a more exhaustive test.
    
    Also fixed some grammar issues in error messages along the way.
    
    Change-Id: Ia9d1efc8adabb6528c4bdcf1624c9ede49e2fdc6
    Reviewed-on: https://code.wireshark.org/review/30211
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Reviewed-by: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
    

Actions performed:

    from  c826e2a   extcap: Close stdout_fd and stderr_fd when done
     add  6eba988   wslua: Add support for base.RANGE_STRING handling.


Summary of changes:
 epan/proto.c                   |   6 ++
 epan/proto.h                   |   2 +-
 epan/wslua/make-init-lua.pl    |   6 ++
 epan/wslua/wslua_proto_field.c | 229 ++++++++++++++++++++++++++++++++++-------
 test/lua/tvb.lua               |   9 ++
 5 files changed, 216 insertions(+), 36 deletions(-)