You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/08/25 20:20:58 UTC

incubator-mynewt-core git commit: console; don't expose console_prompt[], fix define in prompt.h.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop f95bda8c2 -> eff853a55


console; don't expose console_prompt[], fix define in prompt.h.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/eff853a5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/eff853a5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/eff853a5

Branch: refs/heads/develop
Commit: eff853a55db38e27ff23bab4e4689c4619037f0c
Parents: f95bda8
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Aug 25 13:20:03 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Aug 25 13:20:03 2016 -0700

----------------------------------------------------------------------
 libs/console/full/include/console/prompt.h | 10 +++-------
 libs/console/full/src/prompt.c             |  2 +-
 libs/shell/src/shell.c                     |  2 --
 3 files changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/eff853a5/libs/console/full/include/console/prompt.h
----------------------------------------------------------------------
diff --git a/libs/console/full/include/console/prompt.h b/libs/console/full/include/console/prompt.h
index 87ace35..f930879 100644
--- a/libs/console/full/include/console/prompt.h
+++ b/libs/console/full/include/console/prompt.h
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#ifndef __CONSOLE_H__
-#define __CONSOLE_H__
+#ifndef __CONSOLE_PROMPT_H__
+#define __CONSOLE_PROMPT_H__
 
 #include <stdarg.h>
 
@@ -28,8 +28,4 @@ void console_print_prompt();
 /* set the console prompt character */
 void console_set_prompt(char);
 
-
-extern char console_prompt[2];
-
-
-#endif /* __CONSOLE_H__ */
+#endif /* __CONSOLE_PROMPT_H__ */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/eff853a5/libs/console/full/src/prompt.c
----------------------------------------------------------------------
diff --git a/libs/console/full/src/prompt.c b/libs/console/full/src/prompt.c
index 421d937..42f126e 100644
--- a/libs/console/full/src/prompt.c
+++ b/libs/console/full/src/prompt.c
@@ -22,7 +22,7 @@
 #include "console/prompt.h"
 
 /* console prompt, always followed by a space */
-char console_prompt[3] = {' ', '>', ' '};
+static char console_prompt[3] = {' ', '>', ' '};
 
 
 /* set the prompt character, leave the space */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/eff853a5/libs/shell/src/shell.c
----------------------------------------------------------------------
diff --git a/libs/shell/src/shell.c b/libs/shell/src/shell.c
index 0de277e..4ae9bc3 100644
--- a/libs/shell/src/shell.c
+++ b/libs/shell/src/shell.c
@@ -46,8 +46,6 @@ static struct os_mqueue g_shell_nlip_mq;
 
 static int shell_echo_cmd(int argc, char **argv);
 static int shell_help_cmd(int argc, char **argv);
-void console_print_prompt(void);
-void console_set_prompt(char p);
 int shell_prompt_cmd(int argc, char **argv);
 
 static struct shell_cmd g_shell_echo_cmd = {