From e5560ff7d28c684003ed598a9390e17f9fb92d34 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 16 Jun 2012 14:24:15 +0200 Subject: [PATCH] * buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline. (BUF_FETCH_MULTIBYTE_CHAR): Likewise. * character.c (_fetch_multibyte_char_p): Remove. * alloc.c: Include "character.h" before "buffer.h". * bidi.c: Likewise. * buffer.c: Likewise. * bytecode.c: Likewise. * callint.c: Likewise. * callproc.c: Likewise. * casefiddle.c: Likewise. * casetab.c: Likewise. * category.c: Likewise. * cmds.c: Likewise. * coding.c: Likewise. * composite.c: Likewise. * dired.c: Likewise. * dispnew.c: Likewise. * doc.c: Likewise. * dosfns.c: Likewise. * editfns.c: Likewise. * emacs.c: Likewise. * fileio.c: Likewise. * filelock.c: Likewise. * font.c: Likewise. * fontset.c: Likewise. * fringe.c: Likewise. * indent.c: Likewise. * insdel.c: Likewise. * intervals.c: Likewise. * keyboard.c: Likewise. * keymap.c: Likewise. * lread.c: Likewise. * macros.c: Likewise. * marker.c: Likewise. * minibuf.c: Likewise. * nsfns.m: Likewise. * nsmenu.m: Likewise. * print.c: Likewise. * process.c: Likewise. * regex.c: Likewise. * region-cache.c: Likewise. * search.c: Likewise. * syntax.c: Likewise. * term.c: Likewise. * textprop.c: Likewise. * undo.c: Likewise. * unexsol.c: Likewise. * w16select.c: Likewise. * w32fns.c: Likewise. * w32menu.c: Likewise. * window.c: Likewise. * xdisp.c: Likewise. * xfns.c: Likewise. * xmenu.c: Likewise. * xml.c: Likewise. * xselect.c: Likewise. --- src/ChangeLog | 59 +++++++++++++++++++++++++++++++++++++++++ src/alloc.c | 2 +- src/bidi.c | 2 +- src/buffer.c | 2 +- src/buffer.h | 66 ++++++++++++++++++++++++---------------------- src/bytecode.c | 2 +- src/callint.c | 2 +- src/callproc.c | 2 +- src/casefiddle.c | 2 +- src/casetab.c | 2 +- src/category.c | 2 +- src/character.c | 3 --- src/cmds.c | 2 +- src/coding.c | 2 +- src/composite.c | 2 +- src/dired.c | 2 +- src/dispnew.c | 2 +- src/doc.c | 2 +- src/dosfns.c | 2 +- src/editfns.c | 2 +- src/emacs.c | 1 + src/fileio.c | 2 +- src/filelock.c | 2 +- src/font.c | 2 +- src/fontset.c | 2 +- src/fringe.c | 1 + src/indent.c | 2 +- src/insdel.c | 2 +- src/intervals.c | 1 + src/keyboard.c | 2 +- src/keymap.c | 2 +- src/lread.c | 2 +- src/macros.c | 1 + src/marker.c | 2 +- src/minibuf.c | 1 + src/nsfns.m | 2 +- src/nsmenu.m | 1 + src/print.c | 2 +- src/process.c | 2 +- src/regex.c | 2 +- src/region-cache.c | 1 + src/search.c | 2 +- src/syntax.c | 2 +- src/term.c | 2 +- src/textprop.c | 1 + src/undo.c | 1 + src/unexsol.c | 1 + src/w16select.c | 2 +- src/w32fns.c | 2 +- src/w32menu.c | 1 + src/window.c | 1 + src/xdisp.c | 2 +- src/xfns.c | 2 +- src/xmenu.c | 1 + src/xml.c | 1 + src/xselect.c | 2 +- 56 files changed, 146 insertions(+), 74 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 61a2b3d78f..ec92eadaa3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,62 @@ +2012-06-16 Andreas Schwab + + * buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline. + (BUF_FETCH_MULTIBYTE_CHAR): Likewise. + * character.c (_fetch_multibyte_char_p): Remove. + * alloc.c: Include "character.h" before "buffer.h". + * bidi.c: Likewise. + * buffer.c: Likewise. + * bytecode.c: Likewise. + * callint.c: Likewise. + * callproc.c: Likewise. + * casefiddle.c: Likewise. + * casetab.c: Likewise. + * category.c: Likewise. + * cmds.c: Likewise. + * coding.c: Likewise. + * composite.c: Likewise. + * dired.c: Likewise. + * dispnew.c: Likewise. + * doc.c: Likewise. + * dosfns.c: Likewise. + * editfns.c: Likewise. + * emacs.c: Likewise. + * fileio.c: Likewise. + * filelock.c: Likewise. + * font.c: Likewise. + * fontset.c: Likewise. + * fringe.c: Likewise. + * indent.c: Likewise. + * insdel.c: Likewise. + * intervals.c: Likewise. + * keyboard.c: Likewise. + * keymap.c: Likewise. + * lread.c: Likewise. + * macros.c: Likewise. + * marker.c: Likewise. + * minibuf.c: Likewise. + * nsfns.m: Likewise. + * nsmenu.m: Likewise. + * print.c: Likewise. + * process.c: Likewise. + * regex.c: Likewise. + * region-cache.c: Likewise. + * search.c: Likewise. + * syntax.c: Likewise. + * term.c: Likewise. + * textprop.c: Likewise. + * undo.c: Likewise. + * unexsol.c: Likewise. + * w16select.c: Likewise. + * w32fns.c: Likewise. + * w32menu.c: Likewise. + * window.c: Likewise. + * xdisp.c: Likewise. + * xfns.c: Likewise. + * xmenu.c: Likewise. + * xml.c: Likewise. + * xselect.c: Likewise. + 2012-06-16 Eli Zaretskii * xdisp.c (set_cursor_from_row): Don't dereference glyphs_end. If diff --git a/src/alloc.c b/src/alloc.c index 1478ce9ae4..5c6297faae 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -38,12 +38,12 @@ along with GNU Emacs. If not, see . */ #include "process.h" #include "intervals.h" #include "puresize.h" +#include "character.h" #include "buffer.h" #include "window.h" #include "keyboard.h" #include "frame.h" #include "blockinput.h" -#include "character.h" #include "syssignal.h" #include "termhooks.h" /* For struct terminal. */ #include diff --git a/src/bidi.c b/src/bidi.c index 7a716d3f0b..675e2028d9 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -59,8 +59,8 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "dispextern.h" static int bidi_initialized = 0; diff --git a/src/buffer.c b/src/buffer.c index 504d477494..c8cbaa2569 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -33,8 +33,8 @@ along with GNU Emacs. If not, see . */ #include "intervals.h" #include "window.h" #include "commands.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "region-cache.h" #include "indent.h" #include "blockinput.h" diff --git a/src/buffer.h b/src/buffer.h index 3aa4b11c45..8e0604e90c 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -355,28 +355,6 @@ while (0) #define FETCH_BYTE(n) *(BYTE_POS_ADDR ((n))) -/* Variables used locally in FETCH_MULTIBYTE_CHAR. */ -extern unsigned char *_fetch_multibyte_char_p; - -/* Return character code of multi-byte form at byte position POS. If POS - doesn't point the head of valid multi-byte form, only the byte at - POS is returned. No range checking. - - WARNING: The character returned by this macro could be "unified" - inside STRING_CHAR, if the original character in the buffer belongs - to one of the Private Use Areas (PUAs) of codepoints that Emacs - uses to support non-unified CJK characters. If that happens, - CHAR_BYTES will return a value that is different from the length of - the original multibyte sequence stored in the buffer. Therefore, - do _not_ use FETCH_MULTIBYTE_CHAR if you need to advance through - the buffer to the next character after fetching this one. Instead, - use either FETCH_CHAR_ADVANCE or STRING_CHAR_AND_LENGTH. */ - -#define FETCH_MULTIBYTE_CHAR(pos) \ - (_fetch_multibyte_char_p = (((pos) >= GPT_BYTE ? GAP_SIZE : 0) \ - + (pos) + BEG_ADDR - BEG_BYTE), \ - STRING_CHAR (_fetch_multibyte_char_p)) - /* Return character at byte position POS. If the current buffer is unibyte and the character is not ASCII, make the returning character multibyte. */ @@ -425,16 +403,6 @@ extern unsigned char *_fetch_multibyte_char_p; #define BUF_FETCH_BYTE(buf, n) \ *(BUF_BYTE_ADDRESS ((buf), (n))) - -/* Return character code of multi-byte form at byte position POS in BUF. - If POS doesn't point the head of valid multi-byte form, only the byte at - POS is returned. No range checking. */ - -#define BUF_FETCH_MULTIBYTE_CHAR(buf, pos) \ - (_fetch_multibyte_char_p \ - = (((pos) >= BUF_GPT_BYTE (buf) ? BUF_GAP_SIZE (buf) : 0) \ - + (pos) + BUF_BEG_ADDR (buf) - BEG_BYTE), \ - STRING_CHAR (_fetch_multibyte_char_p)) /* Define the actual buffer data structures. */ @@ -945,7 +913,41 @@ EXFUN (Fbuffer_local_value, 2); extern Lisp_Object Qbefore_change_functions; extern Lisp_Object Qafter_change_functions; extern Lisp_Object Qfirst_change_hook; + +/* Return character code of multi-byte form at byte position POS. If POS + doesn't point the head of valid multi-byte form, only the byte at + POS is returned. No range checking. + + WARNING: The character returned by this macro could be "unified" + inside STRING_CHAR, if the original character in the buffer belongs + to one of the Private Use Areas (PUAs) of codepoints that Emacs + uses to support non-unified CJK characters. If that happens, + CHAR_BYTES will return a value that is different from the length of + the original multibyte sequence stored in the buffer. Therefore, + do _not_ use FETCH_MULTIBYTE_CHAR if you need to advance through + the buffer to the next character after fetching this one. Instead, + use either FETCH_CHAR_ADVANCE or STRING_CHAR_AND_LENGTH. */ +static inline int +FETCH_MULTIBYTE_CHAR (ptrdiff_t pos) +{ + unsigned char *p = ((pos >= GPT_BYTE ? GAP_SIZE : 0) + + pos + BEG_ADDR - BEG_BYTE); + return STRING_CHAR (p); +} + +/* Return character code of multi-byte form at byte position POS in BUF. + If POS doesn't point the head of valid multi-byte form, only the byte at + POS is returned. No range checking. */ + +static inline int +BUF_FETCH_MULTIBYTE_CHAR (struct buffer *buf, ptrdiff_t pos) +{ + unsigned char *p + = ((pos >= BUF_GPT_BYTE (buf) ? BUF_GAP_SIZE (buf) : 0) + + pos + BUF_BEG_ADDR (buf) - BEG_BYTE); + return STRING_CHAR (p); +} /* Overlays */ diff --git a/src/bytecode.c b/src/bytecode.c index e2370254f3..2e6ee3d444 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -35,8 +35,8 @@ by Hallvard: #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "syntax.h" #include "window.h" diff --git a/src/callint.c b/src/callint.c index bfa981ec65..e5ff99714c 100644 --- a/src/callint.c +++ b/src/callint.c @@ -22,12 +22,12 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "commands.h" #include "keyboard.h" #include "window.h" #include "keymap.h" -#include "character.h" Lisp_Object Qminus, Qplus; Lisp_Object Qcall_interactively; diff --git a/src/callproc.c b/src/callproc.c index 976d3061c8..804af1e9ab 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -44,8 +44,8 @@ along with GNU Emacs. If not, see . */ #endif /* MSDOS */ #include "commands.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "ccl.h" #include "coding.h" #include "composite.h" diff --git a/src/casefiddle.c b/src/casefiddle.c index 278806b303..19fbc83228 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c @@ -21,8 +21,8 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "commands.h" #include "syntax.h" #include "composite.h" diff --git a/src/casetab.c b/src/casetab.c index c28f0c08d5..86dbca4d02 100644 --- a/src/casetab.c +++ b/src/casetab.c @@ -21,8 +21,8 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" static Lisp_Object Qcase_table_p, Qcase_table; Lisp_Object Vascii_downcase_table; diff --git a/src/category.c b/src/category.c index 5cb3020a2d..7d0f72d284 100644 --- a/src/category.c +++ b/src/category.c @@ -32,8 +32,8 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "category.h" #include "keymap.h" diff --git a/src/character.c b/src/character.c index b85cedad93..fbd23409d0 100644 --- a/src/character.c +++ b/src/character.c @@ -57,9 +57,6 @@ static Lisp_Object Qauto_fill_chars; Unicode character. Mainly used by the macro MAYBE_UNIFY_CHAR. */ Lisp_Object Vchar_unify_table; -/* Variable used locally in the macro FETCH_MULTIBYTE_CHAR. */ -unsigned char *_fetch_multibyte_char_p; - static Lisp_Object Qchar_script_table; diff --git a/src/cmds.c b/src/cmds.c index 225c26b082..d617c7f81d 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -22,8 +22,8 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" #include "commands.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "syntax.h" #include "window.h" #include "keyboard.h" diff --git a/src/coding.c b/src/coding.c index 17e342298b..ab13f0311c 100644 --- a/src/coding.c +++ b/src/coding.c @@ -288,8 +288,8 @@ encode_coding_XXX (struct coding_system *coding) #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "ccl.h" #include "composite.h" diff --git a/src/composite.c b/src/composite.c index 50aca156ba..6070e4070f 100644 --- a/src/composite.c +++ b/src/composite.c @@ -25,8 +25,8 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "coding.h" #include "intervals.h" #include "window.h" diff --git a/src/dired.c b/src/dired.c index 38dfa23c1b..1ce236d567 100644 --- a/src/dired.c +++ b/src/dired.c @@ -71,9 +71,9 @@ extern struct direct *readdir (DIR *); #include "lisp.h" #include "systime.h" +#include "character.h" #include "buffer.h" #include "commands.h" -#include "character.h" #include "charset.h" #include "coding.h" #include "regex.h" diff --git a/src/dispnew.c b/src/dispnew.c index a23f2b9a95..ad675f6e09 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -30,8 +30,8 @@ along with GNU Emacs. If not, see . */ /* cm.h must come after dispextern.h on Windows. */ #include "dispextern.h" #include "cm.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "keyboard.h" #include "frame.h" #include "termhooks.h" diff --git a/src/doc.c b/src/doc.c index cd23d9266a..223741c3bf 100644 --- a/src/doc.c +++ b/src/doc.c @@ -28,9 +28,9 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "keyboard.h" -#include "character.h" #include "keymap.h" #include "buildobj.h" diff --git a/src/dosfns.c b/src/dosfns.c index d4b96e9df9..e8c0187172 100644 --- a/src/dosfns.c +++ b/src/dosfns.c @@ -26,6 +26,7 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "termchar.h" #include "frame.h" @@ -35,7 +36,6 @@ along with GNU Emacs. If not, see . */ #include "dosfns.h" #include "msdos.h" #include "dispextern.h" -#include "character.h" #include "coding.h" #include "process.h" #include diff --git a/src/editfns.c b/src/editfns.c index 8f7b2aee76..1fb20b07e7 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -52,8 +52,8 @@ along with GNU Emacs. If not, see . */ #include #include "intervals.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "coding.h" #include "frame.h" #include "window.h" diff --git a/src/emacs.c b/src/emacs.c index 1d58d25ebf..8ffbb573f5 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -45,6 +45,7 @@ along with GNU Emacs. If not, see . */ #include "commands.h" #include "intervals.h" +#include "character.h" #include "buffer.h" #include "window.h" diff --git a/src/fileio.c b/src/fileio.c index 496f9d7efa..388ae84b6f 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -40,8 +40,8 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "intervals.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "coding.h" #include "window.h" #include "blockinput.h" diff --git a/src/filelock.c b/src/filelock.c index d8914c7332..a0ac154a0d 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -40,8 +40,8 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "coding.h" #include "systime.h" diff --git a/src/font.c b/src/font.c index 16d09af01b..dbea3a3ca3 100644 --- a/src/font.c +++ b/src/font.c @@ -27,12 +27,12 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "frame.h" #include "window.h" #include "dispextern.h" #include "charset.h" -#include "character.h" #include "composite.h" #include "fontset.h" #include "font.h" diff --git a/src/fontset.c b/src/fontset.c index b2c7249625..1d704a5900 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -32,8 +32,8 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "blockinput.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "ccl.h" #include "keyboard.h" diff --git a/src/fringe.c b/src/fringe.c index 39f7e8dbb5..0224ea73e3 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -24,6 +24,7 @@ along with GNU Emacs. If not, see . */ #include "frame.h" #include "window.h" #include "dispextern.h" +#include "character.h" #include "buffer.h" #include "blockinput.h" #include "termhooks.h" diff --git a/src/indent.c b/src/indent.c index 32533438e2..88cc0ab479 100644 --- a/src/indent.c +++ b/src/indent.c @@ -22,8 +22,8 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "category.h" #include "composite.h" #include "indent.h" diff --git a/src/insdel.c b/src/insdel.c index 148ba22194..060f83f7a2 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -25,8 +25,8 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "intervals.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "window.h" #include "blockinput.h" #include "region-cache.h" diff --git a/src/intervals.c b/src/intervals.c index 0b332caf89..2c652cd9ad 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -42,6 +42,7 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" #include "intervals.h" +#include "character.h" #include "buffer.h" #include "puresize.h" #include "keyboard.h" diff --git a/src/keyboard.c b/src/keyboard.c index 093e33ec67..c0b2ba2f46 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -30,8 +30,8 @@ along with GNU Emacs. If not, see . */ #include "keyboard.h" #include "window.h" #include "commands.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "disptab.h" #include "dispextern.h" #include "syntax.h" diff --git a/src/keymap.c b/src/keymap.c index 2f5558c171..6c59a4a78d 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -43,8 +43,8 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" #include "commands.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "keyboard.h" #include "frame.h" diff --git a/src/lread.c b/src/lread.c index 8a9088b8ed..a6d77204cf 100644 --- a/src/lread.c +++ b/src/lread.c @@ -28,8 +28,8 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" #include "intervals.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "coding.h" #include diff --git a/src/macros.c b/src/macros.c index 0db7e63d62..7c8bc4c13b 100644 --- a/src/macros.c +++ b/src/macros.c @@ -23,6 +23,7 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "macros.h" #include "commands.h" +#include "character.h" #include "buffer.h" #include "window.h" #include "keyboard.h" diff --git a/src/marker.c b/src/marker.c index 3795349445..2c09b8e19a 100644 --- a/src/marker.c +++ b/src/marker.c @@ -20,8 +20,8 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" /* Record one cached position found recently by buf_charpos_to_bytepos or buf_bytepos_to_charpos. */ diff --git a/src/minibuf.c b/src/minibuf.c index d921e80be4..bed9bb39d3 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -25,6 +25,7 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "commands.h" +#include "character.h" #include "buffer.h" #include "dispextern.h" #include "keyboard.h" diff --git a/src/nsfns.m b/src/nsfns.m index 5cea73c39c..113fff394c 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -38,11 +38,11 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) #include "blockinput.h" #include "nsterm.h" #include "window.h" +#include "character.h" #include "buffer.h" #include "keyboard.h" #include "termhooks.h" #include "fontset.h" -#include "character.h" #include "font.h" #if 0 diff --git a/src/nsmenu.m b/src/nsmenu.m index 4bfe0cc003..1f86417b53 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -28,6 +28,7 @@ Carbon version by Yamamoto Mitsuharu. */ #include "lisp.h" #include "window.h" +#include "character.h" #include "buffer.h" #include "keymap.h" #include "coding.h" diff --git a/src/print.c b/src/print.c index 2158d06dbc..a388832b07 100644 --- a/src/print.c +++ b/src/print.c @@ -23,8 +23,8 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "keyboard.h" #include "frame.h" diff --git a/src/process.c b/src/process.c index 4d59ff0d45..6e454db6b4 100644 --- a/src/process.c +++ b/src/process.c @@ -93,8 +93,8 @@ along with GNU Emacs. If not, see . */ #include "systty.h" #include "window.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "coding.h" #include "process.h" #include "frame.h" diff --git a/src/regex.c b/src/regex.c index 0dd3a18789..7ef53c606c 100644 --- a/src/regex.c +++ b/src/regex.c @@ -130,13 +130,13 @@ # include # include "lisp.h" +# include "character.h" # include "buffer.h" /* Make syntax table lookup grant data in gl_state. */ # define SYNTAX_ENTRY_VIA_PROPERTY # include "syntax.h" -# include "character.h" # include "category.h" # ifdef malloc diff --git a/src/region-cache.c b/src/region-cache.c index 9f4e592187..2642e82468 100644 --- a/src/region-cache.c +++ b/src/region-cache.c @@ -24,6 +24,7 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "region-cache.h" diff --git a/src/search.c b/src/search.c index 99519b839e..71ab60d9f8 100644 --- a/src/search.c +++ b/src/search.c @@ -24,8 +24,8 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "syntax.h" #include "category.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "region-cache.h" #include "commands.h" diff --git a/src/syntax.c b/src/syntax.c index 71da13e7a6..0518a47f92 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -25,8 +25,8 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" #include "commands.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "keymap.h" #include "regex.h" diff --git a/src/term.c b/src/term.c index 8ce2efc092..3a41552c02 100644 --- a/src/term.c +++ b/src/term.c @@ -32,8 +32,8 @@ along with GNU Emacs. If not, see . */ #include "termchar.h" #include "termopts.h" #include "tparam.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "coding.h" #include "composite.h" diff --git a/src/textprop.c b/src/textprop.c index 83d07c56f2..afeb0339d5 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -20,6 +20,7 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" #include "intervals.h" +#include "character.h" #include "buffer.h" #include "window.h" diff --git a/src/undo.c b/src/undo.c index 9b763984d7..1cb048690b 100644 --- a/src/undo.c +++ b/src/undo.c @@ -20,6 +20,7 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "commands.h" #include "window.h" diff --git a/src/unexsol.c b/src/unexsol.c index ef1e34e6f0..336f3b4fae 100644 --- a/src/unexsol.c +++ b/src/unexsol.c @@ -7,6 +7,7 @@ #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "charset.h" #include "coding.h" diff --git a/src/w16select.c b/src/w16select.c index 03f63bedf0..270118358b 100644 --- a/src/w16select.c +++ b/src/w16select.c @@ -36,8 +36,8 @@ along with GNU Emacs. If not, see . */ #include "dispextern.h" /* frame.h seems to want this */ #include "frame.h" /* Need this to get the X window of selected_frame */ #include "blockinput.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "coding.h" #include "composite.h" diff --git a/src/w32fns.c b/src/w32fns.c index a8becea1b7..915114138d 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -32,13 +32,13 @@ along with GNU Emacs. If not, see . */ #include "w32term.h" #include "frame.h" #include "window.h" +#include "character.h" #include "buffer.h" #include "intervals.h" #include "dispextern.h" #include "keyboard.h" #include "blockinput.h" #include "epaths.h" -#include "character.h" #include "charset.h" #include "coding.h" #include "ccl.h" diff --git a/src/w32menu.c b/src/w32menu.c index f5f5c6656c..b957da6756 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -31,6 +31,7 @@ along with GNU Emacs. If not, see . */ #include "termhooks.h" #include "window.h" #include "blockinput.h" +#include "character.h" #include "buffer.h" #include "charset.h" #include "coding.h" diff --git a/src/window.c b/src/window.c index a3461cef90..8cdfff04fb 100644 --- a/src/window.c +++ b/src/window.c @@ -23,6 +23,7 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" +#include "character.h" #include "buffer.h" #include "keyboard.h" #include "keymap.h" diff --git a/src/xdisp.c b/src/xdisp.c index 04baeea970..cd5f03d34a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -281,8 +281,8 @@ along with GNU Emacs. If not, see . */ #include "window.h" #include "termchar.h" #include "dispextern.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "indent.h" #include "commands.h" diff --git a/src/xfns.c b/src/xfns.c index 43ccdfaef1..d49f0ea145 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -32,13 +32,13 @@ along with GNU Emacs. If not, see . */ #include "xterm.h" #include "frame.h" #include "window.h" +#include "character.h" #include "buffer.h" #include "intervals.h" #include "dispextern.h" #include "keyboard.h" #include "blockinput.h" #include -#include "character.h" #include "charset.h" #include "coding.h" #include "fontset.h" diff --git a/src/xmenu.c b/src/xmenu.c index 79ead5f598..dc98b98027 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -47,6 +47,7 @@ along with GNU Emacs. If not, see . */ #include "termhooks.h" #include "window.h" #include "blockinput.h" +#include "character.h" #include "buffer.h" #include "charset.h" #include "coding.h" diff --git a/src/xml.c b/src/xml.c index e462a1adf5..7bc6130b8b 100644 --- a/src/xml.c +++ b/src/xml.c @@ -26,6 +26,7 @@ along with GNU Emacs. If not, see . */ #include #include "lisp.h" +#include "character.h" #include "buffer.h" diff --git a/src/xselect.c b/src/xselect.c index 48baeb3258..f1eda5d7c8 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -35,11 +35,11 @@ along with GNU Emacs. If not, see . */ #include "dispextern.h" /* frame.h seems to want this */ #include "frame.h" /* Need this to get the X window of selected_frame */ #include "blockinput.h" +#include "character.h" #include "buffer.h" #include "process.h" #include "termhooks.h" #include "keyboard.h" -#include "character.h" #include -- 2.20.1