]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/swig_lib/tcl/mactclinit.c
   4  *      Provides a version of the Tcl_AppInit procedure for the example shell. 
   6  * Copyright (c) 1993-1994 Lockheed Missle & Space Company, AI Center 
   7  * Copyright (c) 1995-1997 Sun Microsystems, Inc. 
   9  * See the file "license.terms" for information on usage and redistribution 
  10  * of this file, and for a DISCLAIMER OF ALL WARRANTIES. 
  12  * SCCS: @(#) tclMacAppInit.c 1.17 97/01/21 18:13:34 
  17 #include "tclMacInt.h" 
  21 #elif defined(__MWERKS__) 
  23 short InstallConsole 
_ANSI_ARGS_((short fd
)); 
  29  *---------------------------------------------------------------------- 
  33  *      This procedure calls initalization routines to set up a simple 
  34  *      console on a Macintosh.  This is necessary as the Mac doesn't 
  35  *      have a stdout & stderr by default. 
  38  *      Returns TCL_OK if everything went fine.  If it didn't the  
  39  *      application should probably fail. 
  42  *      Inits the appropiate console package. 
  44  *---------------------------------------------------------------------- 
  55     /* Set options for Think C console package */ 
  56     /* The console package calls the Mac init calls */ 
  57     console_options
.pause_atexit 
= 0; 
  58     console_options
.title 
= "\pTcl Interpreter"; 
  60 #elif defined(__MWERKS__) 
  62     /* Set options for CodeWarrior SIOUX package */ 
  63     SIOUXSettings
.autocloseonquit 
= true; 
  64     SIOUXSettings
.showstatusline 
= true; 
  65     SIOUXSettings
.asktosaveonclose 
= false; 
  67     SIOUXSetTitle("\pTcl Interpreter"); 
  71     /* Init packages used by MPW SIOW package */ 
  72     InitGraf((Ptr
)&qd
.thePort
); 
  82     TclMacSetEventProc((TclMacConvertEventPtr
) SIOUXHandleOneEvent
); 
  84     /* No problems with initialization */