summaryrefslogtreecommitdiffstats
path: root/tools/make-regs.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
commita86c5f7cae7ec9a3398300555a0b644689d946a1 (patch)
tree39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /tools/make-regs.py
parentReleasing progress-linux version 4.2.6-1~progress7.99u1. (diff)
downloadwireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz
wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xtools/make-regs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/make-regs.py b/tools/make-regs.py
index 376b3c65..f17a3f4a 100755
--- a/tools/make-regs.py
+++ b/tools/make-regs.py
@@ -64,11 +64,11 @@ const unsigned long dissector_reg_handoff_count = {1};
output += gen_prototypes(protos)
output += "\n"
- output += gen_array(protos, "dissector_reg_t dissector_reg_proto")
+ output += gen_array(protos, "dissector_reg_t const dissector_reg_proto")
output += "\n"
output += gen_prototypes(handoffs)
output += "\n"
- output += gen_array(handoffs, "dissector_reg_t dissector_reg_handoff")
+ output += gen_array(handoffs, "dissector_reg_t const dissector_reg_handoff")
with open(outfile, "w") as f:
f.write(output)
@@ -96,7 +96,7 @@ const unsigned wtap_module_count = {0};
output += gen_prototypes(wtap_modules)
output += "\n"
- output += gen_array(wtap_modules, "wtap_module_reg_t wtap_module_reg")
+ output += gen_array(wtap_modules, "wtap_module_reg_t const wtap_module_reg")
with open(outfile, "w") as f:
f.write(output)
@@ -124,7 +124,7 @@ const unsigned long tap_reg_listener_count = {0};
output += gen_prototypes(taps)
output += "\n"
- output += gen_array(taps, "tap_reg_t tap_reg_listener")
+ output += gen_array(taps, "tap_reg_t const tap_reg_listener")
with open(outfile, "w") as f:
f.write(output)
@@ -143,7 +143,7 @@ if __name__ == "__main__":
outfile = sys.argv[2]
if sys.argv[3].startswith("@"):
with open(sys.argv[3][1:]) as f:
- infiles = [l.strip() for l in f.readlines()]
+ infiles = [line.strip() for line in f.readlines()]
else:
infiles = sys.argv[3:]