Return 1 if well flanked by an excited (not next excited) confluent state, else returns 0. */
| 5409 | /* Return 1 if well flanked by an excited (not next excited) confluent state, |
| 5410 | else returns 0. */ |
| 5411 | int wce(Byte state, Byte right, Byte up, Byte left, Byte down) |
| 5412 | { |
| 5413 | state &= DM; |
| 5414 | return ( |
| 5415 | (((right == C10) || (right == C11)) && |
| 5416 | (state != RD)) || |
| 5417 | (((up == C10) || (up == C11)) && |
| 5418 | (state != UD)) || |
| 5419 | (((left == C10) || (left == C11)) && |
| 5420 | (state != LD)) || |
| 5421 | (((down == C10) || (down == C11)) && |
| 5422 | (state != DD)) |
| 5423 | ); |
| 5424 | } |
| 5425 | |
| 5426 | |
| 5427 | /* Return excited confluent state. */ |