home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcl2-73c.zip / tcl7.3 / doc / CrtInterp.3 < prev    next >
Text File  |  1993-04-01  |  2KB  |  62 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/CrtInterp.3,v 1.7 93/04/01 09:25:24 ouster Exp $ SPRITE (Berkeley)
  22. '\" 
  23. .so man.macros
  24. .HS Tcl_CreateInterp tclc
  25. .BS
  26. .SH NAME
  27. Tcl_CreateInterp, Tcl_DeleteInterp \- create and delete Tcl command interpreters
  28. .SH SYNOPSIS
  29. .nf
  30. \fB#include <tcl.h>\fR
  31. .sp
  32. Tcl_Interp *
  33. \fBTcl_CreateInterp\fR()
  34. .sp
  35. \fBTcl_DeleteInterp\fR(\fIinterp\fR)
  36. .SH ARGUMENTS
  37. .AS Tcl_Interp *interp
  38. .AP Tcl_Interp *interp in
  39. Token for interpreter to be destroyed.
  40. .BE
  41.  
  42. .SH DESCRIPTION
  43. .PP
  44. \fBTcl_CreateInterp\fR creates a new interpreter structure and returns
  45. a token for it.  The token is required in calls to most other Tcl
  46. procedures, such as \fBTcl_CreateCommand\fR, \fBTcl_Eval\fR, and
  47. \fBTcl_DeleteInterp\fR.
  48. Clients are only allowed to access a few of the fields of
  49. Tcl_Interp structures;  see the Tcl_Interp
  50. and \fBTcl_CreateCommand\fR man pages for details.
  51. The new interpreter is initialized with no defined variables and only
  52. the built-in Tcl commands.  To bind in additional commands, call
  53. \fBTcl_CreateCommand\fR.
  54. .PP
  55. \fBTcl_DeleteInterp\fR destroys a command interpreter and releases all of
  56. the resources associated with it, including variables, procedures,
  57. and application-specific command bindings.  After \fBTcl_DeleteInterp\fR
  58. returns the caller should never again use the \fIinterp\fR token.
  59.  
  60. .SH KEYWORDS
  61. command, create, delete, interpreter
  62.