diff options
author | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 21:05:34 +0200 |
---|---|---|
committer | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 21:05:34 +0200 |
commit | 51bfbed1d8f8e2a2c27bc37850865699b0e727f9 (patch) | |
tree | 371ee7f6df602b79c052bc34d155caf1a9868446 | |
parent | variables setting and getting now works from bvr scripts (diff) | |
download | bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.gz bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.bz2 bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.lz bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.xz bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.zst bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.zip |
Diffstat (limited to '')
-rwxr-xr-x | a.out | bin | 17000 -> 17000 bytes | |||
-rw-r--r-- | src/bvrcommands.c | 2 | ||||
-rw-r--r-- | test/tape-test.bvr | 2 | ||||
-rw-r--r-- | tmp/output.htm | 2 |
4 files changed, 5 insertions, 1 deletions
Binary files differ diff --git a/src/bvrcommands.c b/src/bvrcommands.c index 2e0761b..5930222 100644 --- a/src/bvrcommands.c +++ b/src/bvrcommands.c @@ -36,7 +36,7 @@ int bvr_handle_set(FILE * input, FILE * output) { item[i++] = '\0'; i = 0; input_char = bvr_var_skip_separator_chars(input); - while(input_char != ' ' && input_char != CLOSING_COMMAND_TAG_CHAR_1 && input_char != ',' && input_char != ';' && input_char != EOF && + while(input_char != CLOSING_COMMAND_TAG_CHAR_1 && input_char != ',' && input_char != ';' && input_char != EOF && input_char != '\0' && input_char != '\n' && i < BVR_MAX_VARIABLE_SIZE) { value[i++] = input_char; input_char = fgetc(input); diff --git a/test/tape-test.bvr b/test/tape-test.bvr index f91ceca..e144aa4 100644 --- a/test/tape-test.bvr +++ b/test/tape-test.bvr @@ -7,6 +7,8 @@ <@?s ab 12@> <@?g ab@> <@?g ab@> +<@?s temp Ime mi je Anton Luka@> +<@?g temp@> # to je komentar in se ne rendera <@?1 post_author@> <@?2 image_caption This is an example image.@> diff --git a/tmp/output.htm b/tmp/output.htm index 2dfc960..1a48d4b 100644 --- a/tmp/output.htm +++ b/tmp/output.htm @@ -7,6 +7,8 @@ 12 12 + +Ime mi je Anton Luka bVerbose unknown command 1 |