(ccl-compile-if): Signal an error for invalid operator.
authorKenichi Handa <handa@m17n.org>
Mon, 16 Mar 2009 11:13:58 +0000 (11:13 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 16 Mar 2009 11:13:58 +0000 (11:13 +0000)
lisp/ChangeLog
lisp/international/ccl.el

index 0e91c48..0c9a16d 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-16  Kenichi Handa  <handa@m17n.org>
+
+       * international/ccl.el (ccl-compile-if): Signal an error for
+       invalid operator.
+
 2009-03-16  Chong Yidong  <cyd@stupidchicken.com>
 
        * minibuffer.el (read-file-name): Doc fix.
index 1d212af..c5088c8 100644 (file)
@@ -505,6 +505,8 @@ If READ-FLAG is non-nil, this statement has the form
            (op (get (nth 1 condition) 'ccl-arith-code))
            (arg (nth 2 condition)))
        (ccl-check-register rrr cmd)
+       (or (integerp op)
+           (error "CCL: invalid operator: %s" (nth 1 condition)))
        (if (integerp arg)
            (progn
              (ccl-embed-code (if read-flag 'read-jump-cond-expr-const