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

Singular flag for dict words #270

Closed erkyrath closed 4 months ago

erkyrath commented 4 months ago

Covers https://github.com/DavidKinder/Inform6/issues/267 .

The effective part of this change is just a few lines. It's the if (DICT_IMPLICIT_SINGULAR) stanza in text.c. Plus checks for the explicit //s and //~s flags in dictionary_prepare_z/g().

I took the opportunity to #define constants for all the dict flags, rather than using integer literals all over. See header.h.

Test cases added to https://github.com/erkyrath/Inform6-Testing/blob/singular/src/dictnewflagtest.inf .