aboutsummaryrefslogtreecommitdiff
path: root/toys/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/sed.c')
-rw-r--r--toys/sed.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/toys/sed.c b/toys/sed.c
index b3800d8e..c4eb1a44 100644
--- a/toys/sed.c
+++ b/toys/sed.c
@@ -21,6 +21,12 @@ config SED
#include "toys.h"
#include "lib/xregcomp.h"
+DEFINE_GLOBALS(
+ struct arg_list *commands;
+)
+
+#define TT this.sed
+
struct sed_command {
// Doubly linked list of commands.
struct sed_command *next, *prev;
@@ -46,8 +52,6 @@ struct sed_command {
char command;
};
-#define TT toy.sed
-
void sed_main(void)
{
struct arg_list *test;