GH-1528: Remove broken Queue/PQueue class, replace with std::deque

This commit is contained in:
Tim Wojtulewicz 2021-04-27 13:25:02 -07:00
parent b44ae62ce4
commit 9dee652444
8 changed files with 22 additions and 21 deletions

View file

@ -6,8 +6,7 @@
#include <stdlib.h>
#include <string>
#include <vector>
#include "zeek/Queue.h"
#include <deque>
// This file is generated during the build.
#include "DebugCmdConstants.h"
@ -45,11 +44,12 @@ protected:
bool repeatable;
};
extern PQueue<DebugCmdInfo> g_DebugCmdInfos;
using DebugCmdInfoQueue = std::deque<DebugCmdInfo*>;
extern DebugCmdInfoQueue g_DebugCmdInfos;
void init_global_dbg_constants ();
#define num_debug_cmds() (g_DebugCmdInfos.length())
#define num_debug_cmds() (g_DebugCmdInfos.size())
// Looks up the info record and returns it; if cmd is not found returns 0.
const DebugCmdInfo* get_debug_cmd_info(DebugCmd cmd);