From 40dc624e6c30af5e8b0ced7b615a7503eb502c17 Mon Sep 17 00:00:00 2001 From: Oskar Date: Fri, 29 Mar 2024 19:43:01 +0100 Subject: Renamed validate_L to validate_LN. The name may change. I should also find a better way to implement vlaidate_check_p_m but for now all that matters is that its working correctly... Which i think it does... --- i_validation.c | 2 +- i_validation.h | 4 +--- input.c | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/i_validation.c b/i_validation.c index 1239b85..1484993 100644 --- a/i_validation.c +++ b/i_validation.c @@ -165,7 +165,7 @@ int validate_imm_numbers(char *smode_buf) { return _NA; } -int validate_L(char *smode_buf, int mode) { +int validate_LN(char *smode_buf, int mode) { // this is still a huge function, validating strings is complicated.... // although i will admit that the code is overall just so much easier to work with. Still happy that i fixed that. diff --git a/i_validation.h b/i_validation.h index 28aea47..52e7c51 100644 --- a/i_validation.h +++ b/i_validation.h @@ -24,6 +24,4 @@ int validate_check_imm(char *smode_buf); int validate_plus_continue(char *smode_buf); -int validate_L(char *smode_buf, int mode); - -int validate_N(char *smode_buf); \ No newline at end of file +int validate_LN(char *smode_buf, int mode); \ No newline at end of file diff --git a/input.c b/input.c index a2c97f0..8776f4d 100644 --- a/input.c +++ b/input.c @@ -34,7 +34,7 @@ int smode_input(char *single, char **multiple, uint64_t focus) { // This functio case 'l': case 'L': { - int chk = validate_L(smode_buf, MODE_L); + int chk = validate_LN(smode_buf, MODE_L); if (chk == _INVALID) { return _FAIL; } @@ -46,7 +46,7 @@ int smode_input(char *single, char **multiple, uint64_t focus) { // This functio case 'n': case 'N': { - int chk = validate_L(smode_buf, MODE_N); + int chk = validate_LN(smode_buf, MODE_N); if (chk == _INVALID) { return _FAIL; } -- cgit v1.2.3