aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/hello.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/toys/hello.c b/toys/hello.c
index a8caeefe..e5d78f6a 100644
--- a/toys/hello.c
+++ b/toys/hello.c
@@ -7,7 +7,7 @@
* Not in SUSv3.
* See http://www.opengroup.org/onlinepubs/009695399/utilities/
-USE_HELLO(NEWTOY(hello, NULL, TOYFLAG_USR|TOYFLAG_BIN))
+USE_HELLO(NEWTOY(hello, "e@d*c#b:a", TOYFLAG_USR|TOYFLAG_BIN))
config HELLO
bool "hello"
@@ -21,6 +21,19 @@ config HELLO
#include "toys.h"
+// Hello doesn't use these globals, they're here for example/skeleton purposes.
+
+DEFINE_GLOBALS(
+ char *b_string;
+ long c_number;
+ struct arg_list *d_list;
+ long e_count;
+
+ int more_globals;
+)
+
+#define TT this.hello
+
void hello_main(void)
{
printf("Hello world\n");