{"id":7449,"date":"2022-12-20T19:38:08","date_gmt":"2022-12-20T22:38:08","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_setrecursionlimit-man3\/"},"modified":"2022-12-20T19:38:08","modified_gmt":"2022-12-20T22:38:08","slug":"tcl_setrecursionlimit-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_setrecursionlimit-man3\/","title":{"rendered":"Tcl_SetRecursionLimit (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_SetRecursionLimit<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_SetRecursionLimit \u2212 set maximum allowable nesting depth in interpreter<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <tcl.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_SetRecursionLimit<\/b>(<i>interp, depth<\/i>)<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p style=\"margin-top: 1em\">Tcl_Interp <i>*interp<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p style=\"margin-top: 1em\">Interpreter whose recursion limit is to be set. Must be greater than zero.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p>int <i>depth<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p>New limit for nested calls to <b>Tcl_Eval<\/b> for <i>interp<\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:62%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">At any given time Tcl enforces a limit on the number of recursive calls that may be active for <b>Tcl_Eval<\/b> and related procedures such as <b>Tcl_GlobalEval<\/b>. Any call to <b>Tcl_Eval<\/b> that exceeds this depth is aborted with an error. By default the recursion limit is 1000.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_SetRecursionLimit<\/b> may be used to change the maximum allowable nesting depth for an interpreter. The <i>depth<\/i> argument specifies a new limit for <i>interp<\/i>, and <b>Tcl_SetRecursionLimit<\/b> returns the old limit. To read out the old limit without modifying it, invoke <b>Tcl_SetRecursionLimit<\/b> with <i>depth<\/i> equal to 0.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>Tcl_SetRecursionLimit<\/b> 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 <b>Tcl_SetRecursionLimit<\/b>. If this happens, see if there is a mechanism in your system for increasing the maximum size of the C stack.<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">nesting depth, recursion<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_SetRecursionLimit \u2212 set maximum allowable nesting depth in interpreter <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,3007,3761],"class_list":["post-7449","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_setrecursionlimit"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7449"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7449\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}