From: Paul Eggert Date: Sat, 19 Mar 2011 00:16:45 +0000 (-0700) Subject: * composite.c (composition_compute_stop_pos): Rename local to X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~513^2~45 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f5201aeebe612c1028a5912d81280b67b94039a;p=emacs.git * composite.c (composition_compute_stop_pos): Rename local to avoid shadowing. --- diff --git a/src/ChangeLog b/src/ChangeLog index b614091bdbb..1aa87aec661 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-03-19 Paul Eggert + + * composite.c (composition_compute_stop_pos): Rename local to + avoid shadowing. + 2011-03-18 Paul Eggert character.h: Rename locals to avoid shadowing. diff --git a/src/composite.c b/src/composite.c index 0b0602bf283..ddb0004b15b 100644 --- a/src/composite.c +++ b/src/composite.c @@ -1115,7 +1115,7 @@ composition_compute_stop_pos (struct composition_it *cmp_it, EMACS_INT charpos, if (! NILP (val)) { Lisp_Object elt; - int ridx, back, len; + int ridx, back, blen; for (ridx = 0; CONSP (val); val = XCDR (val), ridx++) { @@ -1132,17 +1132,17 @@ composition_compute_stop_pos (struct composition_it *cmp_it, EMACS_INT charpos, bpos = (NILP (string) ? CHAR_TO_BYTE (cpos) : string_char_to_byte (string, cpos)); if (STRINGP (AREF (elt, 0))) - len = fast_looking_at (AREF (elt, 0), cpos, bpos, - start + 1, limit, string); + blen = fast_looking_at (AREF (elt, 0), cpos, bpos, + start + 1, limit, string); else - len = 1; - if (len > 0) + blen = 1; + if (blen > 0) { /* Make CPOS point to the last character of - match. Note that LEN is byte-length. */ - if (len > 1) + match. Note that BLEN is byte-length. */ + if (blen > 1) { - bpos += len; + bpos += blen; if (NILP (string)) cpos = BYTE_TO_CHAR (bpos) - 1; else @@ -2032,4 +2032,3 @@ See also the documentation of `auto-composition-mode'. */); defsubr (&Sfind_composition_internal); defsubr (&Scomposition_get_gstring); } -