X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fstates.c;h=8feb6a765148e61c1c0c4f8c9021a3994f7146e7;hb=8760c1ba6442153afe76bcac742e086f90c59fe8;hp=cd3b695a5777486926eec58c57e950c634bc8dc5;hpb=81ffe9a7de1db0b3a318a053b38882d1b7ab304c;p=inform.git diff --git a/src/states.c b/src/states.c index cd3b695..8feb6a7 100644 --- a/src/states.c +++ b/src/states.c @@ -1,9 +1,8 @@ /* ------------------------------------------------------------------------- */ /* "states" : Statement translator */ /* */ -/* Copyright (c) Graham Nelson 1993 - 2018 */ -/* */ -/* This file is part of Inform. */ +/* Part of Inform 6.35 */ +/* copyright (c) Graham Nelson 1993 - 2020 */ /* */ /* Inform is free software: you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ @@ -16,7 +15,7 @@ /* GNU General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public License */ -/* along with Inform. If not, see https://gnu.org/licenses/ */ +/* along with Inform. If not, see https://gnu.org/licenses/ * /* */ /* ------------------------------------------------------------------------- */ @@ -184,7 +183,7 @@ static void parse_action(void) if (version_number==4) assemblez_4_to(call_vs_zc, AO, AO2, AO3, AO4, temp_var1); else - assemblez_4(call_zc, AO, AO2, AO3, AO4); + assemblez_4_to(call_zc, AO, AO2, AO3, AO4, temp_var1); break; case 3: AO5 = code_generate(AO5, QUANTITY_CONTEXT, -1); @@ -854,9 +853,9 @@ static void parse_statement_z(int break_label, int continue_label) if (j > ln2) ln2 = j; } put_token_back(); - array_entry(ln++,parse_expression(CONSTANT_CONTEXT)); + array_entry(ln++, FALSE, parse_expression(CONSTANT_CONTEXT)); } while (TRUE); - finish_array(ln); + finish_array(ln, FALSE); if (ln == 0) error("No lines of text given for 'box' display"); @@ -1815,9 +1814,9 @@ static void parse_statement_g(int break_label, int continue_label) if (j > ln2) ln2 = j; } put_token_back(); - array_entry(ln++,parse_expression(CONSTANT_CONTEXT)); + array_entry(ln++, FALSE, parse_expression(CONSTANT_CONTEXT)); } while (TRUE); - finish_array(ln); + finish_array(ln, FALSE); if (ln == 0) error("No lines of text given for 'box' display");