X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Ftables.c;h=4158253d8e5af79a89fc1bf38db8e6d8d301a627;hb=d8d68d0bd4c45af6f0dc69b4fc33d37d961aca85;hp=df3cdfb10313679b342ada031e3b3e131a7b886e;hpb=e536ce9e39cc1bfa82ecd1d6d73f874af655f9db;p=inform.git diff --git a/src/tables.c b/src/tables.c index df3cdfb..4158253 100644 --- a/src/tables.c +++ b/src/tables.c @@ -3,9 +3,8 @@ /* end of dynamic memory, gluing together all the required */ /* tables. */ /* */ -/* Copyright (c) Graham Nelson 1993 - 2020 */ -/* */ -/* This file is part of Inform. */ +/* Part of Inform 6.35 */ +/* copyright (c) Graham Nelson 1993 - 2021 */ /* */ /* Inform is free software: you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ @@ -18,7 +17,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/ * /* */ /* ------------------------------------------------------------------------- */ @@ -296,13 +295,23 @@ static void construct_storyfile_z(void) p[0x42+i]=low_strings[i]; abbrevs_at = mark; - for (i=0; i<3*32; i++) /* Initially all 96 entries */ - { p[mark++]=0; p[mark++]=0x20; /* are set to " " */ + + if (MAX_ABBREVS + MAX_DYNAMIC_STRINGS != 96) + fatalerror("MAX_ABBREVS + MAX_DYNAMIC_STRINGS is not 96"); + + /* Initially all 96 entries are set to " ". (We store half of 0x40, + the address of the " " we wrote above.) */ + for (i=0; i<3*32; i++) + { p[mark++]=0; p[mark++]=0x20; } - for (i=0; i