mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
GH-1528: Remove broken Queue/PQueue class, replace with std::deque
This commit is contained in:
parent
b44ae62ce4
commit
9dee652444
8 changed files with 22 additions and 21 deletions
|
@ -26,11 +26,10 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
zeek::PQueue<zeek::detail::DebugCmdInfo> zeek::detail::g_DebugCmdInfos;
|
||||
zeek::PQueue<zeek::detail::DebugCmdInfo>& g_DebugCmdInfos = zeek::detail::g_DebugCmdInfos;
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
DebugCmdInfoQueue g_DebugCmdInfos;
|
||||
|
||||
//
|
||||
// Helper routines
|
||||
//
|
||||
|
@ -154,7 +153,7 @@ DebugCmdInfo::DebugCmdInfo(DebugCmd arg_cmd, const char* const* arg_names,
|
|||
|
||||
const DebugCmdInfo* get_debug_cmd_info(DebugCmd cmd)
|
||||
{
|
||||
if ( (int) cmd < g_DebugCmdInfos.length() )
|
||||
if ( (int) cmd < g_DebugCmdInfos.size() )
|
||||
return g_DebugCmdInfos[(int) cmd];
|
||||
else
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue