mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
scripts: Use tpe instead of type_, again
The .rst generation doesn't escape the trailing `_` and the docs build
gets upset due to using `type` as a reference target then.
For the better or worse, revert to using tpe. Though I acknowledge this
means we need to be careful with trailing underscores because our docs
build is so fragile.
Partly reverts b9eabbabba
.
This commit is contained in:
parent
388cbcee48
commit
df581c59b4
7 changed files with 18 additions and 17 deletions
|
@ -25,12 +25,12 @@ function flow_clear(controller: Controller): bool
|
|||
return F;
|
||||
}
|
||||
|
||||
function register_controller(type_: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
function register_controller(tpe: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
{
|
||||
controller$state$_name = cat(type_, name);
|
||||
controller$state$_plugin = type_;
|
||||
controller$state$_name = cat(tpe, name);
|
||||
controller$state$_plugin = tpe;
|
||||
|
||||
register_controller_impl(type_, name, controller);
|
||||
register_controller_impl(tpe, name, controller);
|
||||
}
|
||||
|
||||
function unregister_controller(controller: Controller)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue