From 3b06f9600e3ff93e883cc5e21f6ce318e655bb5a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 16 Feb 2022 17:13:07 -0600 Subject: [PATCH] Move a struct from lib.h into the one toys/pending command that uses it. --- lib/lib.h | 5 ----- toys/pending/bc.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/lib.h b/lib/lib.h index 08348d05..6ab312e3 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -8,11 +8,6 @@ struct ptr_len { long len; }; -struct str_len { - char *str; - long len; -}; - // llist.c // All these list types can be handled by the same code because first element diff --git a/toys/pending/bc.c b/toys/pending/bc.c index 2d927551..37131404 100644 --- a/toys/pending/bc.c +++ b/toys/pending/bc.c @@ -45,6 +45,11 @@ GLOBALS( uint16_t line_len; ) +struct str_len { + char *str; + long len; +}; + #define BC_VM ((BcVm*) TT.vm) typedef enum BcStatus { -- 2.39.2