aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-11-19 00:20:20 +0000
committerAnders Broman <a.broman58@gmail.com>2017-11-20 06:03:08 +0000
commitfe0c2b04853226b64a1aa17fbef6257c856e3fd9 (patch)
treed09f8b8c6fc44b402a17ab09d3d061311cccfb7f /plugins
parent129cb60f56f42e58b9e589d79ac3ee317066d43e (diff)
Rewrite make-dissector-reg.py in C
The output compares equal to make-dissector-reg.py and the regex should be more robust (multiline, complete start of function definition). The primary motivation is to clean up the python script. This small binary results in much cleaner code. The python script is used only to generate plugin code, therefore it is renamed. Also in my casual measurements the C code is much faster (without cache) than the python script with the cache. Change-Id: Id4e8cac3c836d56775aba4819357a95ef19bcb85 Reviewed-on: https://code.wireshark.org/review/24497 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Makefile.am.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Makefile.am.inc b/plugins/Makefile.am.inc
index 0f58a827b7..e3731c1039 100644
--- a/plugins/Makefile.am.inc
+++ b/plugins/Makefile.am.inc
@@ -174,9 +174,9 @@ CPP_FILES = \
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-plugin.c: $(REGISTER_SRC_FILES) $(top_srcdir)/tools/make-dissector-reg.py
+plugin.c: $(REGISTER_SRC_FILES) $(top_srcdir)/tools/make-plugin-reg.py
@echo Making plugin.c
- @$(PYTHON) $(top_srcdir)/tools/make-dissector-reg.py $(srcdir) \
+ @$(PYTHON) $(top_srcdir)/tools/make-plugin-reg.py $(srcdir) \
plugin $(REGISTER_SRC_FILES)
checkapi: