Revert "Squashed commit of the following:"

This reverts commit 25b92edd9f.
This commit is contained in:
Gregory Nutt
2018-08-22 12:06:32 -06:00
parent cd62ab5398
commit 2f982e9c77
326 changed files with 569 additions and 561 deletions

View File

@@ -107,7 +107,7 @@
#undef HAVE_NSH_COMMAND
#if (defined(CONFIG_SYSTEM_SYSTEM) || defined(CONFIG_SYSTEM_POPEN)) && \
defined(CONFIG_BUILD_LOADABLE)
defined(CONFIG_BUILD_KERNEL)
# define HAVE_NSH_COMMAND 1
#endif
@@ -264,7 +264,7 @@ static int nsh_task(void)
* Name: nsh_main
****************************************************************************/
#ifdef CONFIG_BUILD_LOADABLE
#ifdef CONFIG_BUILD_KERNEL
int main(int argc, FAR char *argv[])
#else
int nsh_main(int argc, char *argv[])
@@ -277,7 +277,7 @@ int nsh_main(int argc, char *argv[])
* 2) As a single command processor. In this case, the single command is
* is provided in argv[1].
*
* NOTE: The latter mode is only available if CONFIG_BUILD_LOADABLE=y. In
* NOTE: The latter mode is only available if CONFIG_BUILD_KERNEL=y. In
* that cause, this main() function will be build as a process. The process
* will be started with a command by the implementations of the system() and
* popen() interfaces.