mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088
This commit is contained in:
commit
61757ac78b
1383 changed files with 380824 additions and 0 deletions
21
src/Traverse.cc
Normal file
21
src/Traverse.cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
// $Id: Traverse.cc 6219 2008-10-01 05:39:07Z vern $
|
||||
//
|
||||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Scope.h"
|
||||
#include "Traverse.h"
|
||||
#include "input.h"
|
||||
|
||||
TraversalCode traverse_all(TraversalCallback* cb)
|
||||
{
|
||||
if ( ! global_scope() )
|
||||
return TC_CONTINUE;
|
||||
|
||||
cb->current_scope = global_scope();
|
||||
|
||||
TraversalCode tc = global_scope()->Traverse(cb);
|
||||
|
||||
HANDLE_TC_STMT_PRE(tc);
|
||||
tc = stmts->Traverse(cb);
|
||||
HANDLE_TC_STMT_POST(tc);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue