diff options
author | Oskar <[email protected]> | 2024-03-07 21:41:07 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2024-03-07 21:41:07 +0100 |
commit | 256bf3acc9c21c55c955824f1a00bc7cba6b85a8 (patch) | |
tree | 1a7697a839ded229057c2e94762d8b12a2ec9b1a /input.c | |
parent | 1f71f8a1e0b17260e746e86aa8b3cb3dbe42771c (diff) |
improved 7ed.c to make using the current flags a little smarter
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -4,22 +4,13 @@ #include <string.h> #include <errno.h> #include "7ed.h" +#include "input.h" #include <stdint.h> -#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) { /* |