DavidKinder / Inform6

The latest version of the Inform 6 compiler, used for generating interactive fiction games.
http://inform-fiction.org/
Other
199 stars 32 forks source link

Remove limit on Abbreviate directive #258

Closed erkyrath closed 5 months ago

erkyrath commented 5 months ago

This is the first half of https://github.com/DavidKinder/Inform6/issues/257. The MAX_ABBREV_LENGTH constant still exists, but it now only applies to the abbrevation generator. The Abbreviate directive can accept abbreviations of any length.

This required changing the abbreviations_at array (allocated in chunks of MAX_ABBREV_LENGTH) to a new abbreviations_text array (allocated in chars). The abbreviation struct now has a value saying where in abbreviations_text to look.