mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-20 13:08:31 +00:00
Merged in nghiaho12/apps/nghia/handle_config_readline_max_extcmds_equal_0 (pull request #20)
handle when CONFIG_READLINE_MAX_EXTCMDS == 0
This commit is contained in:
commit
1f2f8262f1
1 changed files with 4 additions and 0 deletions
|
|
@ -425,9 +425,13 @@ FAR const char *readline_prompt(FAR const char *prompt)
|
|||
FAR const struct extmatch_vtable_s *
|
||||
readline_extmatch(FAR const struct extmatch_vtable_s *vtbl)
|
||||
{
|
||||
#if (CONFIG_READLINE_MAX_EXTCMDS > 0)
|
||||
FAR const struct extmatch_vtable_s *ret = g_extmatch_vtbl;
|
||||
g_extmatch_vtbl = vtbl;
|
||||
return ret;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue