Lines Matching defs:infoPtr
76 register Tk_ArgvInfo *infoPtr;
122 infoPtr = argTable;
124 infoPtr = defaultTable;
126 for (; (infoPtr != NULL) && (infoPtr->type != TK_ARGV_END);
127 infoPtr++) {
128 if (infoPtr->key == NULL) {
131 if ((infoPtr->key[1] != c)
132 || (strncmp(infoPtr->key, curArg, length) != 0)) {
136 && ((infoPtr->type == TK_ARGV_CONST_OPTION)
137 || (infoPtr->type == TK_ARGV_OPTION_VALUE)
138 || (infoPtr->type == TK_ARGV_OPTION_NAME_VALUE))) {
141 if (infoPtr->key[length] == 0) {
142 matchPtr = infoPtr;
153 matchPtr = infoPtr;
178 infoPtr = matchPtr;
179 switch (infoPtr->type) {
181 *((int *) infoPtr->dst) = (int) infoPtr->src;
189 *((int *) infoPtr->dst) =
193 "for \"", infoPtr->key, "\" but got \"",
205 *((char **)infoPtr->dst) = argv[srcIndex];
214 *((Tk_Uid *)infoPtr->dst) = Tk_GetUid(argv[srcIndex]);
220 *((int *) infoPtr->dst) = dstIndex;
228 *((double *) infoPtr->dst) =
232 "argument for \"", infoPtr->key,
244 handlerProc = (int (*)())infoPtr->src;
246 if ((*handlerProc)(infoPtr->dst, infoPtr->key,
256 handlerProc = (int (*)())infoPtr->src;
258 argc = (*handlerProc)(infoPtr->dst, interp, infoPtr->key,
269 Tk_AddOption(tkwin, infoPtr->dst, infoPtr->src,
276 Tk_AddOption(tkwin, infoPtr->dst, argv[srcIndex],
295 infoPtr->type);
352 register Tk_ArgvInfo *infoPtr;
365 for (infoPtr = i ? defaultTable : argTable;
366 infoPtr->type != TK_ARGV_END; infoPtr++) {
368 if (infoPtr->key == NULL) {
371 length = strlen(infoPtr->key);
380 for (infoPtr = i ? defaultTable : argTable;
381 infoPtr->type != TK_ARGV_END; infoPtr++) {
382 if ((infoPtr->type == TK_ARGV_HELP) && (infoPtr->key == NULL)) {
383 Tcl_AppendResult(interp, "\n", infoPtr->help, (char *) NULL);
386 Tcl_AppendResult(interp, "\n ", infoPtr->key, ":", (char *) NULL);
387 numSpaces = width + 1 - strlen(infoPtr->key);
397 Tcl_AppendResult(interp, infoPtr->help, (char *) NULL);
398 switch (infoPtr->type) {
400 sprintf(tmp, "%d", *((int *) infoPtr->dst));
406 sprintf(tmp, "%g", *((double *) infoPtr->dst));
414 string = *((char **) infoPtr->dst);