aboutsummaryrefslogtreecommitdiffstats
path: root/epan/protobuf_lang.y
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2020-01-06 00:41:05 -0800
committerGuy Harris <guy@alum.mit.edu>2020-01-06 10:25:18 +0000
commit13703434da30977805ed44f8252c6ea94e119d72 (patch)
tree820d1b5e4ed0ba4f64117d8ac2e72ba524d369a8 /epan/protobuf_lang.y
parentecd60cc7feb95b54ea5e3c0114150f9b9063eccb (diff)
Get rid of %debug, so protobuf_lang.y can be processed by Berkeley YACC.
If somebody wants to debug the parser, they can add it if necessary in their version. Bug: 16306 Change-Id: I00e5924058d9401176e3fab40833932dc5757e6a Reviewed-on: https://code.wireshark.org/review/35665 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/protobuf_lang.y')
-rw-r--r--epan/protobuf_lang.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/protobuf_lang.y b/epan/protobuf_lang.y
index 625c3fa868..ae259e28d6 100644
--- a/epan/protobuf_lang.y
+++ b/epan/protobuf_lang.y
@@ -68,7 +68,6 @@ void protobuf_langerrorv(void* yyscanner, protobuf_lang_state_t *state, const ch
DIAG_OFF_BYACC
%}
-%debug
%expect 23 /* suppress the warning about these conflicts */
%union {
@@ -590,7 +589,7 @@ pbl_reinit_state(protobuf_lang_state_t *state, pbl_descriptor_pool_t* pool, cons
}
}
-int run_pbl_parser(pbl_descriptor_pool_t* pool, gboolean debug)
+int run_pbl_parser(pbl_descriptor_pool_t* pool)
{
protobuf_lang_state_t state = {0};
yyscan_t scanner;
@@ -599,8 +598,6 @@ int run_pbl_parser(pbl_descriptor_pool_t* pool, gboolean debug)
int status;
const char* filepath;
- protobuf_langdebug = debug ? 1 : 0;
-
it = pool->proto_files_to_be_parsed;
while (it) {
filepath = (const char*) it->data;