1
1

Added more const-ness to variables.

Этот коммит содержится в:
Roland Illig 2004-08-16 17:53:07 +00:00
родитель 640f3a163c
Коммит 3dcf497216

Просмотреть файл

@ -307,7 +307,7 @@ static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i,
}
/* check to turn on a keyword */
if (!_rule.keyword) {
char *p;
const char *p;
p = (r = edit->rules[_rule.context])->keyword_first_chars;
if (p)
while (*(p = xx_strchr ((unsigned char *) p + 1, c))) {
@ -377,7 +377,7 @@ static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i,
}
/* check again to turn on a keyword if the context switched */
if (contextchanged && !_rule.keyword) {
char *p;
const char *p;
p = (r = edit->rules[_rule.context])->keyword_first_chars;
while (*(p = xx_strchr ((unsigned char *) p + 1, c))) {
struct key_word *k;