URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ea46cdc4748d84d5026a7703b25e427f8170833e
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
ea46cdc by Hadriel Kaplan (hadrielk@xxxxxxxxx):
Add GLib's regex library into Lua
While Lua's built-in pattern support is ok for simple things, many people end
up wanting a real regex engine. Since Wireshark already includes the GLib
Regex library (a wrapper for PCRE), it makes sense to expose that library to
Lua scripts. This has been done using Lrexlib, one of the most popular regex
bindings for Lua. Lrexlib didn't support binding GLib's Regex in particular -
it does for PCRE but GLib is a different API - so I've done that. A fairly
thorough testsuite came along with that, which has been incorporated into the
wireshark wslua testuites as well in this commit.
Change-Id: I05811d1edf7af8d7c9f4f081de6850f31c0717c7
Reviewed-on: https://code.wireshark.org/review/332
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from 81c0091 Try to improve the "Kerberos requested but not OpenSSL" message.
adds ea46cdc Add GLib's regex library into Lua
Summary of changes:
docbook/CMakeLists.txt | 1 -
docbook/wsluarm.xml | 487 ++++++++++++++++++++++++++++
epan/wslua/CMakeLists.txt | 3 +
epan/wslua/Makefile.am | 7 +
epan/wslua/Makefile.nmake | 6 +
epan/wslua/lrexlib.c | 266 +++++++++++++++
epan/wslua/lrexlib.h | 130 ++++++++
epan/wslua/lrexlib_algo.h | 755 +++++++++++++++++++++++++++++++++++++++++++
epan/wslua/lrexlib_glib.c | 414 ++++++++++++++++++++++++
epan/wslua/lrexlib_glib_f.c | 138 ++++++++
epan/wslua/make-reg.pl | 1 +
epan/wslua/wslua.h | 1 +
test/lua/common_sets.lua | 319 ++++++++++++++++++
test/lua/glib_sets.lua | 204 ++++++++++++
test/lua/gregex.lua | 285 ++++++++++++++++
test/lua/luatest.lua | 174 ++++++++++
test/lua/pat2pcre.lua | 87 +++++
test/lua/pcre_sets.lua | 179 ++++++++++
test/lua/pcre_sets2.lua | 198 ++++++++++++
test/suite-wslua.sh | 21 +-
20 files changed, 3673 insertions(+), 3 deletions(-)
create mode 100644 epan/wslua/lrexlib.c
create mode 100644 epan/wslua/lrexlib.h
create mode 100644 epan/wslua/lrexlib_algo.h
create mode 100644 epan/wslua/lrexlib_glib.c
create mode 100644 epan/wslua/lrexlib_glib_f.c
create mode 100755 test/lua/common_sets.lua
create mode 100644 test/lua/glib_sets.lua
create mode 100644 test/lua/gregex.lua
create mode 100755 test/lua/luatest.lua
create mode 100755 test/lua/pat2pcre.lua
create mode 100755 test/lua/pcre_sets.lua
create mode 100755 test/lua/pcre_sets2.lua