Tcl_SetRecursionLimit(3) Tcl Library Procedures Tcl_SetRecursionLimit(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_SetRecursionLimit - set maximum allowable nesting depth in interpreter
SYNOPSIS
#include <tcl.h>
int
Tcl_SetRecursionLimit(interp, depth)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter whose recursion limit is to be set. Must be greater than zero.
int depth (in) New limit for nested calls to Tcl_Eval for interp.
_________________________________________________________________DESCRIPTION
At any given time Tcl enforces a limit on the number of recursive calls that may be active for Tcl_Eval and related procedures such as
Tcl_GlobalEval. Any call to Tcl_Eval that exceeds this depth is aborted with an error. By default the recursion limit is 1000.
Tcl_SetRecursionLimit may be used to change the maximum allowable nesting depth for an interpreter. The depth argument specifies a new
limit for interp, and Tcl_SetRecursionLimit returns the old limit. To read out the old limit without modifying it, invoke Tcl_SetRecur-
sionLimit with depth equal to 0.
The Tcl_SetRecursionLimit only sets the size of the Tcl call stack: it cannot by itself prevent stack overflows on the C stack being used
by the application. If your machine has a limit on the size of the C stack, you may get stack overflows before reaching the limit set by
Tcl_SetRecursionLimit. If this happens, see if there is a mechanism in your system for increasing the maximum size of the C stack.
KEYWORDS
nesting depth, recursion
Tcl 7.0 Tcl_SetRecursionLimit(3)
Check Out this Related Man Page
Tcl_SetRecursionLimit(3) Tcl Library Procedures Tcl_SetRecursionLimit(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_SetRecursionLimit - set maximum allowable nesting depth in interpreter
SYNOPSIS
#include <tcl.h>
int
Tcl_SetRecursionLimit(interp, depth)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter whose recursion limit is to be set. Must be greater than zero.
int depth (in) New limit for nested calls to Tcl_Eval for interp.
_________________________________________________________________DESCRIPTION
At any given time Tcl enforces a limit on the number of recursive calls that may be active for Tcl_Eval and related procedures such as
Tcl_GlobalEval. Any call to Tcl_Eval that exceeds this depth is aborted with an error. By default the recursion limit is 1000.
Tcl_SetRecursionLimit may be used to change the maximum allowable nesting depth for an interpreter. The depth argument specifies a new
limit for interp, and Tcl_SetRecursionLimit returns the old limit. To read out the old limit without modifying it, invoke Tcl_SetRecur-
sionLimit with depth equal to 0.
The Tcl_SetRecursionLimit only sets the size of the Tcl call stack: it cannot by itself prevent stack overflows on the C stack being used
by the application. If your machine has a limit on the size of the C stack, you may get stack overflows before reaching the limit set by
Tcl_SetRecursionLimit. If this happens, see if there is a mechanism in your system for increasing the maximum size of the C stack.
KEYWORDS
nesting depth, recursion
Tcl 7.0 Tcl_SetRecursionLimit(3)
hi,
i'm writing a program that is running always...
but, i have a problem that memory is increasing..
i want to know whether does stack size inscease or not, when program is running..
i don't know what is the cause stack or heap...
i need some help.. :( (1 Reply)
I want to have a permanent file created - and limit the size that this file can grow.. I want a circular file..
ie max size of file is 10 mb.. and if any new data written to file the oldest data removed..
How can I do this?
I am on solaris 9 x86 (3 Replies)
Discussion started by: frustrated1
3 Replies
5. Post Here to Contact Site Administrators and Moderators
1000 characters is not a lot. For example, this message alone is 230 characters. I've spent a lot of time paring mine down to fit this limit. Is it possible for this to be extended? Even 2000 characters would be much better. (3 Replies)
Hi,
If i have given to write a prog for factorial in C using recursion and without
recursion which one is better in what condition and why ?
thanks (2 Replies)
Hi, I am not root, but I need to limit the size of my directory, so that it cannot contain more than 200M of stuff inside. Is this possible?
Also, how can I see the total size of that directory? If I do ls -ltrd, it does not give me the size of all the files inside the directory. And if I do df... (6 Replies)
I want to halt a tail recursive function after certain validation. I want to come out of entire recursion without unwinding phase. How can i achieve that . The coding is done in C language. (5 Replies)
Apart from writing debug and statements in constructors is there any way by which we can trace the function call stack at any depth?
The issue that we always face is that when program crashes (Web Server running on Linux) we have no idea where it crashes and we have to do the hard way of... (1 Reply)
Is there a size limit when passing an argument using wildcards? I.E. when I pass an argument in the form (like) "ftp_auto *.txt" - is there a limitation on the size of UNIX expanding "*.txt" ? (1 Reply)
Hi Can anyone assist me, I am trying to compate the size of a logfile to a maximum size 1000 and delete if exceeds the limit.
The problem I am getting is the command not found for the line
if ( $LOGNAME_SIZE >= $MAXSIZE); then
Appreciate your response.
Script:
LOGDIR="/home/... (6 Replies)
Hey everyone
I'm trying to limit the size a directory can be under Solaris 10. I can find plenty of guides to do it for user home directories, ut what I'm after is an absolute limit, regardless of the user.
For example:
I want /export/example/ to never pass say 5 GB, no matter what user is... (3 Replies)
Hi,
I'm struggling with a problem at the minute. Basically, I have a file with >1000 columns / fields (with headers), each containing a variable number of values. I would like to stack each column such that all the data appears in a single column, e.g. the first value of column 2 is moved to... (5 Replies)