diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-06-09 17:31:19 +0200 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-06-09 17:31:19 +0200 |
commit | 1006e7fb17e31ea501eca6834253d288c2f6da59 (patch) | |
tree | 64f28ec44b0563201ab18a881e8b58036208c2b1 /src/bvrcommands.c | |
parent | i dont know (diff) | |
download | bverbose-1006e7fb17e31ea501eca6834253d288c2f6da59.tar bverbose-1006e7fb17e31ea501eca6834253d288c2f6da59.tar.gz bverbose-1006e7fb17e31ea501eca6834253d288c2f6da59.tar.bz2 bverbose-1006e7fb17e31ea501eca6834253d288c2f6da59.tar.lz bverbose-1006e7fb17e31ea501eca6834253d288c2f6da59.tar.xz bverbose-1006e7fb17e31ea501eca6834253d288c2f6da59.tar.zst bverbose-1006e7fb17e31ea501eca6834253d288c2f6da59.zip |
Diffstat (limited to '')
-rw-r--r-- | src/bvrcommands.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bvrcommands.c b/src/bvrcommands.c index 75a5967..3468d98 100644 --- a/src/bvrcommands.c +++ b/src/bvrcommands.c @@ -292,7 +292,13 @@ int bvr_handle_if(FILE * input, FILE * output) { // ?f 1 <@this is all executed@ char * item = bvr_commands_get_value(input, chars_to_break_value); int return_value = 0; if(strcmp(bvr_var_get(item), "1") == 0) { - return_value = bvr_compose_stream(input, output); + char chars_to_break_value[3] = {OPENING_COMMAND_TAG_CHAR_2, EOF, '\0'}; + char * temp = bvr_commands_get_value(input, chars_to_break_value); + free(temp); + temp = NULL; + char copy_buffer[BVR_COPY_BUFFER_SIZE]; + init_tape_copy_buffer(copy_buffer, COPY_BUFFER_SIZE); + return_value = bvr_inline_command_processor(input, output, copy_buffer); } else { char input_char = fgetc(input); char previous_char = 'a'; |