2
extern int matrix_init(Tcl_Interp *); /* Init function from matrix.i */
10
interp = Tcl_CreateInterp();
12
/* Initialize the wrappers */
14
if (matrix_init(interp) == TCL_ERROR)
17
fprintf(stdout,"matrix > ");
18
while(fgets(input, 1024, stdin) != NULL) {
19
code = Tcl_Eval(interp, input);
20
fprintf(stdout,"%s\n",interp->result);
21
fprintf(stdout,"matrix > ");