mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Base: Clean up explicit uses of namespaces in places where they're not necessary.
This commit covers all of the common and base classes.
This commit is contained in:
parent
9f802b2a4d
commit
fe0c22c789
240 changed files with 6823 additions and 6787 deletions
|
@ -26,11 +26,11 @@ inputfile = sys.argv[1]
|
|||
|
||||
init_tmpl = '''
|
||||
\t{
|
||||
\t\tzeek::detail::DebugCmdInfo* info;
|
||||
\t\tDebugCmdInfo* info;
|
||||
\t\t%(name_init)s
|
||||
\t\tinfo = new zeek::detail::DebugCmdInfo(%(cmd)s, names, %(num_names)s, %(resume)s, "%(help)s",
|
||||
\t\tinfo = new DebugCmdInfo(%(cmd)s, names, %(num_names)s, %(resume)s, "%(help)s",
|
||||
\t\t %(repeatable)s);
|
||||
\t\tzeek::detail::g_DebugCmdInfos.push_back(info);
|
||||
\t\tg_DebugCmdInfos.push_back(info);
|
||||
\t}
|
||||
'''
|
||||
|
||||
|
@ -49,7 +49,8 @@ init_str = '''
|
|||
//
|
||||
|
||||
#include "util.h"
|
||||
void zeek::detail::init_global_dbg_constants () {
|
||||
namespace zeek::detail {\n
|
||||
void init_global_dbg_constants () {
|
||||
''' % inputfile
|
||||
|
||||
def outputrecord():
|
||||
|
@ -105,7 +106,7 @@ for line in inputf:
|
|||
# output the last record
|
||||
outputrecord()
|
||||
|
||||
init_str += "\t\n}\n"
|
||||
init_str += "\t\n}\n\n} // namespace zeek::detail\n"
|
||||
enum_str += "\tdcLast\n};\n"
|
||||
|
||||
debugcmds = open("DebugCmdConstants.h", "w")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue