diff options
author | Hadriel Kaplan <hadrielk@yahoo.com> | 2014-02-02 22:49:30 -0500 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-02-04 00:37:46 +0000 |
commit | 2e7f771a182df815e8c3d38986a1df0c77d7e4aa (patch) | |
tree | 7e0fb8f65c75c19788fb3af273ec9228e696206e /docbook | |
parent | caed2818c94312d5df5d66fa20c6bba28fd49499 (diff) |
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>
Diffstat (limited to 'docbook')
-rw-r--r-- | docbook/CMakeLists.txt | 1 | ||||
-rw-r--r-- | docbook/Makefile.common | 1 | ||||
-rw-r--r-- | docbook/user-guide.xml | 1 | ||||
-rw-r--r-- | docbook/wsluarm.xml | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/docbook/CMakeLists.txt b/docbook/CMakeLists.txt index 8faee7c266..2c03b72c2b 100644 --- a/docbook/CMakeLists.txt +++ b/docbook/CMakeLists.txt @@ -289,6 +289,7 @@ set(WSLUA_MODULES ${CMAKE_SOURCE_DIR}/epan/wslua/wslua_dumper.c ${CMAKE_SOURCE_DIR}/epan/wslua/wslua_field.c ${CMAKE_SOURCE_DIR}/epan/wslua/wslua_gui.c + ${CMAKE_SOURCE_DIR}/epan/wslua/wslua_int64.c ${CMAKE_SOURCE_DIR}/epan/wslua/wslua_listener.c ${CMAKE_SOURCE_DIR}/epan/wslua/wslua_pinfo.c ${CMAKE_SOURCE_DIR}/epan/wslua/wslua_proto.c diff --git a/docbook/Makefile.common b/docbook/Makefile.common index 88e6635d03..c83c2a5874 100644 --- a/docbook/Makefile.common +++ b/docbook/Makefile.common @@ -262,6 +262,7 @@ WSLUA_MODULES = \ ../epan/wslua/wslua_listener.c \ ../epan/wslua/wslua_pinfo.c \ ../epan/wslua/wslua_proto.c \ + ../epan/wslua/wslua_int64.c \ ../epan/wslua/wslua_tree.c \ ../epan/wslua/wslua_tvb.c \ ../epan/wslua/wslua_util.c diff --git a/docbook/user-guide.xml b/docbook/user-guide.xml index 2289a74982..997190f315 100644 --- a/docbook/user-guide.xml +++ b/docbook/user-guide.xml @@ -347,6 +347,7 @@ WSLua Reference Manual <!ENTITY WsLuaTree SYSTEM "wsluarm_src/wslua_tree.xml"> <!ENTITY WsLuaTvb SYSTEM "wsluarm_src/wslua_tvb.xml"> <!ENTITY WsLuaUtility SYSTEM "wsluarm_src/wslua_util.xml"> + <!ENTITY WsLuaInt64 SYSTEM "wsluarm_src/wslua_int64.xml"> ]> diff --git a/docbook/wsluarm.xml b/docbook/wsluarm.xml index 0e769511ec..07f44ac368 100644 --- a/docbook/wsluarm.xml +++ b/docbook/wsluarm.xml @@ -177,4 +177,5 @@ end &WsLuaTree; &WsLuaTvb; &WsLuaUtility; + &WsLuaInt64; </chapter> |