Add optional support fort Tix and BLT.
This commit is contained in:
parent
2e58ff3ef5
commit
aec7497f6f
|
@ -3,6 +3,10 @@
|
|||
#include <tcl.h>
|
||||
#include <tk.h>
|
||||
|
||||
#ifdef WITH_BLT
|
||||
#include "blt.h"
|
||||
#endif
|
||||
|
||||
int
|
||||
Tcl_AppInit (interp)
|
||||
Tcl_Interp *interp;
|
||||
|
@ -42,6 +46,21 @@ Tcl_AppInit (interp)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_TIX
|
||||
if (Tix_Init (interp) == TCL_ERROR) {
|
||||
fprintf(stderr, "Tix_Init error: #s\n", interp->result);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_BLT
|
||||
if (Blt_Init(interp) != TCL_OK) {
|
||||
fprintf(stderr, "BLT_Init error: #s\n", interp->result);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
Tcl_StaticPackage(interp, "Blt", Blt_Init, Blt_SafeInit);
|
||||
#endif
|
||||
|
||||
#ifdef WITH_XXX
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue