mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Add optional support fort Tix and BLT.
This commit is contained in:
parent
2e58ff3ef5
commit
aec7497f6f
1 changed files with 19 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue