* coding.c (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 06:41:53 +0000 (23:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 06:41:53 +0000 (23:41 -0700)
commitd5efd1d1b54595db795d6fddb32404cc74923d77
tree23ea4fd384e74bebe571c176e13ecec3f07fa9d3
parentb25d760e185c85e190402eddd0d756ddc014a58c
* coding.c (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code

directly, rather than having caller test rule sign.  This avoids
some unnecessary tests.
* composite.h (COMPOSITION_ENCODE_RULE_VALID): New macro.
(COMPOSITION_ENCODE_RULE): Arguments now must be valid.  This
affects only one use, in DECODE_COMPOSITION_RULE, which is changed.
src/ChangeLog
src/coding.c
src/composite.h