![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>
94 lines
1.7 KiB
Makefile
94 lines
1.7 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
include ..\..\config.nmake
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
|
|
/I. /I.. /I../.. $(GLIB_CFLAGS) \
|
|
$(LUA_CFLAGS) -DWS_BUILD_DLL\
|
|
/I$(PCAP_DIR)\include
|
|
|
|
.c.obj::
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
|
|
|
MODULES = \
|
|
lua_bitop.c \
|
|
wslua_tvb.c \
|
|
wslua_proto.c \
|
|
wslua_int64.c \
|
|
wslua_tree.c \
|
|
wslua_pinfo.c \
|
|
wslua_listener.c \
|
|
wslua_gui.c \
|
|
wslua_util.c \
|
|
wslua_field.c \
|
|
wslua_dumper.c
|
|
|
|
OBJECTS= \
|
|
init_wslua.obj \
|
|
register_wslua.obj \
|
|
taps_wslua.obj \
|
|
lua_bitop.obj \
|
|
wslua_dumper.obj \
|
|
wslua_field.obj \
|
|
wslua_gui.obj \
|
|
wslua_pinfo.obj \
|
|
wslua_proto.obj \
|
|
wslua_listener.obj \
|
|
wslua_int64.obj \
|
|
wslua_tree.obj \
|
|
wslua_tvb.obj \
|
|
wslua_util.obj
|
|
|
|
wslua.lib : $(OBJECTS) init.lua
|
|
link /lib /NODEFAULTLIB /out:wslua.lib $(OBJECTS)
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) wslua.lib *.pdb *.sbr init.lua taps_wslua.c declare_wslua.h register_wslua.c taps.txt
|
|
|
|
init_wslua.c: declare_wslua.h
|
|
|
|
distclean: clean
|
|
|
|
maintainer-clean: distclean
|
|
|
|
TAPS_USED = \
|
|
../dissectors/packet-http.h \
|
|
../dissectors/packet-ip.h \
|
|
../dissectors/packet-udp.h \
|
|
../dissectors/packet-h225.h
|
|
|
|
taps: $(TAPS_USED)
|
|
touch taps
|
|
|
|
taps_wslua.c: make-taps.pl taps
|
|
$(PERL) make-taps.pl taps taps_wslua.c taps.txt
|
|
|
|
taps.txt: taps_wslua.c
|
|
|
|
register_wslua.c: declare_wslua.h
|
|
|
|
wslua.h: declare_wslua.h
|
|
|
|
declare_wslua.h: make-reg.pl $(MODULES)
|
|
$(PERL) make-reg.pl $(MODULES)
|
|
|
|
doc: $(MODULES)
|
|
$(PERL) make-doc.pl $(MODULES)
|
|
|
|
dummy:
|
|
touch dummy
|
|
|
|
init.lua: template-init.lua make-init-lua.pl ../ftypes/ftypes.h ../../wiretap/wtap.h ../proto.h
|
|
$(PERL) make-init-lua.pl "../.." template-init.lua > init.lua
|
|
|
|
checkapi:
|
|
$(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
|
|
$(MODULES) \
|
|
init_wslua.c \
|
|
register_wslua.c \
|
|
taps_wslua.c
|