Ticket #1843: slow syntax highlighting engine in editor.

Initial step: some #include's arrangement.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2009-12-24 12:13:40 +00:00
parent e6dce1dcbc
commit 39ddea87ee
3 changed files with 16 additions and 16 deletions

View File

@ -41,15 +41,11 @@
#include "../src/global.h"
#include "edit-impl.h"
#include "editlock.h"
#include "edit-widget.h"
#include "../src/cmddef.h"
#include "../src/tty/color.h" /* EDITOR_NORMAL_COLOR */
#include "../src/tty/color.h"
#include "../src/tty/tty.h" /* attrset() */
#include "../src/tty/key.h" /* is_idle() */
#include "../src/skin/skin.h" /* mc_skin_color_get */
#include "../src/skin/skin.h" /* EDITOR_NORMAL_COLOR */
#include "../src/widget.h"
#include "../src/cmd.h" /* view_other_cmd() */
@ -60,6 +56,11 @@
#include "../src/charsets.h" /* get_codepage_id */
#include "../src/main.h" /* source_codepage */
#include "../src/learn.h" /* learn_keys */
#include "../src/cmddef.h"
#include "edit-impl.h"
#include "editlock.h"
#include "edit-widget.h"
#include "../vfs/vfs.h"

View File

@ -50,6 +50,10 @@
#include "../src/tty/tty.h"
#include "../src/tty/key.h" /* XCTRL */
#include "../src/mcconfig/mcconfig.h"
#include "../src/skin/skin.h"
#include "../src/history.h"
#include "../src/widget.h" /* listbox_new() */
#include "../src/layout.h" /* clr_scr() */
@ -59,15 +63,13 @@
#include "../src/charsets.h"
#include "../src/selcodepage.h"
#include "../src/strutil.h" /* utf string functions */
#include "../src/mcconfig/mcconfig.h"
#include "../src/skin/skin.h" /* mc_skin_color_get */
#include "../src/cmddef.h"
#include "../vfs/vfs.h"
#include "../edit/edit-impl.h"
#include "../edit/edit.h"
#include "../edit/editlock.h"
#include "../src/cmddef.h"
#include "../edit/edit-widget.h"
#include "../edit/editcmd_dialogs.h"
#include "../edit/etags.h"

View File

@ -48,20 +48,17 @@
#include "../src/global.h"
#include "edit-impl.h"
#include "edit-widget.h"
#include "../src/search/search.h" /* search engine */
#include "../src/skin/skin.h"
#include "edit-impl.h"
#include "edit-widget.h"
#include "../src/main.h" /* mc_home */
#include "../src/wtools.h" /* message() */
#include "../src/strutil.h" /* utf string functions */
#include "edit-impl.h"
#include "edit-widget.h"
/* bytes */
#define SYNTAX_MARKER_DENSITY 512