1
1

(edit_read_syntax_rules): Eliminate c->single_char.

It's only written but never read.

* edit.h (struct context_rule): Comment out single_char field.
It is written once but never read.
Этот коммит содержится в:
Andrew V. Samoilov 2002-01-15 01:41:18 +00:00
родитель 3eea969c3b
Коммит e41f4c01e4
3 изменённых файлов: 8 добавлений и 0 удалений

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

@ -11,6 +11,10 @@
(edit_read_syntax_file): Use PATH_SEP_STR. (edit_read_syntax_file): Use PATH_SEP_STR.
(edit_load_syntax): Use syntax_g_free to release error_file_name. (edit_load_syntax): Use syntax_g_free to release error_file_name.
(edit_read_syntax_rules): Likewise. (edit_read_syntax_rules): Likewise.
Eliminate c->single_char. It's only written but never read.
* edit.h (struct context_rule): Comment out single_char field.
It is written once but never read.
2001-12-22 Andrew V. Samoilov <kai@cmail.ru> 2001-12-22 Andrew V. Samoilov <kai@cmail.ru>

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

@ -179,7 +179,9 @@ struct context_rule {
unsigned char first_right; unsigned char first_right;
char line_start_left; char line_start_left;
char line_start_right; char line_start_right;
#if 0
int single_char; int single_char;
#endif
int between_delimiters; int between_delimiters;
char *whole_word_chars_left; char *whole_word_chars_left;
char *whole_word_chars_right; char *whole_word_chars_right;

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

@ -691,7 +691,9 @@ static int edit_read_syntax_rules (WEdit * edit, FILE * f)
c->right = (char *) strdup (*a++); c->right = (char *) strdup (*a++);
c->first_left = *c->left; c->first_left = *c->left;
c->first_right = *c->right; c->first_right = *c->right;
#if 0
c->single_char = (strlen (c->right) == 1); c->single_char = (strlen (c->right) == 1);
#endif
} }
c->keyword = syntax_malloc (MAX_WORDS_PER_CONTEXT * sizeof (struct key_word *)); c->keyword = syntax_malloc (MAX_WORDS_PER_CONTEXT * sizeof (struct key_word *));
#if 0 #if 0