Use the place of articulation constants to specify the place-based conditions.

This commit is contained in:
Reece H. Dunn
2017-01-29 00:29:17 +00:00
parent 01e289c3d7
commit 5d2e2a2f8f
3 changed files with 4 additions and 9 deletions
+1 -4
View File
@@ -631,13 +631,10 @@ static bool InterpretCondition(Translator *tr, int control, PHONEME_LIST *plist,
switch (instn & 0xe0)
{
case CONDITION_IS_PHONEME_TYPE:
// phoneme type, vowel, nasal, fricative, etc
return ph->type == data;
case 0x20:
// place of articulation
case CONDITION_IS_PLACE_OF_ARTICULATION:
return ((ph->phflags >> 16) & 0xf) == data;
case CONDITION_IS_PHFLAG_SET:
// is a bit set in phoneme flags
return (ph->phflags & (1 << data)) != 0;
case 0x80:
switch (data)