summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-03-29 19:43:01 +0100
committerOskar <[email protected]>2024-03-29 19:43:01 +0100
commit40dc624e6c30af5e8b0ced7b615a7503eb502c17 (patch)
treec1dfaf9147d6843fdd5004c805f377962fee3a39
parent47b6da53aa76a7be011703158e71ac5d3c642878 (diff)
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...
-rw-r--r--i_validation.c2
-rw-r--r--i_validation.h4
-rw-r--r--input.c4
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;
}