![Hadriel Kaplan](/assets/img/avatar_default.png)
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>
136 lines
2.9 KiB
Makefile
136 lines
2.9 KiB
Makefile
# Makefile.am
|
|
#
|
|
# $Id$
|
|
#
|
|
# Wireshark - Network traffic analyzer
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
# Copyright 1998 Gerald Combs
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
#
|
|
|
|
if HAVE_WARNINGS_AS_ERRORS
|
|
AM_CFLAGS = -Werror
|
|
endif
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) @LUA_INCLUDES@
|
|
|
|
noinst_LTLIBRARIES = libwslua.la
|
|
|
|
wslua_modules = \
|
|
$(srcdir)/lua_bitop.c \
|
|
$(srcdir)/wslua_tvb.c \
|
|
$(srcdir)/wslua_proto.c \
|
|
$(srcdir)/wslua_int64.c \
|
|
$(srcdir)/wslua_tree.c \
|
|
$(srcdir)/wslua_pinfo.c \
|
|
$(srcdir)/wslua_listener.c \
|
|
$(srcdir)/wslua_gui.c \
|
|
$(srcdir)/wslua_util.c \
|
|
$(srcdir)/wslua_field.c \
|
|
$(srcdir)/wslua_dumper.c
|
|
|
|
libwslua_la_SOURCES = \
|
|
$(wslua_modules) \
|
|
taps_wslua.c \
|
|
register_wslua.c \
|
|
init_wslua.c \
|
|
init_wslua.h \
|
|
wslua.h
|
|
|
|
libwslua_la_LIBADD = @LUA_LIBS@
|
|
|
|
BUILT_SOURCES = \
|
|
taps_wslua.c \
|
|
register_wslua.c \
|
|
declare_wslua.h
|
|
|
|
dist_pkgdata_DATA = \
|
|
console.lua \
|
|
dtd_gen.lua
|
|
|
|
nodist_pkgdata_DATA = \
|
|
init.lua
|
|
|
|
CLEANFILES = \
|
|
*~
|
|
|
|
DISTCLEANFILES = \
|
|
$(BUILT_SOURCES) \
|
|
taps.txt \
|
|
wslua_register.h \
|
|
init.lua
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
Makefile.in \
|
|
register_wslua.c \
|
|
declare_wslua.h
|
|
|
|
EXTRA_DIST = \
|
|
declare_wslua.h \
|
|
lua_bitop.h \
|
|
register_wslua.c \
|
|
taps \
|
|
make-reg.pl \
|
|
template-init.lua \
|
|
make-init-lua.pl \
|
|
make-taps.pl \
|
|
Makefile.nmake \
|
|
CMakeLists.txt
|
|
|
|
taps_used = \
|
|
../dissectors/packet-http.h \
|
|
../dissectors/packet-ip.h \
|
|
../dissectors/packet-udp.h \
|
|
../dissectors/packet-h225.h \
|
|
../dissectors/packet-ieee80211.h
|
|
|
|
taps: $(taps_used)
|
|
touch taps
|
|
|
|
taps_wslua.c: make-taps.pl taps
|
|
$(PERL) $(srcdir)/make-taps.pl taps taps_wslua.c taps.txt
|
|
|
|
taps.txt: taps_wslua.c
|
|
|
|
wslua.h: declare_wslua.h
|
|
|
|
register_wslua.c: declare_wslua.h
|
|
|
|
declare_wslua.h: make-reg.pl $(wslua_modules) taps_wslua.c
|
|
$(PERL) $(srcdir)/make-reg.pl $(wslua_modules);
|
|
|
|
dummy:
|
|
touch dummy
|
|
|
|
init.lua: template-init.lua make-init-lua.pl ../ftypes/ftypes.h ../../wiretap/wtap.h ../proto.h ../../stat_menu.h
|
|
$(PERL) $(srcdir)/make-init-lua.pl $(top_srcdir) $(srcdir)/template-init.lua > init.lua
|
|
|
|
checkapi:
|
|
$(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
|
|
init_wslua.c \
|
|
register_wslua.c \
|
|
taps_wslua.c \
|
|
wslua_dumper.c \
|
|
wslua_field.c \
|
|
wslua_gui.c \
|
|
wslua_int64.c \
|
|
wslua_pinfo.c \
|
|
wslua_proto.c \
|
|
wslua_listener.c \
|
|
wslua_tree.c \
|
|
wslua_tvb.c \
|
|
wslua_util.c
|