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

41
src/TraverseTypes.h Normal file
View file

@ -0,0 +1,41 @@
// $Id: TraverseTypes.h 6219 2008-10-01 05:39:07Z vern $
//
// See the file "COPYING" in the main distribution directory for copyright.
#ifndef statictypes_h
#define statictypes_h
enum TraversalCode {
TC_CONTINUE = 0,
TC_ABORTALL = 1,
TC_ABORTSTMT = 2,
};
#define HANDLE_TC_STMT_PRE(code) \
{ \
if ( (code) == TC_ABORTALL || (code) == TC_ABORTSTMT ) \
return (code); \
}
#define HANDLE_TC_STMT_POST(code) \
{ \
if ( (code) == TC_ABORTALL ) \
return (code); \
else if ( (code) == TC_ABORTSTMT ) \
return TC_CONTINUE; \
else \
return (code); \
}
#define HANDLE_TC_EXPR_PRE(code) \
{ \
if ( (code) != TC_CONTINUE ) \
return (code); \
}
#define HANDLE_TC_EXPR_POST(code) \
return (code);
class TraversalCallback;
#endif