mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Bump auxil/spicy to latest development snapshot
This patch bump Spicy to the latest development snapshot. This introduces a backwards-incompatible change in that it removes support for a never officially supported syntax to specify unit fields (so I would argue: not strictly a breaking change).
This commit is contained in:
parent
cb56837f07
commit
41db05238b
4 changed files with 4 additions and 4 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 6581b1855a5ea8cc102c66b4ac6a431fc67484a0
|
Subproject commit 4a1b43ef07d1305a7e88a4f0866068dc49de9d06
|
|
@ -15,7 +15,7 @@ public type Request = unit {
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
-> : /\/W/ { self.whois = True; }
|
-> : /\/W/ { self.whois = True; }
|
||||||
-> void;
|
-> : void;
|
||||||
};
|
};
|
||||||
|
|
||||||
: OptionalWhiteSpace;
|
: OptionalWhiteSpace;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import spicy;
|
||||||
public type Message = unit {
|
public type Message = unit {
|
||||||
switch {
|
switch {
|
||||||
-> prio: Priority;
|
-> prio: Priority;
|
||||||
-> void;
|
-> : void;
|
||||||
};
|
};
|
||||||
|
|
||||||
msg: bytes &eod;
|
msg: bytes &eod;
|
||||||
|
|
|
@ -1375,7 +1375,7 @@ bool GlueCompiler::CreateSpicyHook(glue::Event* ev) {
|
||||||
|
|
||||||
auto attrs = builder()->attributeSet({builder()->attribute("&priority", builder()->integer(ev->priority))});
|
auto attrs = builder()->attributeSet({builder()->attribute("&priority", builder()->integer(ev->priority))});
|
||||||
auto parameters = hilti::util::transform(ev->parameters, [](const auto& p) { return p.get(); });
|
auto parameters = hilti::util::transform(ev->parameters, [](const auto& p) { return p.get(); });
|
||||||
auto unit_hook = builder()->declarationHook(parameters, body.block(), ::spicy::Engine::All, attrs, meta);
|
auto unit_hook = builder()->declarationHook(parameters, body.block(), attrs, meta);
|
||||||
auto hook_decl = builder()->declarationUnitHook(ev->hook, unit_hook, meta);
|
auto hook_decl = builder()->declarationUnitHook(ev->hook, unit_hook, meta);
|
||||||
ev->spicy_module->spicy_module->add(context(), hook_decl);
|
ev->spicy_module->spicy_module->add(context(), hook_decl);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue