mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
scan.l: Fix @load-plugin scripts loading
For a plugin loaded via @load-plugin, create a YY_BUFFER_STATE holding the required loads for the implicitly loaded files. In loaded scripts, this generated file will show up with a path of the shared object file of the plugin with the __preload__.zeek and __load__.zeek files loaded by it. Closes #2311
This commit is contained in:
parent
d079a2b9a8
commit
ab99f8e233
8 changed files with 157 additions and 8 deletions
0
testing/btest/plugins/enum-bif-plugin/.btest-ignore
Normal file
0
testing/btest/plugins/enum-bif-plugin/.btest-ignore
Normal file
6
testing/btest/plugins/enum-bif-plugin/src/enumbif.bif
Normal file
6
testing/btest/plugins/enum-bif-plugin/src/enumbif.bif
Normal file
|
@ -0,0 +1,6 @@
|
|||
module EnumBif;
|
||||
|
||||
enum MyEnum %{
|
||||
MyEnumA,
|
||||
MyEnumB,
|
||||
%}
|
Loading…
Add table
Add a link
Reference in a new issue