home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcl2-73c.zip / tcl7.3 / doc / SetRecLmt.3 < prev    next >
Text File  |  1993-07-07  |  2KB  |  61 lines

  1. '\"
  2. '\" Copyright (c) 1989-1993 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/tcl/man/RCS/SetRecLmt.3,v 1.1 93/07/07 16:35:18 ouster Exp $ SPRITE (Berkeley)
  22. '\" 
  23. .so man.macros
  24. .HS Tcl_SetRecursionLimit tclc 7.0
  25. .BS
  26. .SH NAME
  27. Tcl_SetRecursionLimit \- set maximum allowable nesting depth in interpreter
  28. .SH SYNOPSIS
  29. .nf
  30. \fB#include <tcl.h>\fR
  31. .sp
  32. int
  33. \fBTcl_SetRecursionLimit\fR(\fIinterp, depth\fR)
  34. .SH ARGUMENTS
  35. .AS Tcl_Interp *interp
  36. .AP Tcl_Interp *interp in
  37. Interpreter whose recursion limit is to be set.
  38. Must be greater than zero.
  39. .AP int depth in
  40. New limit for nested calls to \fBTcl_Eval\fR for \fIinterp\fR.
  41. .BE
  42.  
  43. .SH DESCRIPTION
  44. .PP
  45. At any given time Tcl enforces a limit on the number of recursive
  46. calls that may be active for \fBTcl_Eval\fR and related procedures
  47. such as \fBTcl_GlobalEval\fR.
  48. Any call to \fBTcl_Eval\fR that exceeds this depth is aborted with
  49. an error.
  50. By default the recursion limit is 1000.
  51. .PP
  52. \fBTcl_SetRecursionLimit\fR may be used to change the maximum
  53. allowable nesting depth for an interpreter.
  54. The \fIdepth\fR argument specifies a new limit for \fIinterp\fR,
  55. and \fBTcl_SetRecursionLimit\fR returns the old limit.
  56. To read out the old limit without modifying it, invoke
  57. \fBTcl_SetRecursionDepth\fR with \fIdepth\fR equal to 0.
  58.  
  59. .SH KEYWORDS
  60. nesting depth, recursion
  61.