Debian Codegraph @

html/Blt_TreeReleaseToken.html

raw symbols SCIP
1
2 <!-- manual page source format generated by PolyglotMan v3.0.9, -->
3 <!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->
4
5 <HTML>
6 <HEAD>
7 <TITLE>Blt_TreeReleaseToken(3) manual page</TITLE>
8 </HEAD>
9 <BODY bgcolor=white>
10 <A HREF="#toc">Table of Contents</A><P>
11
12 <H2><A NAME="sect0" HREF="#toc0">Name</A></H2>
13 Blt_TreeReleaseToken - Releases token
14 associated with tree object.
15 <H2><A NAME="sect1" HREF="#toc1">Synopsis</A></H2>
16 <BR>
17 <PRE>#include &lt;bltTree.h&gt;
18
19 int
20 Blt_TreeReleaseToken(token)
21 </PRE>
22 <H2><A NAME="sect2" HREF="#toc2">Arguments</A></H2>
23 <P>
24 Blt_Tree <I>*token</I><tt> </tt>&nbsp;<tt> </tt>&nbsp;(in)<BR>
25 <tt> </tt>&nbsp;<tt> </tt>&nbsp;Token of tree to be released.
26 <H2><A NAME="sect3" HREF="#toc3">Description</A></H2>
27 <P>
28 This procedure releases the token
29 associated with a C-based tree data object. When all outstanding tokens
30 for a tree data object have been released, then the data object itself
31 will be freed. The arguments are as follows:
32 <DL>
33
34 <DT>token </DT>
35 <DD>Token of the tree data
36 object to be released. This token was initialized either by <B>Tcl_TreeGetToken<I>
37 or <I>Blt_TreeCreate</I></I></B> earlier. </DD>
38 </DL>
39
40 <H2><A NAME="sect4" HREF="#toc4">Returns</A></H2>
41 Nothing.
42 <H2><A NAME="sect5" HREF="#toc5">Example</A></H2>
43 The following example
44 creates and then releases a new token. <BR>
45 <CODE>Blt_Tree token;<BR>
46 <P>
47 if (Blt_TreeCreate(interp, "myTree", &amp;token) != TCL_OK) {<BR>
48 return TCL_ERROR;<BR>
49 }<BR>
50 printf("tree is %s\n", Blt_TreeName(token));<BR>
51 <P>
52 /* Tree will be destroyed when the token is released. */<BR>
53 Blt_TreeReleaseToken(token);<BR>
54
55 <H2><A NAME="sect6" HREF="#toc6"></CODE>Keywords</A></H2>
56 tree, token <P>
57
58 <HR><P>
59 <A NAME="toc"><B>Table of Contents</B></A><P>
60 <UL>
61 <LI><A NAME="toc0" HREF="#sect0">Name</A></LI>
62 <LI><A NAME="toc1" HREF="#sect1">Synopsis</A></LI>
63 <LI><A NAME="toc2" HREF="#sect2">Arguments</A></LI>
64 <LI><A NAME="toc3" HREF="#sect3">Description</A></LI>
65 <LI><A NAME="toc4" HREF="#sect4">Returns</A></LI>
66 <LI><A NAME="toc5" HREF="#sect5">Example</A></LI>
67 <LI><A NAME="toc6" HREF="#sect6">Keywords</A></LI>
68 </UL>
69 </BODY></HTML>