home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / TCL / ITCL / _ITCL.TAR / usr / include / tcl / itcl.h
Encoding:
C/C++ Source or Header  |  1994-09-14  |  3.0 KB  |  74 lines

  1. /*
  2.  * ------------------------------------------------------------------------
  3.  *  APPLICATION:  [incr Tcl]
  4.  *      PURPOSE:  object-oriented extensions to Tcl
  5.  *
  6.  *  [incr tcl] provides object-oriented extensions to TCL, much as
  7.  *  C++ provides object-oriented extensions to C.  It provides a means
  8.  *  of encapsulating related procedures together with their shared data
  9.  *  in a local namespace that is hidden from the outside world.  It
  10.  *  promotes code re-use through inheritance.  More than anything else,
  11.  *  it encourages better organization of Tcl applications through the
  12.  *  object-oriented paradigm, leading to code that is easier to
  13.  *  understand and maintain.
  14.  *  
  15.  *  ADDING [incr Tcl] TO A TCL-BASED APPLICATION:
  16.  *
  17.  *    To add [incr Tcl] facilities to a Tcl application, modify the
  18.  *    Tcl_AppInit() routine as follows:
  19.  *
  20.  *    1) Include this header file near the top of the file containing
  21.  *       Tcl_AppInit():
  22.  *
  23.  *         #include "itcl.h"
  24.  *
  25.  *    2) Within the body of Tcl_AppInit(), add the following lines:
  26.  *
  27.  *         if (Itcl_Init(interp) == TCL_ERROR) {
  28.  *             return TCL_ERROR;
  29.  *         }
  30.  * 
  31.  *    3) Link your application with libitcl.a
  32.  *
  33.  *    NOTE:  Example files "tclAppInit.c" and "tkAppInit.c" containing
  34.  *           the changes shown above above are included in this
  35.  *           distribution.
  36.  *  
  37.  * ------------------------------------------------------------------------
  38.  *  AUTHOR:  Michael J. McLennan       Phone: (610)712-2842
  39.  *           AT&T Bell Laboratories   E-mail: michael.mclennan@att.com
  40.  *
  41.  *     RCS:  itcl.h,v 1.1.1.1 1994/03/21 22:09:49 mmc Exp
  42.  * ========================================================================
  43.  *                 Copyright (c) 1993  AT&T Bell Laboratories
  44.  * ========================================================================
  45.  * Permission to use, copy, modify, and distribute this software and its
  46.  * documentation for any purpose and without fee is hereby granted,
  47.  * provided that the above copyright notice appear in all copies and that
  48.  * both that the copyright notice and warranty disclaimer appear in
  49.  * supporting documentation, and that the names of AT&T Bell Laboratories
  50.  * any of their entities not be used in advertising or publicity
  51.  * pertaining to distribution of the software without specific, written
  52.  * prior permission.
  53.  * 
  54.  * AT&T disclaims all warranties with regard to this software, including
  55.  * all implied warranties of merchantability and fitness.  In no event
  56.  * shall AT&T be liable for any special, indirect or consequential
  57.  * damages or any damages whatsoever resulting from loss of use, data or
  58.  * profits, whether in an action of contract, negligence or other
  59.  * tortuous action, arising out of or in connection with the use or
  60.  * performance of this software.
  61.  * ========================================================================
  62.  */
  63. #ifndef ITCL_H
  64. #define ITCL_H
  65.  
  66. #include "tcl.h"
  67.  
  68. /*
  69.  *  FORWARD DECLARATIONS
  70.  */
  71. EXTERN int Itcl_Init _ANSI_ARGS_((Tcl_Interp* interp));
  72.  
  73. #endif
  74.