Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088

This commit is contained in:
Robin Sommer 2010-09-27 20:42:30 -07:00
commit 61757ac78b
1383 changed files with 380824 additions and 0 deletions

21
src/Traverse.cc Normal file
View 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);
}