diff options
Diffstat (limited to 'process_multiples.c')
-rw-r--r-- | process_multiples.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/process_multiples.c b/process_multiples.c index e690280..a2de559 100644 --- a/process_multiples.c +++ b/process_multiples.c @@ -266,7 +266,33 @@ uint64_t call_N(char *multiple, uint64_t focus, uint64_t Flines, char *filename) return 0; } -int call_X(char *multiple) { +int call_X(char *multiple, uint64_t focus, uint64_t Flines, char *filename) { + + int imm = _IMM_NUMBER; + + if (multiple[1] == '\n') { // X Will remove current line + imm = _NA; + remove_line_contents(filename, focus); + return 0; + } + + if (multiple[1] == '+') { // X+ Will..... idk + imm = _NA; + if (multiple[2] == '\n') { + // Will have to really think about this + return 0; + } + + // X plus continue. Still figuring out how this is gonna work. + + return 0; + } + + if (imm == _IMM_NUMBER) { + // X immediate, process immediates + + return 0; + } fprintf(stdout, "%s\n", multiple); return 0; |