Lines Matching defs:command
23 * about the command to invoke and its interpreter.
27 Tcl_Interp *interp; /* Interpreter in which to invoke command. */
28 int cmdLength; /* # of non-NULL bytes in command. */
29 char command[4]; /* Command to invoke. Actual space is
35 * When selection ownership is claimed with the "selection own" Tcl command,
36 * one of the following structures is created to record the Tcl command
41 Tcl_Interp *interp; /* Interpreter in which to invoke command. */
42 char command[4]; /* Command to invoke. Actual space is
582 * command. See the user documentation for details on what
760 " handle ?options? window command\"", (char *) NULL);
795 strcpy(cmdInfoPtr->command, args[1]);
816 if ((c == 'c') && (strncmp(args[0], "-command", length) == 0)) {
883 strcpy(lostPtr->command, script);
1108 * by the "selection handle" command. It invokes a Tcl command to
1114 * the Tcl command to retrieve the selection.
1117 * None except for things done by the Tcl command.
1124 ClientData clientData; /* Information about command to execute. */
1134 char *command;
1140 * command could delete the handler, freeing the CommandInfo data before we
1149 * First, generate a command by taking the command string
1155 command = staticSpace;
1157 command = (char *) ckalloc((unsigned) spaceNeeded);
1159 sprintf(command, "%s %d %d", cmdInfoPtr->command, offset, maxBytes);
1162 * Execute the command. Be sure to restore the state of the
1163 * interpreter after executing the command.
1168 if (TkCopyAndGlobalEval(interp, command) == TCL_OK) {
1180 if (command != staticSpace) {
1181 ckfree(command);
1301 * the selection and the ownership was claimed with the command
1326 * Execute the command. Save the interpreter's result, if any, and
1327 * restore it after executing the command.
1340 if (TkCopyAndGlobalEval(interp, lostPtr->command) != TCL_OK) {
1350 * Free the storage for the command, since we're done with it now.