mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Various deprecation fixes, reported by failed Spicy builds
- Add deprecated version of ID::SetType() that takes Type* - Add deprecated versions of zeek::set_location in the global namespace - Fix global namespace version of lookup_ID to return ID*
This commit is contained in:
parent
964e956cac
commit
9fc48df7fd
6 changed files with 140 additions and 121 deletions
12
src/Obj.h
12
src/Obj.h
|
@ -199,3 +199,15 @@ using BroObj [[deprecated("Remove in v4.1. Use zeek::Obj instead.")]] = zeek::Ob
|
|||
|
||||
[[deprecated("Remove in v4.1. Use zeek::Obj::Print instead.")]]
|
||||
extern void print(const zeek::Obj* obj);
|
||||
|
||||
[[deprecated("Remove in v4.1. Use zeek::detail::set_location instead.")]]
|
||||
inline void set_location(const Location loc)
|
||||
{
|
||||
zeek::detail::set_location(loc);
|
||||
}
|
||||
|
||||
[[deprecated("Remove in v4.1. Use zeek::detail::set_location instead.")]]
|
||||
inline void set_location(const Location start, const Location end)
|
||||
{
|
||||
zeek::detail::set_location(start, end);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue