One hopefully final modification to ensure that Tcl_InitStubs()
uses the Tcl version that the program has been compiled to. This should work with both Tcl 8.X and Tcl 9.X.
This commit is contained in:
parent
f7d35f9cca
commit
04163aedcc
|
|
@ -4570,7 +4570,7 @@ int Tclnetgen_Init(Tcl_Interp *interp)
|
|||
/* Remember the interpreter */
|
||||
netgeninterp = interp;
|
||||
|
||||
if (Tcl_InitStubs(interp, "8.5", 0) == NULL) return TCL_ERROR;
|
||||
if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) return TCL_ERROR;
|
||||
|
||||
for (n = 0; netgen_cmds[n].name != NULL; n++) {
|
||||
sprintf(keyword, "netgen::%s", netgen_cmds[n].name);
|
||||
|
|
|
|||
Loading…
Reference in New Issue