| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
#include "tixPort.h" |
| 12 |
#include "tixInt.h" |
| 13 |
|
| 14 |
#include "tixSamLib.c" |
| 15 |
|
| 16 |
int SamTix_Init _ANSI_ARGS_((Tcl_Interp *interp)); |
| 17 |
|
| 18 |
int |
| 19 |
Tixsam_Init(interp) |
| 20 |
Tcl_Interp *interp; |
| 21 |
{ |
| 22 |
Tcl_Interp * Et_Interp = interp; |
| 23 |
|
| 24 |
if (TixInitSam(interp) != TCL_OK ){ |
| 25 |
return TCL_ERROR; |
| 26 |
} |
| 27 |
if (LoadScripts(interp) != TCL_OK ){ |
| 28 |
return TCL_ERROR; |
| 29 |
} |
| 30 |
if (Tcl_GlobalEval(interp, "__tixInit") != TCL_OK) { |
| 31 |
return TCL_ERROR; |
| 32 |
} |
| 33 |
|
| 34 |
return TCL_OK; |
| 35 |
} |
| 36 |
|
| 37 |
int |
| 38 |
Tixsam_SafeInit(interp) |
| 39 |
Tcl_Interp *interp; |
| 40 |
{ |
| 41 |
return Tixsam_Init(interp); |
| 42 |
} |