MCPcopy Create free account
hub / github.com/SimHacker/micropolis / EditorCmdShowMe

Function EditorCmdShowMe

micropolis-activity/src/sim/w_editor.c:622–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620
621
622int EditorCmdShowMe(VIEW_ARGS)
623{
624 int flag;
625
626 if ((argc != 2) && (argc != 3)) {
627 return TCL_ERROR;
628 }
629
630 if (argc == 3) {
631 if (Tcl_GetInt(interp, argv[2], &flag) != TCL_OK) {
632 return TCL_ERROR;
633 }
634
635 view->show_me = flag;
636 }
637
638 sprintf(interp->result, "%d", view->show_me);
639 return TCL_OK;
640}
641
642
643int EditorCmdFollow(VIEW_ARGS)

Callers

nothing calls this directly

Calls 1

Tcl_GetIntFunction · 0.85

Tested by

no test coverage detected