Home
last modified time | relevance | path

Searched refs:tmp_idx (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/amp/engine/duktape_engine/
A Drepl.c220 int32_t tmp_idx; in repl_history_input() local
226 tmp_idx = his_cur + charnum - 1; in repl_history_input()
227 lastchar = g_repl->history[tmp_idx]; in repl_history_input()
232 tmp_idx = (his_cur + charnum - 1) % REPL_INBUF_SIZE; in repl_history_input()
233 lastchar = g_repl->history[tmp_idx]; in repl_history_input()
238 tmp_idx = (tmp_idx + 1) % REPL_INBUF_SIZE; in repl_history_input()
240 g_repl->his_cur = tmp_idx; in repl_history_input()
246 while (g_repl->history[tmp_idx] != '\0') in repl_history_input()
248 g_repl->history[tmp_idx] = '\0'; in repl_history_input()
250 tmp_idx = (tmp_idx + 1) % REPL_INBUF_SIZE; in repl_history_input()
/AliOS-Things-master/components/ulog/src/
A Dulog_session_file.c502 ulog_idx_type tmp_idx = ULOG_FILE_IDX_INVALID; in reload_log_argu() local
509 tmp_idx = get_working_from_cfg_mm(); in reload_log_argu()
511 SESSION_FS_INFO("[%s]log file idx %d\n", ULOG_TAG_SELF, tmp_idx); in reload_log_argu()
512 if (tmp_idx <= LOCAL_FILE_CNT) { in reload_log_argu()
513 … snprintf(ulog_file_name, sizeof(ulog_file_name), ULOG_FILE_FORMAT, guc_logfile_path, tmp_idx); in reload_log_argu()
519 rc = update_new_log_file(tmp_idx); in reload_log_argu()
524 if (LOCAL_FILE_CNT < tmp_idx) { in reload_log_argu()
/AliOS-Things-master/components/cli/src/
A Dcli.c603 int32_t tmp_idx; in cli_history_input() local
608 tmp_idx = his_cur + charnum - 1; in cli_history_input()
609 lastchar = g_cli->history[tmp_idx]; in cli_history_input()
613 tmp_idx = (his_cur + charnum - 1) % CLI_INBUF_SIZE; in cli_history_input()
614 lastchar = g_cli->history[tmp_idx]; in cli_history_input()
619 tmp_idx = (tmp_idx + 1) % CLI_INBUF_SIZE; in cli_history_input()
621 g_cli->his_cur = tmp_idx; in cli_history_input()
625 while (g_cli->history[tmp_idx] != '\0') { in cli_history_input()
626 g_cli->history[tmp_idx] = '\0'; in cli_history_input()
628 tmp_idx = (tmp_idx + 1) % CLI_INBUF_SIZE; in cli_history_input()

Completed in 9 milliseconds