mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Move a few smaller files to zeek namespaces
This commit is contained in:
parent
812ac5536d
commit
db36688bf0
32 changed files with 335 additions and 193 deletions
|
@ -10,13 +10,13 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "Debug.h"
|
||||
#include "util.h"
|
||||
#include "PolicyFile.h"
|
||||
#include "Reporter.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
struct PolicyFile {
|
||||
PolicyFile () { filedata = nullptr; lmtime = 0; }
|
||||
~PolicyFile () { delete [] filedata; filedata = nullptr; }
|
||||
|
@ -29,6 +29,8 @@ struct PolicyFile {
|
|||
typedef map<string, PolicyFile*> PolicyFileMap;
|
||||
static PolicyFileMap policy_files;
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
int how_many_lines_in(const char* policy_filename)
|
||||
{
|
||||
if ( ! policy_filename )
|
||||
|
@ -174,3 +176,5 @@ bool PrintLines(const char* policy_filename, unsigned int start_line,
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue