Posted to tcl by GPS at Sun Oct 14 03:50:32 GMT 2007view raw
- #include <tcl.h>
- #include <stdlib.h>
- int main (int argc, char *argv[]) {
- Tcl_Interp *interp;
- Tcl_FindExecutable (argv[0]);
- while (1) {
- interp = Tcl_CreateInterp ();
- if (TCL_OK != Tcl_Init (interp)) abort();
- Tcl_Eval (interp, "proc foo {} {expr {1 + 2}}; foo");
- Tcl_DeleteInterp (interp);
- }
- return EXIT_FAILURE;
- }