mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
bifcl: Make BIFs just return ValPtr directly instead of BifReturnVal
This commit is contained in:
parent
f2cd4ae3e6
commit
dac04be859
1 changed files with 2 additions and 2 deletions
|
@ -594,11 +594,11 @@ head_1: TOK_ID opt_ws arg_begin
|
||||||
// (e.g. ones at global scope that may be used to implement
|
// (e.g. ones at global scope that may be used to implement
|
||||||
// the BIF itself).
|
// the BIF itself).
|
||||||
fprintf(fp_func_h,
|
fprintf(fp_func_h,
|
||||||
"namespace zeek { %sextern zeek::detail::BifReturnVal %s_bif(zeek::detail::Frame* frame, const zeek::Args*);%s }\n",
|
"namespace zeek { %sextern zeek::ValPtr %s_bif(zeek::detail::Frame* frame, const zeek::Args*);%s }\n",
|
||||||
decl.c_namespace_start.c_str(), decl.bare_name.c_str(), decl.c_namespace_end.c_str());
|
decl.c_namespace_start.c_str(), decl.bare_name.c_str(), decl.c_namespace_end.c_str());
|
||||||
|
|
||||||
fprintf(fp_func_def,
|
fprintf(fp_func_def,
|
||||||
"zeek::detail::BifReturnVal zeek::%s_bif(zeek::detail::Frame* frame, const zeek::Args* %s)",
|
"zeek::ValPtr zeek::%s_bif(zeek::detail::Frame* frame, const zeek::Args* %s)",
|
||||||
decl.c_fullname.c_str(), arg_list_name);
|
decl.c_fullname.c_str(), arg_list_name);
|
||||||
|
|
||||||
record_bif_item(decl.zeek_fullname.c_str(), "FUNCTION");
|
record_bif_item(decl.zeek_fullname.c_str(), "FUNCTION");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue