修复编译警告
This commit is contained in:
parent
f9f7cde064
commit
4335f3b49a
|
@ -60,7 +60,7 @@ static int key_ctr_c(void* pv)
|
|||
|
||||
static xcmd_key_t keys[] =
|
||||
{
|
||||
{CTR_C, key_ctr_c, "ctr+c"},
|
||||
{CTR_C, key_ctr_c, "ctr+c", NULL},
|
||||
};
|
||||
|
||||
void user_keys_init(void)
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
void ex_cmds_init(void)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ void ex_cmds_init(void);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -49,15 +49,15 @@ static int xcmd_ctr_l(void *pv)
|
|||
|
||||
static xcmd_key_t ex_keys[] =
|
||||
{
|
||||
{CTR_A, xcmd_ctr_a, "ctr+a"},
|
||||
{CTR_E, xcmd_ctr_e, "ctr+e"},
|
||||
{CTR_U, xcmd_ctr_u, "ctr+u"},
|
||||
{CTR_K, xcmd_ctr_k, "ctr+k"},
|
||||
{CTR_L, xcmd_ctr_l, "ctr+l"},
|
||||
{CTR_A, xcmd_ctr_a, "ctr+a", NULL},
|
||||
{CTR_E, xcmd_ctr_e, "ctr+e", NULL},
|
||||
{CTR_U, xcmd_ctr_u, "ctr+u", NULL},
|
||||
{CTR_K, xcmd_ctr_k, "ctr+k", NULL},
|
||||
{CTR_L, xcmd_ctr_l, "ctr+l", NULL},
|
||||
};
|
||||
|
||||
|
||||
void ex_keys_init(void)
|
||||
{
|
||||
xcmd_key_register(ex_keys, sizeof(ex_keys)/sizeof(xcmd_key_t));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ void ex_keys_init(void);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -108,14 +108,14 @@ static int cmd_ctr_q(void* pv)
|
|||
|
||||
static xcmd_t cmds[] =
|
||||
{
|
||||
{"echo", cmd_echo, "echo anything"},
|
||||
{"history", cmd_history, "show history list"},
|
||||
{"example", cmd_example, "example [-f|-i|-s] [val]"},
|
||||
{"echo", cmd_echo, "echo anything", NULL},
|
||||
{"history", cmd_history, "show history list", NULL},
|
||||
{"example", cmd_example, "example [-f|-i|-s] [val]", NULL},
|
||||
};
|
||||
|
||||
static xcmd_key_t keys[] =
|
||||
{
|
||||
{CTR_Q, cmd_ctr_q, "ctr+q"},
|
||||
{CTR_Q, cmd_ctr_q, "ctr+q", NULL},
|
||||
};
|
||||
|
||||
void test_cmd_init(void)
|
||||
|
|
|
@ -51,10 +51,10 @@ static void cmd_logo(int argc, char* argv[])
|
|||
|
||||
static xcmd_t cmds[] =
|
||||
{
|
||||
{"clear", cmd_clear, "clear screen"},
|
||||
{"help", cmd_help, "show this list"},
|
||||
{"keys", cmd_keys, "show keys"},
|
||||
{"logo", cmd_logo, "show logo"},
|
||||
{"clear", cmd_clear, "clear screen", NULL},
|
||||
{"help", cmd_help, "show this list", NULL},
|
||||
{"keys", cmd_keys, "show keys", NULL},
|
||||
{"logo", cmd_logo, "show logo", NULL},
|
||||
};
|
||||
|
||||
void default_cmds_init(void)
|
||||
|
|
|
@ -108,14 +108,14 @@ static int xcmd_auto_completion(void *pv)
|
|||
|
||||
static xcmd_key_t default_keys[] =
|
||||
{
|
||||
{BACKSPACE, xcmd_del_char, "backspace"},
|
||||
{L_DELETE, xcmd_del_char, "left delete"},
|
||||
{LEFT, xcmd_cursor_left, "left"},
|
||||
{RIGHT, xcmd_cursor_right, "right"},
|
||||
{TAB, xcmd_auto_completion, "tab"},
|
||||
{BACKSPACE, xcmd_del_char, "backspace", NULL},
|
||||
{L_DELETE, xcmd_del_char, "left delete", NULL},
|
||||
{LEFT, xcmd_cursor_left, "left", NULL},
|
||||
{RIGHT, xcmd_cursor_right, "right", NULL},
|
||||
{TAB, xcmd_auto_completion, "tab", NULL},
|
||||
#if XCMD_HISTORY_MAX_NUM
|
||||
{DW, xcmd_history_dw, "down"},
|
||||
{UP, xcmd_history_up, "up"},
|
||||
{DW, xcmd_history_dw, "down", NULL},
|
||||
{UP, xcmd_history_up, "up", NULL},
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue