mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
bifcl: Change BIFs to return a wrapper object
That allows implicit conversion from either Val* or IntrusivePtr<T>
This commit is contained in:
parent
df5249e7dd
commit
9a3ac5de98
1 changed files with 2 additions and 2 deletions
|
@ -554,11 +554,11 @@ head_1: TOK_ID opt_ws arg_begin
|
||||||
decl.c_fullname.c_str(), decl.bro_fullname.c_str());
|
decl.c_fullname.c_str(), decl.bro_fullname.c_str());
|
||||||
|
|
||||||
fprintf(fp_func_h,
|
fprintf(fp_func_h,
|
||||||
"%sextern Val* %s(Frame* frame, const zeek::Args*);%s\n",
|
"%sextern BifReturnVal %s(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,
|
||||||
"Val* %s(Frame* frame, const zeek::Args* %s)",
|
"BifReturnVal %s(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.bro_fullname.c_str(), "FUNCTION");
|
record_bif_item(decl.bro_fullname.c_str(), "FUNCTION");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue