summaryrefslogtreecommitdiff
path: root/startmode.c
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-04-01 16:00:42 +0200
committerOskar <[email protected]>2024-04-01 16:00:42 +0200
commit2a61dc3144dcbf3b281a68ffdcaa177f4ccee349 (patch)
treeaba481cb70927ed89693fa7e205d88b65e9f7176 /startmode.c
parent3a08dca39c49ea7bd73e703a25ade3eaca8d0c81 (diff)
Started integrating multiples. Still in progress.
Diffstat (limited to 'startmode.c')
-rw-r--r--startmode.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/startmode.c b/startmode.c
index 3b4179b..de89743 100644
--- a/startmode.c
+++ b/startmode.c
@@ -6,6 +6,7 @@
#include "7ed.h"
#include "input.h"
#include "i_validation.h"
+#include "process_multiples.h"
#include <stdint.h>
int ncat(char filename[]) {
@@ -106,8 +107,27 @@ int startmode(char filename[]) {
call_singles(single, focus, filename);
break;
case _MULTIPLE:
- fprintf(stdout, "multiple\n");
- fprintf(stdout, "%s", multiple);
+ //fprintf(stdout, "multiple\n");
+ //fprintf(stdout, "%s", multiple);
+ switch(multiple[0]) {
+ case 'l':
+ case 'L':
+ focus = call_L(multiple, focus);
+ break;
+ case 'n':
+ case 'N':
+ call_N(multiple);
+ break;
+ case 'x':
+ case 'X':
+ call_X(multiple);
+ break;
+ case 'd':
+ case 'D':
+ call_D(multiple);
+ break;
+ }
+
free(multiple);
break;
case _FAIL: