mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58: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,0 +1,11 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
<...>/enum-bif-plugin.zeek
|
||||
<...>/enum-before-load-plugin.zeek
|
||||
<...>/Demo-EnumBif.shared
|
||||
<...>/__preload__.zeek
|
||||
<...>/types.zeek
|
||||
<...>/__load__.zeek
|
||||
<...>/enumbif.bif.zeek
|
||||
<...>/__load__.zeek
|
||||
<...>/enum-after-load-plugin.zeek
|
||||
<...>/enum-after-load-plugin-end.zeek
|
|
@ -0,0 +1,11 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
<...>/enum-bif-plugin.zeek
|
||||
<...>/enum-before-load-plugin.zeek
|
||||
.<...>/Demo-EnumBif.shared
|
||||
<...>/__preload__.zeek
|
||||
<...>/types.zeek
|
||||
<...>/__load__.zeek
|
||||
<...>/enumbif.bif.zeek
|
||||
<...>/__load__.zeek
|
||||
<...>/enum-after-load-plugin.zeek
|
||||
<...>/enum-after-load-plugin-end.zeek
|
|
@ -0,0 +1,6 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
EnumBif::MyEnumA
|
||||
{
|
||||
EnumBif::MyEnumB,
|
||||
EnumBif::MyEnumA
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
EnumBif::MyEnumA
|
||||
{
|
||||
EnumBif::MyEnumB,
|
||||
EnumBif::MyEnumA
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue