From 256bf3acc9c21c55c955824f1a00bc7cba6b85a8 Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 7 Mar 2024 21:41:07 +0100 Subject: improved 7ed.c to make using the current flags a little smarter --- input.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 28c6587..fdb45ce 100644 --- a/input.c +++ b/input.c @@ -4,22 +4,13 @@ #include #include #include "7ed.h" +#include "input.h" #include -#define _ONE 1 -#define _SINGLE 1 -#define _MULTIPLE 2 -#define _FAIL '?' // final return value from smode_input to indicate an invalid -#define _VALID 0 // this may only be used to mark as valid or invalid from the validate functions -#define _INVALID -1 // this may only be used to mark as valid or invalid from the validate functions - // _FAIL and _INVALID are sorta tied to eachother // This will be the new input system for combining commands with line numbers // Work in progress and far from finished. This is not included when compiling normally. -#define SMODE_MAX_SIZE 33 -#define SMODE_MAX_INPUT_SIZE 32 - int validate_L(char *smode_buf) { /* -- cgit v1.2.3