From 766dee7f4292f82be19265544a59e1282e29e208 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Wed, 8 Jul 2026 01:37:28 -0500 Subject: ignore the overengineered line splitting algorithm --- linux/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linux/main.c') diff --git a/linux/main.c b/linux/main.c index bd208f2..325a35e 100644 --- a/linux/main.c +++ b/linux/main.c @@ -6,6 +6,7 @@ #include #include #include +#include #ifdef DEBUG_MESSAGE #define DEBUG(_s, ...) fprintf(stderr, _s, ## __VA_ARGS__) @@ -52,7 +53,12 @@ static void handle_command(const char *cmd) { } +int test_main(void); int main(int argc, char **argv) { + return test_main(); +} + +int main_(int argc, char **argv) { struct termios tio; int tfd; unsigned char buf[1024]; @@ -101,6 +107,8 @@ int main(int argc, char **argv) { /* command */ for (ssize_t cidx = 0; cidx < nread; ++i) { /* TODO: split command by lines */ + if (buf[cidx] <= ' ') continue; /* skip initial whitespace */ + } } else { /* gecko */ -- cgit v1.2.3-70-g09d2