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:
Arne Welzel 2025-02-27 17:28:53 +01:00
parent d079a2b9a8
commit ab99f8e233
8 changed files with 157 additions and 8 deletions

View file

@ -0,0 +1,6 @@
module EnumBif;
enum MyEnum %{
MyEnumA,
MyEnumB,
%}