(make-vector 6 0))
(defsubst notzerop (number)
+ (declare (obsolete "use `(not (zerop ...))'." "29.1"))
(not (zerop number)))
(defsubst alphabetp (char)
(aset hangul-queue 0 char))
((and (zerop (aref hangul-queue 1))
(zerop (aref hangul-queue 2))
- (notzerop (hangul-djamo 'cho (aref hangul-queue 0) char)))
+ (not (zerop (hangul-djamo 'cho (aref hangul-queue 0) char))))
(aset hangul-queue 1 char))
((and (zerop (aref hangul-queue 4))
- (notzerop (aref hangul-queue 2))
+ (not (zerop (aref hangul-queue 2)))
(/= char 8)
(/= char 19)
(/= char 25)
char)))
(aset hangul-queue 4 char))
((and (zerop (aref hangul-queue 5))
- (notzerop (hangul-djamo 'jong (aref hangul-queue 4) char))
+ (not (zerop (hangul-djamo 'jong (aref hangul-queue 4) char)))
(numberp
(hangul-character
(+ (aref hangul-queue 0)
(aset hangul-queue 2 char))
((and (zerop (aref hangul-queue 3))
(zerop (aref hangul-queue 4))
- (notzerop (hangul-djamo 'jung (aref hangul-queue 2) char)))
+ (not (zerop (hangul-djamo 'jung (aref hangul-queue 2) char))))
(aset hangul-queue 3 char)))
(hangul-insert-character hangul-queue)
(let ((next-char (vector 0 0 char 0 0 0)))
- (cond ((notzerop (aref hangul-queue 5))
+ (cond ((not (zerop (aref hangul-queue 5)))
(aset next-char 0 (aref hangul-queue 5))
(aset hangul-queue 5 0))
- ((notzerop (aref hangul-queue 4))
+ ((not (zerop (aref hangul-queue 4)))
(aset next-char 0 (aref hangul-queue 4))
(aset hangul-queue 4 0)))
(hangul-insert-character hangul-queue
(aset hangul-queue 0 char))
((and (zerop (aref hangul-queue 1))
(zerop (aref hangul-queue 2))
- (notzerop (hangul-djamo 'cho (aref hangul-queue 0) char)))
+ (not (zerop (hangul-djamo 'cho (aref hangul-queue 0) char))))
(aset hangul-queue 1 char)))
(hangul-insert-character hangul-queue)
(hangul-insert-character hangul-queue
(zerop (aref hangul-queue 4)))
(aset hangul-queue 2 char))
((and (zerop (aref hangul-queue 3))
- (notzerop (hangul-djamo 'jung (aref hangul-queue 2) char)))
+ (not (zerop (hangul-djamo 'jung (aref hangul-queue 2) char))))
(aset hangul-queue 3 char)))
(hangul-insert-character hangul-queue)
(hangul-insert-character hangul-queue
The Jongseong can be located in a Jongseong position.
Other parts are the same as a `hangul3-input-method-cho'."
(if (cond ((and (zerop (aref hangul-queue 4))
- (notzerop (aref hangul-queue 0))
- (notzerop (aref hangul-queue 2))
+ (not (zerop (aref hangul-queue 0)))
+ (not (zerop (aref hangul-queue 2)))
(numberp
(hangul-character
(+ (aref hangul-queue 0)
char)))
(aset hangul-queue 4 char))
((and (zerop (aref hangul-queue 5))
- (notzerop (hangul-djamo 'jong (aref hangul-queue 4) char))
+ (not (zerop (hangul-djamo 'jong (aref hangul-queue 4) char)))
(numberp
(hangul-character
(+ (aref hangul-queue 0)
(while (and (> i 0) (zerop (aref hangul-queue i)))
(setq i (1- i)))
(aset hangul-queue i 0))
- (if (notzerop (apply #'+ (append hangul-queue nil)))
+ (if (not (zerop (apply #'+ (append hangul-queue nil))))
(hangul-insert-character hangul-queue)
(delete-char -1)))