Lines Matching defs:commands
115 /* List of recognized commands, each consisting of name, place and
126 } commands[] = {
305 /* Look up CMDNAME in the commands[] and return its position in the
311 /* Use binary search for speed. Wget has ~100 commands, which
313 int lo = 0, hi = countof (commands) - 1;
318 int cmp = strcasecmp (cmdname, commands[mid].name);
810 /* Run commands[comind].action. */
815 assert (0 <= comind && ((size_t) comind) < countof (commands));
816 DEBUGP (("Setting %s (%s) to %s\n", com, commands[comind].name, val));
817 return commands[comind].action (com, val, commands[comind].place);
830 if (((commands[comind].action == cmd_file) ||
831 (commands[comind].action == cmd_directory))
834 pstring = commands[comind].place;
900 /* Generic helper functions, for use with `commands'. */
1282 /* Specialized helper functions, used by `commands' to handle some
1814 for (i = 1; i < countof(commands); ++i)
1816 if (strcasecmp (commands[i - 1].name, commands[i].name) > 0)