Replace all CONFIG_NFILE_STREAMS with CONFIG_FILE_STREAM

follow up the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic27ad65d7cc2ea570921e0c17098dcb6bfe1893a
This commit is contained in:
Xiang Xiao
2020-08-13 22:17:42 +08:00
committed by liuguo09
parent 3edfb4a3ac
commit ecae66fe59
16 changed files with 45 additions and 45 deletions

View File

@@ -58,7 +58,7 @@
* Private Types
****************************************************************************/
#if CONFIG_NFILE_STREAMS > 0
#ifdef CONFIG_FILE_STREAM
struct serialsave_s
{
int cn_errfd; /* Re-directed error output file descriptor */
@@ -131,7 +131,7 @@ static int nsh_openifnotopen(struct console_stdio_s *pstate)
*
****************************************************************************/
#if CONFIG_NFILE_STREAMS > 0
#ifdef CONFIG_FILE_STREAM
static void nsh_closeifnotclosed(struct console_stdio_s *pstate)
{
if (pstate->cn_outstream == OUTSTREAM(pstate))
@@ -477,7 +477,7 @@ FAR struct console_stdio_s *nsh_newconsole(void)
pstate->cn_vtbl.np.np_flags = NSH_NP_SET_OPTIONS_INIT;
#endif
#if CONFIG_NFILE_STREAMS > 0
#ifdef CONFIG_FILE_STREAM
pstate->cn_vtbl.redirect = nsh_consoleredirect;
pstate->cn_vtbl.undirect = nsh_consoleundirect;