mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Don't output comment for &let/&withinput if no such fields exist
This commit is contained in:
parent
ba7a7c2201
commit
4d0a29a725
1 changed files with 14 additions and 11 deletions
|
@ -703,6 +703,8 @@ void Type::GenParseCode3(Output* out_cc, Env* env, const DataPtr& data, int flag
|
|||
out_cc->println("{");
|
||||
}
|
||||
|
||||
if ( ! fields_->empty() )
|
||||
{
|
||||
out_cc->println("// Evaluate 'let' and 'withinput' fields");
|
||||
foreach (i, FieldList, fields_)
|
||||
{
|
||||
|
@ -718,6 +720,7 @@ void Type::GenParseCode3(Output* out_cc, Env* env, const DataPtr& data, int flag
|
|||
af->GenParseCode(out_cc, env);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( value_var() && anonymous_value_var() )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue