aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-03-14 10:17:09 +0100
committerPeter Wu <peter@lekensteyn.nl>2017-03-14 15:03:38 +0000
commitd89bb12d1feb41fb7b2cb6ed93266054f9ee4377 (patch)
treea26ec390002590e5b2737044f4a2cf70ab28fefa /epan/wslua
parent472e5199ac7e6899ba12cd490f651f10d9118fef (diff)
Lua: Layout cleanup in init.lua
Remove double start-of-comments and some leading spaces. Change-Id: I1c5ba49990076cc2d32da2d0a3bb0f54ec31e823 Reviewed-on: https://code.wireshark.org/review/20540 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/wslua')
-rwxr-xr-xepan/wslua/make-init-lua.pl10
-rw-r--r--epan/wslua/template-init.lua30
2 files changed, 20 insertions, 20 deletions
diff --git a/epan/wslua/make-init-lua.pl b/epan/wslua/make-init-lua.pl
index b7abfd7f11..27ea5806e6 100755
--- a/epan/wslua/make-init-lua.pl
+++ b/epan/wslua/make-init-lua.pl
@@ -140,8 +140,8 @@ $wtap_presence_flags_table =~ s/\n$/\n}\n/msi;
# values from enum fttype
#
-$ft_types_table = " -- Field Types\nftypes = {\n";
-$frametypes_table = " -- Field Type FRAMENUM Types\nframetype = {\n";
+$ft_types_table = "-- Field Types\nftypes = {\n";
+$frametypes_table = "-- Field Type FRAMENUM Types\nframetype = {\n";
my $ftype_num = 0;
my $frametypes_num = 0;
@@ -168,9 +168,9 @@ $frametypes_table =~ s/,\n$/\n}\n/msi;
# #defines for encodings and expert group and severity levels
#
-$bases_table = "-- Display Bases\n base = {\n";
-$str_type_table = "-- String Types\n str = {\n";
-$byte_sep_table = "-- Byte Separators\n sep = {\n";
+$bases_table = "-- Display Bases\nbase = {\n";
+$str_type_table = "-- String Types\nstr = {\n";
+$byte_sep_table = "-- Byte Separators\nsep = {\n";
$encodings = "-- Encodings\n";
$expert_pi = "-- Expert flags and facilities (deprecated - see 'expert' table below)\n";
$expert_pi_tbl = "-- Expert flags and facilities\nexpert = {\n";
diff --git a/epan/wslua/template-init.lua b/epan/wslua/template-init.lua
index 5891f055ff..cf87acb32f 100644
--- a/epan/wslua/template-init.lua
+++ b/epan/wslua/template-init.lua
@@ -109,41 +109,41 @@ function package.prepend_path(name)
package.path = name .. sep .. "?.lua;" .. package.path
end
--- %WTAP_ENCAPS%
+%WTAP_ENCAPS%
--- %WTAP_FILETYPES%
+%WTAP_FILETYPES%
--- %WTAP_TSPRECS%
+%WTAP_TSPRECS%
--- %WTAP_COMMENTTYPES%
+%WTAP_COMMENTTYPES%
--- %FT_TYPES%
+%FT_TYPES%
-- the following table is since 2.0
--- %FT_FRAME_TYPES%
+%FT_FRAME_TYPES%
-- the following table is since 1.12
--- %WTAP_REC_TYPES%
+%WTAP_REC_TYPES%
-- the following table is since 1.11.3
--- %WTAP_PRESENCE_FLAGS%
+%WTAP_PRESENCE_FLAGS%
--- %BASES%
+%BASES%
-- the following table is since 2.4
--- %STRING_TYPES%
+%STRING_TYPES%
-- the following table is since 2.4
--- %BYTE_SEPARATORS%
+%BYTE_SEPARATORS%
--- %ENCODINGS%
+%ENCODINGS%
--- %EXPERT%
+%EXPERT%
-- the following table is since 1.11.3
--- %EXPERT_TABLE%
+%EXPERT_TABLE%
--- %MENU_GROUPS%
+%MENU_GROUPS%
-- other useful constants
GUI_ENABLED = gui_enabled()