* edit.h: Don't define HAVE_SYNTAXH.
* syntax.c: Syntax highlighting is no more optional. (edit_check_spelling): Remove.
Этот коммит содержится в:
родитель
c63d61600a
Коммит
b628d515c0
@ -1,5 +1,9 @@
|
||||
2002-11-29 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit.h: Don't define HAVE_SYNTAXH.
|
||||
* syntax.c: Syntax highlighting is no more optional.
|
||||
(edit_check_spelling): Remove.
|
||||
|
||||
* editoptions.c (edit_options_dialog): Add "Save file position"
|
||||
option, make "Syntax highlighting" unconditional.
|
||||
|
||||
|
@ -2137,7 +2137,6 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion)
|
||||
edit->prev_col = edit_get_col (edit);
|
||||
edit->search_start = edit->curs1;
|
||||
edit_find_bracket (edit);
|
||||
edit_check_spelling (edit);
|
||||
return 1;
|
||||
}
|
||||
switch (command) {
|
||||
@ -2582,7 +2581,6 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion)
|
||||
edit->search_start = edit->curs1;
|
||||
edit->found_len = 0;
|
||||
edit_find_bracket (edit);
|
||||
edit_check_spelling (edit);
|
||||
return 1;
|
||||
break;
|
||||
default:
|
||||
@ -2591,7 +2589,6 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion)
|
||||
edit->search_start = edit->curs1;
|
||||
}
|
||||
edit_find_bracket (edit);
|
||||
edit_check_spelling (edit);
|
||||
|
||||
if (option_auto_para_formatting) {
|
||||
switch (command) {
|
||||
|
@ -23,8 +23,6 @@
|
||||
#ifndef __EDIT_H
|
||||
#define __EDIT_H
|
||||
|
||||
#define HAVE_SYNTAXH 1
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <sys/types.h>
|
||||
@ -275,7 +273,6 @@ void edit_split_filename (WEdit * edit, const char *name);
|
||||
void edit_load_syntax (WEdit * edit, char **names, char *type);
|
||||
void edit_free_syntax_rules (WEdit * edit);
|
||||
void edit_get_syntax_color (WEdit * edit, long byte_index, int *color);
|
||||
int edit_check_spelling (WEdit * edit);
|
||||
|
||||
|
||||
void book_mark_insert (WEdit * edit, int line, int c);
|
||||
|
@ -42,10 +42,7 @@
|
||||
|
||||
#define UNKNOWN_FORMAT "unknown"
|
||||
|
||||
#ifdef HAVE_SYNTAXH
|
||||
|
||||
int option_syntax_highlighting = 1;
|
||||
int option_auto_spellcheck = 1;
|
||||
|
||||
static inline void *syntax_malloc (size_t x)
|
||||
{
|
||||
@ -774,11 +771,6 @@ static int edit_read_syntax_rules (WEdit * edit, FILE * f)
|
||||
return result;
|
||||
}
|
||||
|
||||
int edit_check_spelling (WEdit * edit)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void edit_free_syntax_rules (WEdit * edit)
|
||||
{
|
||||
int i, j;
|
||||
@ -967,29 +959,3 @@ void edit_load_syntax (WEdit * edit, char **names, char *type)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int option_syntax_highlighting = 0;
|
||||
|
||||
void edit_load_syntax (WEdit * edit, char **names, char *type)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void edit_free_syntax_rules (WEdit * edit)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void edit_get_syntax_color (WEdit * edit, long byte_index, int *color)
|
||||
{
|
||||
*color = use_colors ? EDITOR_NORMAL_COLOR_INDEX : 0;
|
||||
}
|
||||
|
||||
int edit_check_spelling (WEdit * edit)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* HAVE_SYNTAXH */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user