Wireshark-commits: [Wireshark-commits] master c4f1777: Adds support for Lua struct library so one c

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 14 Feb 2014 10:11:51 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c4f1777a97415b8b7d76eda27dcd6f238501e5f3
Submitter: Alexis La Goutte (alexis.lagoutte@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

c4f1777 by Hadriel Kaplan (hadrielk@xxxxxxxxx):

    Adds support for Lua struct library so one can pack/unpack binary structures
    
    This is based on Roberto Ierusalimschy's struct library, along with additional
    options based on Flemming Madsen's patch to the lua-users mailing list, and
    some changes I made to support 64-bit integer packing/unpacking.  Details
    are in the top comments for wslua_struct.c.  This also includes a test script.
    
    Change-Id: Ifcd0116ba013d5c760927721c8d6e9f28965534b
    Reviewed-on: https://code.wireshark.org/review/98
    Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    Tested-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    

Actions performed:

    from  7a50370   Add some asn1 files to .gitignore.
    adds  c4f1777   Adds support for Lua struct library so one can pack/unpack binary structures


Summary of changes:
 docbook/CMakeLists.txt       |    2 +
 docbook/Makefile.common      |    1 +
 docbook/user-guide.xml       |    1 +
 docbook/wsluarm.xml          |    1 +
 epan/wslua/CMakeLists.txt    |    1 +
 epan/wslua/Makefile.am       |    4 +-
 epan/wslua/Makefile.nmake    |    2 +
 epan/wslua/template-init.lua |    2 +-
 epan/wslua/wslua.h           |    6 +
 epan/wslua/wslua_int64.c     |   21 +-
 epan/wslua/wslua_struct.c    |  529 ++++++++++++++++++++++++++++++++++++++++++
 test/lua/struct.lua          |  339 +++++++++++++++++++++++++++
 test/suite-unittests.sh      |   17 ++
 13 files changed, 915 insertions(+), 11 deletions(-)
 create mode 100644 epan/wslua/wslua_struct.c
 create mode 100644 test/lua/struct.lua