Move zeekygen code to zeek::zeekygen::detail namespace

This commit is contained in:
Tim Wojtulewicz 2020-08-06 13:14:30 -07:00
parent 80ebb4b67a
commit 5a2ac84eee
23 changed files with 213 additions and 105 deletions

View file

@ -1,6 +1,10 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Manager.h"
#include <utility>
#include <cstdlib>
#include "plugin/Manager.h"
#include "util.h"
#include "Info.h"
@ -9,12 +13,10 @@
#include "IdentifierInfo.h"
#include "Expr.h"
#include <utility>
#include <cstdlib>
using namespace zeekygen;
using namespace std;
namespace zeek::zeekygen::detail {
static void DbgAndWarn(const char* msg)
{
if ( zeek::reporter->Errors() )
@ -457,3 +459,5 @@ string Manager::GetEnumTypeName(const string& id) const
map<string, string>::const_iterator it = enum_mappings.find(id);
return it == enum_mappings.end() ? "" : it->second;
}
} // namespace zeek::zeekygen::detail