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.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 input.h (limited to 'input.h') diff --git a/input.h b/input.h new file mode 100644 index 0000000..94c746d --- /dev/null +++ b/input.h @@ -0,0 +1,18 @@ +#include +#include +#include +#include +#include +#include "7ed.h" +#include + +#define SMODE_MAX_SIZE 33 +#define SMODE_MAX_INPUT_SIZE 32 + +#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 \ No newline at end of file -- cgit v1.2.3