From 87b84b7813ec35abb80f49f1e389390f9420d730 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 10 Nov 2021 15:51:29 -0800 Subject: [PATCH] Lua is a proper name. Fix its capitalization. --- CMakeLists.txt | 2 +- docbook/wsdg_src/WSDG_chapter_libraries.adoc | 4 ++-- epan/epan.c | 2 +- epan/wslua/wslua.h | 2 +- epan/wslua/wslua_proto_field.c | 4 ++-- plugins/epan/transum/decoders.c | 2 +- plugins/epan/transum/packet-transum.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50c30f7f5e..d416966606 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2231,7 +2231,7 @@ foreach(_install_file ${INSTALL_FILES}) list(APPEND copy_data_files_depends "${_output_file}") endforeach() -# Install LUA files in staging directory such that LUA can used when Wireshark +# Install Lua files in staging directory such that Lua can used when Wireshark # is ran from the build directory. For install targets, see # epan/wslua/CMakeLists.txt if(LUA_FOUND AND ENABLE_LUA) diff --git a/docbook/wsdg_src/WSDG_chapter_libraries.adoc b/docbook/wsdg_src/WSDG_chapter_libraries.adoc index aa3f9e30aa..0ae9fb993a 100644 --- a/docbook/wsdg_src/WSDG_chapter_libraries.adoc +++ b/docbook/wsdg_src/WSDG_chapter_libraries.adoc @@ -339,9 +339,9 @@ https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[]. [[ChLibsLua]] -=== LUA (Optional) +=== Lua (Optional) -The LUA library is used to add scripting support to Wireshark. +The Lua library is used to add scripting support to Wireshark. [[ChLibsUnixLua]] diff --git a/epan/epan.c b/epan/epan.c index 1b4f2aa2df..85a02ed4ac 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -769,7 +769,7 @@ epan_dissect_packet_contains_field(epan_dissect_t* edt, void epan_get_compiled_version_info(GString *str) { - /* LUA */ + /* Lua */ #ifdef HAVE_LUA g_string_append(str, ", with " LUA_RELEASE); #else diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 95c5eb559f..539a7050f4 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -692,7 +692,7 @@ extern C shift##C(lua_State* L,int i) #define THROW_LUA_ERROR(...) \ THROW_FORMATTED(DissectorError, __VA_ARGS__) -/* Catches any Wireshark exceptions in code and convert it into a LUA error. +/* Catches any Wireshark exceptions in code and convert it into a Lua error. * Normal restrictions for TRY/CATCH apply, in particular, do not return! */ #define WRAP_NON_LUA_EXCEPTIONS(code) \ { \ diff --git a/epan/wslua/wslua_proto_field.c b/epan/wslua/wslua_proto_field.c index 2d4b0d06cd..558858389e 100644 --- a/epan/wslua/wslua_proto_field.c +++ b/epan/wslua/wslua_proto_field.c @@ -391,7 +391,7 @@ static true_false_string* true_false_string_from_table(lua_State* L, int idx) { return NULL; } - /* Arrays in LUA start with index number 1 */ + /* Arrays in Lua start with index number 1 */ switch (lua_tointeger(L,-2)) { case 1: g_free(true_string); @@ -450,7 +450,7 @@ static unit_name_string* unit_name_string_from_table(lua_State* L, int idx) { return NULL; } - /* Arrays in LUA start with index number 1 */ + /* Arrays in Lua start with index number 1 */ switch (lua_tointeger(L,-2)) { case 1: g_free((gchar *)units->singular); diff --git a/plugins/epan/transum/decoders.c b/plugins/epan/transum/decoders.c index 4250245be7..c3f8ab65f0 100644 --- a/plugins/epan/transum/decoders.c +++ b/plugins/epan/transum/decoders.c @@ -79,7 +79,7 @@ int decode_dcerpc(packet_info *pinfo _U_, proto_tree *tree, PKT_INFO* pkt_info) if (is_dcerpc_context_zero(pkt_info->dcerpc_pkt_type)) { /* This is needed to overcome an apparent Wireshark bug - found in the LUA code - is this still true in C? */ + found in the Lua code - is this still true in C? */ pkt_info->rrpd.session_id = 1; } else diff --git a/plugins/epan/transum/packet-transum.c b/plugins/epan/transum/packet-transum.c index e4f5973ce3..336dcfbff9 100644 --- a/plugins/epan/transum/packet-transum.c +++ b/plugins/epan/transum/packet-transum.c @@ -818,7 +818,7 @@ static void cleanup_globals(void) /* This function adds the RTE data to the tree. The summary ptr is currently not used but will be used for summariser information once this feature has - been ported from the LUA code. */ + been ported from the Lua code. */ static void write_rte(RRPD *in_rrpd, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, char *summary) { nstime_t rte_art;