Adds support for Lua Int64 and UInt64 operators, functions, and general
authorHadriel Kaplan <hadrielk@yahoo.com>
Mon, 3 Feb 2014 03:49:30 +0000 (22:49 -0500)
committerEvan Huus <eapache@gmail.com>
Tue, 4 Feb 2014 00:37:46 +0000 (00:37 +0000)
commit2e7f771a182df815e8c3d38986a1df0c77d7e4aa
tree7e0fb8f65c75c19788fb3af273ec9228e696206e
parentcaed2818c94312d5df5d66fa20c6bba28fd49499
Adds support for Lua Int64 and UInt64 operators, functions, and general
usefulness, working around bug #9162 until Lua 5.3 is released.

The existing Int64 and UInt64 classes provide virtually no
usefullness, other than for creating a string of their value.  While
one could then write Lua code to convert the string to Lua numbers and
such, ultimately Lua has no native 64-bit integer support, making such
a task difficult to handle in Lua.  This change adds a host of
functions and operators to the existing Int64 (gint64) and UInt64
(guint64) classes, to enable true 64-bit integer support on par with
native Lua numbers.

A test script is also provided, which tests the functions/operators.

Change-Id: I4c5f8f5219b9a88198902283bd32ddf24c346bbe
Reviewed-on: https://code.wireshark.org/review/83
Tested-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
16 files changed:
docbook/CMakeLists.txt
docbook/Makefile.common
docbook/user-guide.xml
docbook/wsluarm.xml
epan/wslua/CMakeLists.txt
epan/wslua/Makefile.am
epan/wslua/Makefile.nmake
epan/wslua/make-reg.pl
epan/wslua/wslua.h
epan/wslua/wslua_field.c
epan/wslua/wslua_int64.c [new file with mode: 0644]
epan/wslua/wslua_tree.c
epan/wslua/wslua_tvb.c
epan/wslua/wslua_util.c
test/lua/int64.lua [new file with mode: 0755]
test/suite-unittests.sh