/usr/share/doc/racket/inside/config.html is in racket-doc 6.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>11 Parameterizations</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">▼</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Inside:<span class="mywbr"> </span> Racket C API</a></td></tr></table></div><div class="tocviewsublistonly" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="overview.html" class="tocviewlink" data-pltdoc="x">Overview</a></td></tr><tr><td align="right">2 </td><td><a href="embedding.html" class="tocviewlink" data-pltdoc="x">Embedding into a Program</a></td></tr><tr><td align="right">3 </td><td><a href="Writing_Racket_Extensions.html" class="tocviewlink" data-pltdoc="x">Writing Racket Extensions</a></td></tr><tr><td align="right">4 </td><td><a href="im_values_types.html" class="tocviewlink" data-pltdoc="x">Values and Types</a></td></tr><tr><td align="right">5 </td><td><a href="im_memoryalloc.html" class="tocviewlink" data-pltdoc="x">Memory Allocation</a></td></tr><tr><td align="right">6 </td><td><a href="im_env.html" class="tocviewlink" data-pltdoc="x">Namespaces and Modules</a></td></tr><tr><td align="right">7 </td><td><a href="Procedures.html" class="tocviewlink" data-pltdoc="x">Procedures</a></td></tr><tr><td align="right">8 </td><td><a href="Evaluation.html" class="tocviewlink" data-pltdoc="x">Evaluation</a></td></tr><tr><td align="right">9 </td><td><a href="exceptions.html" class="tocviewlink" data-pltdoc="x">Exceptions and Escape Continuations</a></td></tr><tr><td align="right">10 </td><td><a href="threads.html" class="tocviewlink" data-pltdoc="x">Threads</a></td></tr><tr><td align="right">11 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Parameterizations</a></td></tr><tr><td align="right">12 </td><td><a href="contmarks.html" class="tocviewlink" data-pltdoc="x">Continuation Marks</a></td></tr><tr><td align="right">13 </td><td><a href="im_encodings.html" class="tocviewlink" data-pltdoc="x">String Encodings</a></td></tr><tr><td align="right">14 </td><td><a href="Bignums__Rationals__and_Complex_Numbers.html" class="tocviewlink" data-pltdoc="x">Bignums, Rationals, and Complex Numbers</a></td></tr><tr><td align="right">15 </td><td><a href="Ports_and_the_Filesystem.html" class="tocviewlink" data-pltdoc="x">Ports and the Filesystem</a></td></tr><tr><td align="right">16 </td><td><a href="Structures.html" class="tocviewlink" data-pltdoc="x">Structures</a></td></tr><tr><td align="right">17 </td><td><a href="security.html" class="tocviewlink" data-pltdoc="x">Security Guards</a></td></tr><tr><td align="right">18 </td><td><a href="Custodians.html" class="tocviewlink" data-pltdoc="x">Custodians</a></td></tr><tr><td align="right">19 </td><td><a href="Subprocesses.html" class="tocviewlink" data-pltdoc="x">Subprocesses</a></td></tr><tr><td align="right">20 </td><td><a href="Miscellaneous_Utilities.html" class="tocviewlink" data-pltdoc="x">Miscellaneous Utilities</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="threads.html" title="backward to "10 Threads"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Inside: Racket C API"" data-pltdoc="x">up</a> <a href="contmarks.html" title="forward to "12 Continuation Marks"" data-pltdoc="x">next →</a></span> </div><h3 x-source-module="(lib "scribblings/inside/inside.scrbl")" x-part-tag=""config"">11<tt> </tt><a name="(part._config)"></a>Parameterizations</h3><p>A <span style="font-style: italic">parameterization</span> is a set of parameter values. Each thread
has its own initial parameterization, which is extended functionally
and superseded by parameterizations that are attached to a particular
continuation mark.</p><p>Parameterization information is stored in a <span class="stt">Scheme_Config</span>
record. For the currently executing thread,
<span class="stt">scheme_current_config</span> returns the current parameterization.</p><p>To obtain parameter values, a <span class="stt">Scheme_Config</span> is combined with the
current threads <span class="stt">Scheme_Thread_Cell_Table</span>, as stored in the
thread record’s <span class="stt">cell_values</span> field.</p><p>Parameter values for built-in parameters are obtained and modified
(for the current thread) using <a href="#%28cpp._scheme_get_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_get_param</span></a> and
<a href="#%28cpp._scheme_set_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_set_param</span></a>. Each parameter is stored as a
<span class="stt">Scheme_Object *</span> value, and the built-in parameters are accessed
through the following indices:</p><ul><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.E.N.V)"></a><a name="(idx._(gentag._383._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.E.N.V%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_ENV</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Namespaces.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-namespace%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-namespace</a></span> (use <a href="im_env.html#%28cpp._scheme_get_env%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_get_env</span></a>)</p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.I.N.P.U.T_.P.O.R.T)"></a><a name="(idx._(gentag._384._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.I.N.P.U.T_.P.O.R.T%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_INPUT_PORT</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=port-ops.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-input-port%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-input-port</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.O.U.T.P.U.T_.P.O.R.T)"></a><a name="(idx._(gentag._385._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.O.U.T.P.U.T_.P.O.R.T%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_OUTPUT_PORT</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=port-ops.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-output-port%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-output-port</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.P.O.R.T)"></a><a name="(idx._(gentag._386._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.P.O.R.T%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_ERROR_PORT</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=port-ops.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-error-port%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-error-port</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.D.I.S.P.L.A.Y_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._387._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.D.I.S.P.L.A.Y_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_ERROR_DISPLAY_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=exns.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._error-display-handler%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">error-display-handler</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.P.R.I.N.T_.V.A.L.U.E_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._388._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.P.R.I.N.T_.V.A.L.U.E_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_ERROR_PRINT_VALUE_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=exns.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._error-value-%7E3estring-handler%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">error-value->string-handler</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.E.X.I.T_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._389._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.E.X.I.T_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_EXIT_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Exiting.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exit-handler%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">exit-handler</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.I.N.I.T_.E.X.N_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._390._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.I.N.I.T_.E.X.N_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_INIT_EXN_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=exns.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._uncaught-exception-handler%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">uncaught-exception-handler</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.E.V.A.L_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._391._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.E.V.A.L_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_EVAL_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=eval.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-eval%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-eval</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.L.O.A.D_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._392._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.L.O.A.D_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_LOAD_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=eval.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-load%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-load</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._393._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_PRINT_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=eval.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-print%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-print</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.P.R.O.M.P.T_.R.E.A.D_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._394._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.P.R.O.M.P.T_.R.E.A.D_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_PROMPT_READ_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=eval.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-prompt-read%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-prompt-read</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.G.R.A.P.H)"></a><a name="(idx._(gentag._395._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.G.R.A.P.H%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_CAN_READ_GRAPH</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Reading.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._read-accept-graph%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">read-accept-graph</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.C.O.M.P.I.L.E.D)"></a><a name="(idx._(gentag._396._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.C.O.M.P.I.L.E.D%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_CAN_READ_COMPILED</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Reading.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._read-accept-compiled%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">read-accept-compiled</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.B.O.X)"></a><a name="(idx._(gentag._397._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.B.O.X%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_CAN_READ_BOX</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Reading.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._read-accept-box%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">read-accept-box</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.P.I.P.E_.Q.U.O.T.E)"></a><a name="(idx._(gentag._398._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.A.N_.R.E.A.D_.P.I.P.E_.Q.U.O.T.E%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_CAN_READ_PIPE_QUOTE</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Reading.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._read-accept-bar-quote%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">read-accept-bar-quote</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.G.R.A.P.H)"></a><a name="(idx._(gentag._399._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.G.R.A.P.H%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_PRINT_GRAPH</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print-graph%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">print-graph</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.S.T.R.U.C.T)"></a><a name="(idx._(gentag._400._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.S.T.R.U.C.T%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_PRINT_STRUCT</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print-struct%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">print-struct</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.B.O.X)"></a><a name="(idx._(gentag._401._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.P.R.I.N.T_.B.O.X%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_PRINT_BOX</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print-box%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">print-box</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.A.S.E_.S.E.N.S)"></a><a name="(idx._(gentag._402._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.A.S.E_.S.E.N.S%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_CASE_SENS</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Reading.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._read-case-sensitive%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">read-case-sensitive</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.S.Q.U.A.R.E_.B.R.A.C.K.E.T.S_.A.R.E_.P.A.R.E.N.S)"></a><a name="(idx._(gentag._403._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.S.Q.U.A.R.E_.B.R.A.C.K.E.T.S_.A.R.E_.P.A.R.E.N.S%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_SQUARE_BRACKETS_ARE_PARENS</span></a> —<wbr></wbr> <span class="RktSym">read-square-brackets-as-parens</span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.U.R.L.Y_.B.R.A.C.E.S_.A.R.E_.P.A.R.E.N.S)"></a><a name="(idx._(gentag._404._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.U.R.L.Y_.B.R.A.C.E.S_.A.R.E_.P.A.R.E.N.S%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_CURLY_BRACES_ARE_PARENS</span></a> —<wbr></wbr> <span class="RktSym">read-curly-braces-as-parens</span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.P.R.I.N.T_.W.I.D.T.H)"></a><a name="(idx._(gentag._405._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.E.R.R.O.R_.P.R.I.N.T_.W.I.D.T.H%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_ERROR_PRINT_WIDTH</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=exns.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._error-print-width%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">error-print-width</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.A.L.L.O.W_.S.E.T_.U.N.D.E.F.I.N.E.D)"></a><a name="(idx._(gentag._406._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.A.L.L.O.W_.S.E.T_.U.N.D.E.F.I.N.E.D%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_ALLOW_SET_UNDEFINED</span></a> —<wbr></wbr> <span class="RktSym">allow-compile-set!-undefined</span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.U.S.T.O.D.I.A.N)"></a><a name="(idx._(gentag._407._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.U.S.T.O.D.I.A.N%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_CUSTODIAN</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=custodians.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-custodian%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-custodian</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.U.S.E_.C.O.M.P.I.L.E.D_.K.I.N.D)"></a><a name="(idx._(gentag._408._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.U.S.E_.C.O.M.P.I.L.E.D_.K.I.N.D%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_USE_COMPILED_KIND</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=eval.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._use-compiled-file-paths%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">use-compiled-file-paths</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.L.O.A.D_.D.I.R.E.C.T.O.R.Y)"></a><a name="(idx._(gentag._409._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.L.O.A.D_.D.I.R.E.C.T.O.R.Y%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_LOAD_DIRECTORY</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=eval.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-load-relative-directory%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-load-relative-directory</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.C.O.L.L.E.C.T.I.O.N_.P.A.T.H.S)"></a><a name="(idx._(gentag._410._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.C.O.L.L.E.C.T.I.O.N_.P.A.T.H.S%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_COLLECTION_PATHS</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=collects.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-library-collection-paths%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-library-collection-paths</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.P.O.R.T_.P.R.I.N.T_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._411._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.P.O.R.T_.P.R.I.N.T_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_PORT_PRINT_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._global-port-print-handler%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">global-port-print-handler</a></span></p></li><li><p><a name="(cpp._.M.Z.C.O.N.F.I.G_.L.O.A.D_.E.X.T.E.N.S.I.O.N_.H.A.N.D.L.E.R)"></a><a name="(idx._(gentag._412._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._.M.Z.C.O.N.F.I.G_.L.O.A.D_.E.X.T.E.N.S.I.O.N_.H.A.N.D.L.E.R%29" class="RktStxLink" data-pltdoc="x"><span class="stt">MZCONFIG_LOAD_EXTENSION_HANDLER</span></a> —<wbr></wbr> <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=eval.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._current-load-extension%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">current-load-extension</a></span></p></li></ul><p>To get or set a parameter value for a thread other than the current
one, use <a href="#%28cpp._scheme_get_thread_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_get_thread_param</span></a> and
<a href="#%28cpp._scheme_set_thread_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_set_thread_param</span></a>, each of which takes a
<span class="stt">Scheme_Thread_Cell_Table</span> to use in resolving or setting a
parameter value.</p><p>When installing a new parameter with <a href="#%28cpp._scheme_set_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_set_param</span></a>, no check
is performed on the supplied value to ensure that it is a legal value
for the parameter; this is the responsibility of the caller of
<a href="#%28cpp._scheme_set_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_set_param</span></a>. Note that Boolean parameters should only be
set to the values <span class="RktVal">#t</span> and <span class="RktVal">#f</span>.</p><p>New primitive parameter indices are created with
<a href="#%28cpp._scheme_new_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_new_param</span></a> and implemented with
<span class="stt">scheme_make_parameter</span> and <a href="#%28cpp._scheme_param_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_param_config</span></a>.</p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_get_param)"></a><a name="(idx._(gentag._413._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_get_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_get_param</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Config*</span><span class="hspace"> </span><span style="font-style: italic">config</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">param_id</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Gets the current value (for the current thread) of the parameter
specified by <span style="font-style: italic">param_id</span>.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_set_param)"></a><a name="(idx._(gentag._414._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_set_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_set_param</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Config*</span><span class="hspace"> </span><span style="font-style: italic">config</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">param_id</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace"> </span><span style="font-style: italic">v</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Sets the current value (for the current thread) of the parameter
specified by <span style="font-style: italic">param_id</span>.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td colspan="3"><p><span class="stt">Scheme_Object*</span></p></td></tr><tr><td><p><a name="(cpp._scheme_get_thread_param)"></a><a name="(idx._(gentag._415._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_get_thread_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_get_thread_param</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Config*</span><span class="hspace"> </span><span style="font-style: italic">config</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Thread_Cell_Table*</span><span class="hspace"> </span><span style="font-style: italic">cells</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">param_id</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Like <a href="#%28cpp._scheme_get_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_get_param</span></a>, but using an arbitrary thread’s
cell-value table.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td colspan="3"><p><span class="stt">Scheme_Object*</span></p></td></tr><tr><td><p><a name="(cpp._scheme_set_thread_param)"></a><a name="(idx._(gentag._416._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_set_thread_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_set_thread_param</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Config*</span><span class="hspace"> </span><span style="font-style: italic">config</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Thread_Cell_Table*</span><span class="hspace"> </span><span style="font-style: italic">cells</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">param_id</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace"> </span><span style="font-style: italic">v</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Like <a href="#%28cpp._scheme_set_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_set_param</span></a>, but using an arbitrary thread’s
cell-value table.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_extend_config)"></a><a name="(idx._(gentag._417._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_extend_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_extend_config</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Config*</span><span class="hspace"> </span><span style="font-style: italic">base</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">param_id</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace"> </span><span style="font-style: italic">v</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Creates and returns a parameterization that extends <span style="font-style: italic">base</span> with a
new value <span style="font-style: italic">v</span> (in all threads) for the parameter
<span style="font-style: italic">param_id</span>. Use <a href="#%28cpp._scheme_install_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_install_config</span></a> to make this
configuration active in the current thread.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">void</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_install_config)"></a><a name="(idx._(gentag._418._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_install_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_install_config</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Config*</span><span class="hspace"> </span><span style="font-style: italic">config</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Adjusts the current thread’s continuation marks to make <span style="font-style: italic">config</span>
the current parameterization. Typically, this function is called
after <a href="contmarks.html#%28cpp._scheme_push_continuation_frame%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_push_continuation_frame</span></a> to establish a new
continuation frame, and then <a href="contmarks.html#%28cpp._scheme_pop_continuation_frame%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_pop_continuation_frame</span></a>
is called later to remove the frame (and thus the parameterization).</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td colspan="3"><p><span class="stt">Scheme_Thread_Cell_Table*</span></p></td></tr><tr><td><p><a name="(cpp._scheme_inherit_cells)"></a><a name="(idx._(gentag._419._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_inherit_cells%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_inherit_cells</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Thread_Cell_Table*</span><span class="hspace"> </span><span style="font-style: italic">cells</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Creates a new thread-cell-value table, copying values for preserved
thread cells from <span style="font-style: italic">cells</span>.</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">int</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_new_param)"></a><a name="(idx._(gentag._420._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_new_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_new_param</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Allocates a new primitive parameter index. This function must be
called <span style="font-style: italic">before</span> <a href="Evaluation.html#%28cpp._scheme_basic_env%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_basic_env</span></a>, so it is only
available to embedding applications (i.e., not extensions).</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_register_parameter)"></a><a name="(idx._(gentag._421._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_register_parameter%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_register_parameter</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">Scheme_Prim*</span><span class="hspace"> </span><span style="font-style: italic">function</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">char*</span><span class="hspace"> </span><span style="font-style: italic">name</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">exnid</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Use this function instead of the other primitive-constructing
functions, like <a href="Procedures.html#%28cpp._scheme_make_prim%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_make_prim</span></a>, to create a primitive
parameter procedure. See also <a href="#%28cpp._scheme_param_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_param_config</span></a>, below.
This function is only available to embedding applications (i.e., not
extensions).</div></p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_param_config)"></a><a name="(idx._(gentag._422._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_param_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_param_config</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">char*</span><span class="hspace"> </span><span style="font-style: italic">name</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace"> </span><span style="font-style: italic">param</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">argc</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Object**</span><span class="hspace"> </span><span style="font-style: italic">argv</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">arity</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Prim*</span><span class="hspace"> </span><span style="font-style: italic">check</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">char*</span><span class="hspace"> </span><span style="font-style: italic">expected</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">isbool</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">Call this procedure in a primitive parameter procedure to implement
the work of getting or setting the parameter. The <span style="font-style: italic">name</span> argument
should be the parameter procedure name; it is used to report
errors. The <span style="font-style: italic">param</span> argument is a fixnum corresponding to the
primitive parameter index returned by <a href="#%28cpp._scheme_new_param%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_new_param</span></a>. The
<span style="font-style: italic">argc</span> and <span style="font-style: italic">argv</span> arguments should be the un-touched and
un-tested arguments that were passed to the primitive parameter.
Argument-checking is performed within <a href="#%28cpp._scheme_param_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_param_config</span></a>
using <span style="font-style: italic">arity</span>, <span style="font-style: italic">check</span>, <span style="font-style: italic">expected</span>, and <span style="font-style: italic">isbool</span>:</div></p><ul><li><p>If <span style="font-style: italic">arity</span> is non-negative, potential parameter values must
be able to accept the specified number of arguments. The <span style="font-style: italic">check</span>
and <span style="font-style: italic">expected</span> arguments should be <span class="stt">NULL</span>.</p></li><li><p>If <span style="font-style: italic">check</span> is not <span class="stt">NULL</span>, it is called to check a
potential parameter value. The arguments passed to <span style="font-style: italic">check</span> are
always <span class="stt">1</span> and an array that contains the potential parameter
value. If <span style="font-style: italic">isbool</span> is <span class="stt">0</span> and <span style="font-style: italic">check</span> returns
<a href="im_values_types.html#%28cpp._scheme_false%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_false</span></a>, then a type error is reported using <span style="font-style: italic">name</span>
and <span style="font-style: italic">expected</span> as a type description. If <span style="font-style: italic">isbool</span> is <span class="stt">1</span>, then a type error is
reported only when <span style="font-style: italic">check</span> returns <span class="stt">NULL</span> and any
non-<span class="stt">NULL</span> return value is used as the actual value to be stored
for the parameter.</p></li><li><p>Otherwise, <span style="font-style: italic">isbool</span> should be 1. A potential procedure
argument is then treated as a Boolean value.</p></li></ul><p>This function is only available to embedding applications (i.e., not
extensions).</p><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed"><tr><td><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt">Scheme_Object*</span></p></td><td><p><span class="hspace"> </span></p></td><td><p><a name="(cpp._scheme_param_config2)"></a><a name="(idx._(gentag._423._(lib._scribblings/inside/inside..scrbl)))"></a><a href="#%28cpp._scheme_param_config2%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_param_config2</span></a></p></td><td><p><span class="stt">(</span></p></td><td><p><span class="stt">char*</span><span class="hspace"> </span><span style="font-style: italic">name</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Object*</span><span class="hspace"> </span><span style="font-style: italic">param</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">argc</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Object**</span><span class="hspace"> </span><span style="font-style: italic">argv</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">arity</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">Scheme_Prim*</span><span class="hspace"> </span><span style="font-style: italic">check</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">char*</span><span class="hspace"> </span><span style="font-style: italic">expected_contract</span><span class="stt">,</span></p></td></tr><tr><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="hspace"> </span></p></td><td><p><span class="stt">int</span><span class="hspace"> </span><span style="font-style: italic">isbool</span><span class="stt">)</span></p></td></tr></table></td></tr></table></div><div class="SIntrapara">The same as <a href="#%28cpp._scheme_param_config%29" class="RktStxLink" data-pltdoc="x"><span class="stt">scheme_param_config</span></a>, but with
<span style="font-style: italic">expected_contract</span> as a contract instead of type description.</div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="threads.html" title="backward to "10 Threads"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Inside: Racket C API"" data-pltdoc="x">up</a> <a href="contmarks.html" title="forward to "12 Continuation Marks"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html>
|