| 1 | |
| 2 | /* $Id: tixItcl.h,v 1.1.1.1 2000/05/17 11:08:42 idiscovery Exp $ */ |
| 3 | |
| 4 | /* |
| 5 | * tixItcl.h -- |
| 6 | * |
| 7 | * Compatibility functions and macros that allow Tix to work |
| 8 | * under Incr Tcl. |
| 9 | * |
| 10 | * Copyright (c) 1996, Expert Interface Technologies |
| 11 | * |
| 12 | * See the file "license.terms" for information on usage and |
| 13 | * redistribution of this file, and for a DISCLAIMER OF ALL |
| 14 | * WARRANTIES. |
| 15 | * |
| 16 | */ |
| 17 | |
| 18 | /* |
| 19 | * With Tcl 8.0, namespaces moved from Itcl to Tcl, and so |
| 20 | * the Tix hacks have to be used in any verison of 8.0, |
| 21 | * regardless of the presence of Itcl... |
| 22 | */ |
| 23 | |
| 24 | #include "tix.h" |
| 25 | |
| 26 | #ifndef _LANG |
| 27 | #include "Lang.h" |
| 28 | #endif |
| 29 | |
| 30 | /* |
| 31 | * Structure to store Tcl 8.0 name space information. |
| 32 | */ |
| 33 | |
| 34 | typedef struct _TixItclNameSp { |
| 35 | Tcl_Interp *iPtr; |
| 36 | CallFrame *savedVarFramePtr; |
| 37 | } TixItclNameSp; |
| 38 | |
| 39 | #define DECLARE_ITCL_NAMESP(x,i) \ |
| 40 | TixItclNameSp x; \ |
| 41 | x.iPtr = (Interp*)(i); |
| 42 | |
| 43 | extern int TixItclSetGlobalNameSp _ANSI_ARGS_(( |
| 44 | TixItclNameSp * nameSpPtr, Tcl_Interp * interp)); |
| 45 | extern void TixItclRestoreGlobalNameSp _ANSI_ARGS_(( |
| 46 | TixItclNameSp * nameSpPtr, Tcl_Interp * interp)); |