Lines Matching refs:i

130     int i;  in dump_history()  local
131 for (i=0; i < HISTORY_LEN; i++) { in dump_history()
156 uint i = ptrnext(*cursor); in next_history() local
158 if (i == con->history_next) in next_history()
161 *cursor = i; in next_history()
162 return history_line(con, i); in next_history()
166 uint i; in prev_history() local
174 i = ptrprev(*cursor); in prev_history()
177 if (history_line(con, i)[0] == '\0') in prev_history()
181 *cursor = i; in prev_history()
203 int times = argv[1].i; in cmd_repeat()
204 int delay = argv[2].i; in cmd_repeat()
213 for (int i = 3; i < argc; ++i) { in cmd_repeat() local
214 if (i != 3) { in cmd_repeat()
219 for (const char *src = argv[i].str; *src != '\0'; src++) { in cmd_repeat()
226 for (int i = 0; i < times; ++i) { in cmd_repeat() local
227 printf("[%d/%d]\n", i + 1, times); in cmd_repeat()
247 for (size_t i = 0; i < block->count; i++) { in match_command() local
248 if ((availability_mask & curr_cmd[i].availability_mask) == 0) { in match_command()
251 if (strcmp(command, curr_cmd[i].cmd_str) == 0) { in match_command()
252 return &curr_cmd[i]; in match_command()
550 int i; in convert_args() local
552 for (i = 0; i < argc; i++) { in convert_args()
553 unsigned long u = atoul(argv[i].str); in convert_args()
554 argv[i].u = u; in convert_args()
555 argv[i].p = (void *)u; in convert_args()
556 argv[i].i = atol(argv[i].str); in convert_args()
558 if (!strcmp(argv[i].str, "true") || !strcmp(argv[i].str, "on")) { in convert_args()
559 argv[i].b = true; in convert_args()
560 } else if (!strcmp(argv[i].str, "false") || !strcmp(argv[i].str, "off")) { in convert_args()
561 argv[i].b = false; in convert_args()
563 argv[i].b = (argv[i].u == 0) ? false : true; in convert_args()
793 for (size_t i = 0; i < block->count; i++) { in cmd_help_impl() local
794 if ((availability_mask & curr_cmd[i].availability_mask) == 0) { in cmd_help_impl()
798 if (curr_cmd[i].help_str) in cmd_help_impl()
799 printf("\t%-16s: %s\n", curr_cmd[i].cmd_str, curr_cmd[i].help_str); in cmd_help_impl()
898 int i; in cmd_test() local
901 for (i = 0; i < argc; i++) in cmd_test()
902 … printf("\t%d: str '%s', i %ld, u %#lx, b %d\n", i, argv[i].str, argv[i].i, argv[i].u, argv[i].b); in cmd_test()