12#include <readline/readline.h>
13#include <readline/history.h>
26int main(
int ,
const char* [])
28 cout <<
"testtclsh starting..." << endl;
30 Tcl_Interp* interp = Tcl_CreateInterp();
32 cout <<
"Tcl_CreateInterp() failed" << endl;
42 while ((line = readline(
"testtclsh> "))) {
43 if (line[0]!=0) add_history(line);
44 int rc = Tcl_Eval(interp, line);
46 cout <<
"command '" << line <<
"' failed" << endl;
48 const char* res = Tcl_GetStringResult(interp);
50 cout << Tcl_GetStringResult(interp) << endl;
54 Tcl_DeleteInterp(interp);
57 cout <<
"testtclsh exit..." << endl;
int Rlinktpp_Init(Tcl_Interp *interp)
int main(int, const char *[])
int Rutiltpp_Init(Tcl_Interp *interp)
int Rwxxtpp_Init(Tcl_Interp *interp)