summaryrefslogtreecommitdiff
path: root/i_validation.c
diff options
context:
space:
mode:
authorOskar <>2024-03-26 22:18:36 +0100
committerOskar <>2024-03-26 22:18:36 +0100
commit817a46ef2eb88315e3bcecfe437d48e15106af84 (patch)
treee83433ddb7c04ac1ccf7ea20c436ee88f370ff58 /i_validation.c
parent37493581668294ac136df42f56a0bb937890805a (diff)
validate_L
Diffstat (limited to 'i_validation.c')
-rw-r--r--i_validation.c35
1 files changed, 31 insertions, 4 deletions
diff --git a/i_validation.c b/i_validation.c
index 4ba7ff8..a83129c 100644
--- a/i_validation.c
+++ b/i_validation.c
@@ -151,15 +151,42 @@ int validate_L(char *smode_buf) {
path 3: If there is nothing else after the L (in this case just an L) then just return an L (DONE)
*/
- int validate_decision = _NA;
+ int validate_decision = validate_check_p_m(smode_buf);
+
+ int vcimm = FALSE_7ED;
+ int plus_continue = TRUE_7ED;
+ switch(validate_decision) {
+ case _PLUS_ONLY:
+ printf("PLUS ONLY\n");
+ break;
+ case _PLUS_CONTINUE:
+ printf("PLUS CONTINUE\n");
+ break;
+ case _INVALID:
+ printf("INVALID\n");
+ break;
+ case _NA:
+ printf("NA\n");
+ vcimm = TRUE_7ED;
+ plus_continue = FALSE_7ED;
+ break;
+ }
+
+ if (vcimm == TRUE_7ED) {
+
+ printf("vcimm false\n");
- validate_decision = validate_check_p_m(smode_buf);
+ }
- printf("%i\n", validate_decision); // remove, its just here to make the compiler not output a bunch of warnings
+ if (plus_continue == FALSE_7ED) {
+
+ printf("plus_continue true\n");
+
+ }
// this below will become validate_imm_numbers or something
- return 0; // remove, its just here to make the compiler not output a bunch of warnings
+ return _INVALID; // temporary invalid
}