| 546 | |
| 547 | |
| 548 | int EditorCmdAutoSpeed(VIEW_ARGS) |
| 549 | { |
| 550 | int speed; |
| 551 | |
| 552 | if ((argc != 2) && (argc != 3)) { |
| 553 | return TCL_ERROR; |
| 554 | } |
| 555 | |
| 556 | if (argc == 3) { |
| 557 | if ((Tcl_GetInt(interp, argv[2], &speed) != TCL_OK) || |
| 558 | (speed < 1)) { |
| 559 | return TCL_ERROR; |
| 560 | } |
| 561 | |
| 562 | view->auto_speed = speed; |
| 563 | } |
| 564 | |
| 565 | sprintf(interp->result, "%d", view->auto_speed); |
| 566 | return TCL_OK; |
| 567 | } |
| 568 | |
| 569 | |
| 570 | int EditorCmdAutoGoal(VIEW_ARGS) |
nothing calls this directly
no test coverage detected