diff --git a/ase/awk/Awk.cpp b/ase/awk/Awk.cpp index d29c00c4..186420f9 100644 --- a/ase/awk/Awk.cpp +++ b/ase/awk/Awk.cpp @@ -1,5 +1,5 @@ /* - * $Id: Awk.cpp,v 1.35 2007/05/19 16:45:27 bacon Exp $ + * $Id: Awk.cpp,v 1.36 2007/05/22 16:01:25 bacon Exp $ */ #include @@ -364,6 +364,16 @@ namespace ASE { } + void Awk::Run::setMaxBlockDepth (size_t n) + { + ase_awk_setmaxdepth (awk->awk, ASE_AWK_DEPTH_BLOCK_RUN, n); + } + + void Awk::Run::setMaxExpressionDepth (size_t n) + { + ase_awk_setmaxdepth (awk->awk, ASE_AWK_DEPTH_EXPR_RUN, n); + } + int Awk::Run::stop () { ASE_ASSERT (this->run != ASE_NULL); diff --git a/ase/awk/Awk.hpp b/ase/awk/Awk.hpp index 41b79588..bed69c4d 100644 --- a/ase/awk/Awk.hpp +++ b/ase/awk/Awk.hpp @@ -1,5 +1,5 @@ /* - * $Id: Awk.hpp,v 1.33 2007/05/19 16:45:27 bacon Exp $ + * $Id: Awk.hpp,v 1.34 2007/05/22 16:01:25 bacon Exp $ */ #ifndef _ASE_AWK_AWK_HPP_ @@ -369,6 +369,9 @@ namespace ASE size_t getErrorLine () const; const char_t* getErrorMessage () const; + void setMaxBlockDepth (size_t n); + void setMaxExpressionDepth (size_t n); + protected: Awk* awk; run_t* run;