diff options
author | Oskar <[email protected]> | 2024-04-11 10:32:12 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-04-11 10:32:12 +0200 |
commit | d6ea48c5be4ec380d2ae18af19ce6107926f58ac (patch) | |
tree | fef506eb5f2d73b218c54a6c7d7a561e44c95eef /process_multiples.c | |
parent | 5d9aa978796cd7290c4c7ece59a75da532fd839c (diff) |
Prepared call_X functions, i havent had alot of time to work on this but
i have not abandoned this.
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; |