X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Ftext.c;h=03d11301d6668ecb284aea2990b9d1f2ea6c892c;hb=refs%2Ftags%2Fv6.41;hp=525ecec6da03a40df06bc9b28d51f9b25bc28cbc;hpb=8e63120c630c94c598d4e2d6ba823dac59bce8fa;p=inform.git diff --git a/src/text.c b/src/text.c index 525ecec..03d1130 100644 --- a/src/text.c +++ b/src/text.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- */ /* "text" : Text translation, the abbreviations optimiser, the dictionary */ /* */ -/* Part of Inform 6.40 */ +/* Part of Inform 6.41 */ /* copyright (c) Graham Nelson 1993 - 2022 */ /* */ /* Inform is free software: you can redistribute it and/or modify */ @@ -224,6 +224,10 @@ static int try_abbreviations_from(unsigned char *text, int i, int from) extern void make_abbreviation(char *text) { + /* If -e mode is off, we won't waste space creating an abbreviation entry. */ + if (!economy_switch) + return; + ensure_memory_list_available(&abbreviations_memlist, no_abbreviations+1); ensure_memory_list_available(&abbreviations_at_memlist, no_abbreviations+1); @@ -2094,16 +2098,9 @@ static void recursively_sort(int node) } extern void sort_dictionary(void) -{ int i; - +{ final_dict_order = my_calloc(sizeof(int), dict_entries, "final dictionary ordering table"); - if (module_switch) - { for (i=0; i