mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-20 18:29:19 +03:00
Added more const-ness to variables.
This commit is contained in:
parent
640f3a163c
commit
3dcf497216
@ -307,7 +307,7 @@ static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i,
|
|||||||
}
|
}
|
||||||
/* check to turn on a keyword */
|
/* check to turn on a keyword */
|
||||||
if (!_rule.keyword) {
|
if (!_rule.keyword) {
|
||||||
char *p;
|
const char *p;
|
||||||
p = (r = edit->rules[_rule.context])->keyword_first_chars;
|
p = (r = edit->rules[_rule.context])->keyword_first_chars;
|
||||||
if (p)
|
if (p)
|
||||||
while (*(p = xx_strchr ((unsigned char *) p + 1, c))) {
|
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 */
|
/* check again to turn on a keyword if the context switched */
|
||||||
if (contextchanged && !_rule.keyword) {
|
if (contextchanged && !_rule.keyword) {
|
||||||
char *p;
|
const char *p;
|
||||||
p = (r = edit->rules[_rule.context])->keyword_first_chars;
|
p = (r = edit->rules[_rule.context])->keyword_first_chars;
|
||||||
while (*(p = xx_strchr ((unsigned char *) p + 1, c))) {
|
while (*(p = xx_strchr ((unsigned char *) p + 1, c))) {
|
||||||
struct key_word *k;
|
struct key_word *k;
|
||||||
|
Loading…
Reference in New Issue
Block a user