Add optional support fort Tix and BLT.
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
#include <tcl.h>
|
#include <tcl.h>
|
||||||
#include <tk.h>
|
#include <tk.h>
|
||||||
|
|
||||||
|
#ifdef WITH_BLT
|
||||||
|
#include "blt.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
Tcl_AppInit (interp)
|
Tcl_AppInit (interp)
|
||||||
Tcl_Interp *interp;
|
Tcl_Interp *interp;
|
||||||
@@ -42,6 +46,21 @@ Tcl_AppInit (interp)
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#ifdef WITH_XXX
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user