2011-03-15 Paul Eggert <eggert@cs.ucla.edu>
+ * search.c (boyer_moore): Rename locals to avoid shadowing.
+ * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
+
* search.c (simple_search): Remove unused var.
* dired.c (compile_pattern): Move decl from here ...
if (STRING_MULTIBYTE (STRING)) \
{ \
unsigned char *ptr = &SDATA (STRING)[BYTEIDX]; \
- int len; \
+ int ptrlen; \
\
- OUTPUT = STRING_CHAR_AND_LENGTH (ptr, len); \
- BYTEIDX += len; \
+ OUTPUT = STRING_CHAR_AND_LENGTH (ptr, ptrlen); \
+ BYTEIDX += ptrlen; \
} \
else \
{ \
/* Setup translate_prev_byte1/2/3/4 from CHAR_BASE. Only a
byte following them are the target of translation. */
unsigned char str[MAX_MULTIBYTE_LENGTH];
- int len = CHAR_STRING (char_base, str);
+ int cblen = CHAR_STRING (char_base, str);
- translate_prev_byte1 = str[len - 2];
- if (len > 2)
+ translate_prev_byte1 = str[cblen - 2];
+ if (cblen > 2)
{
- translate_prev_byte2 = str[len - 3];
- if (len > 3)
+ translate_prev_byte2 = str[cblen - 3];
+ if (cblen > 3)
{
- translate_prev_byte3 = str[len - 4];
- if (len > 4)
- translate_prev_byte4 = str[len - 5];
+ translate_prev_byte3 = str[cblen - 4];
+ if (cblen > 4)
+ translate_prev_byte4 = str[cblen - 5];
}
}
}