Fix a few mistakes I made on the last commit
This commit is contained in:
parent
766886310d
commit
f1b4b4d47a
@ -1365,4 +1365,6 @@
|
||||
do start at the same time (2015-07-24).
|
||||
* apps/examples/ostest: Add a test for the sporadic scheduler. This
|
||||
test is failing as of this commit (2015-07-24).
|
||||
|
||||
* apps/system/readline: Add support for Unix-style tab complete toi
|
||||
readline. This currently works only for built-in functions.i
|
||||
Contributed by Nghia (2015-07-28).
|
||||
|
@ -87,7 +87,7 @@ extern "C"
|
||||
**************************************************************************/
|
||||
|
||||
#ifdef CONFIG_READLINE_TABCOMPLETION
|
||||
void readline_prompt(FAR const *prompt);
|
||||
void readline_prompt(FAR const char *prompt);
|
||||
#else
|
||||
# define readline_prompt(p)
|
||||
#endif
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/boardctl.h>
|
||||
#include <apps/readline.h>
|
||||
#include <apps/nsh.h>
|
||||
|
||||
#include "nsh.h"
|
||||
|
@ -63,7 +63,7 @@ static const char g_erasetoeol[] = VT100_CLEAREOL;
|
||||
#ifdef CONFIG_READLINE_TABCOMPLETION
|
||||
/* Prompt string to present at the beginning of the line */
|
||||
|
||||
static const *char g_readline_prompt = NULL;
|
||||
static FAR const char *g_readline_prompt = NULL;
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
@ -199,7 +199,7 @@ void tab_completion(FAR struct rl_common_s *vtbl, char *buf, int *nch)
|
||||
**************************************************************************/
|
||||
|
||||
#ifdef CONFIG_READLINE_TABCOMPLETION
|
||||
void readline_prompt(FAR const *prompt)
|
||||
void readline_prompt(FAR const char *prompt)
|
||||
{
|
||||
g_readline_prompt = prompt;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user