aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-03-01 01:46:49 +0000
committerKenichi Handa2002-03-01 01:46:49 +0000
commit76eb08813630dd6ebc21674ae8c820b0a926250a (patch)
tree3da4281ef1fccb25ba312e4b0fb88834b8cfe4f0 /src
parent9117d724bbbbf01bd039d891910f7a8ee79081a1 (diff)
downloademacs-76eb08813630dd6ebc21674ae8c820b0a926250a.tar.gz
emacs-76eb08813630dd6ebc21674ae8c820b0a926250a.zip
Include "character.h" instead of "charset.h".
(search_buffer, boyer_moore): Adjusted for the new multibyte form. (Freplace_match): Adjusted for the change of multibyte_char_to_unibyte.
Diffstat (limited to 'src')
-rw-r--r--src/search.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/search.c b/src/search.c
index 722af7afa43..746463fe0a1 100644
--- a/src/search.c
+++ b/src/search.c
@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */
24#include "syntax.h" 24#include "syntax.h"
25#include "category.h" 25#include "category.h"
26#include "buffer.h" 26#include "buffer.h"
27#include "charset.h" 27#include "character.h"
28#include "region-cache.h" 28#include "region-cache.h"
29#include "commands.h" 29#include "commands.h"
30#include "blockinput.h" 30#include "blockinput.h"
@@ -1228,7 +1228,7 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
1228 { 1228 {
1229 /* Keep track of which character set row 1229 /* Keep track of which character set row
1230 contains the characters that need translation. */ 1230 contains the characters that need translation. */
1231 int charset_base_code = c & ~CHAR_FIELD3_MASK; 1231 int charset_base_code = c & ~0x3F;
1232 if (charset_base == -1) 1232 if (charset_base == -1)
1233 charset_base = charset_base_code; 1233 charset_base = charset_base_code;
1234 else if (charset_base != charset_base_code) 1234 else if (charset_base != charset_base_code)
@@ -1615,7 +1615,7 @@ boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt,
1615 while (! CHAR_HEAD_P (*charstart)) 1615 while (! CHAR_HEAD_P (*charstart))
1616 charstart--; 1616 charstart--;
1617 untranslated = STRING_CHAR (charstart, ptr - charstart + 1); 1617 untranslated = STRING_CHAR (charstart, ptr - charstart + 1);
1618 if (charset_base == (untranslated & ~CHAR_FIELD3_MASK)) 1618 if (charset_base == (untranslated & ~0x3F))
1619 { 1619 {
1620 TRANSLATE (ch, trt, untranslated); 1620 TRANSLATE (ch, trt, untranslated);
1621 if (! CHAR_HEAD_P (*ptr)) 1621 if (! CHAR_HEAD_P (*ptr))
@@ -2435,10 +2435,7 @@ since only regular expressions have distinguished subexpressions. */)
2435 Lisp_Object rev_tbl; 2435 Lisp_Object rev_tbl;
2436 int really_changed = 0; 2436 int really_changed = 0;
2437 2437
2438 rev_tbl= (!buf_multibyte && CHAR_TABLE_P (Vnonascii_translation_table) 2438 rev_tbl= Qnil;
2439 ? Fchar_table_extra_slot (Vnonascii_translation_table,
2440 make_number (0))
2441 : Qnil);
2442 2439
2443 substed_alloc_size = length * 2 + 100; 2440 substed_alloc_size = length * 2 + 100;
2444 substed = (unsigned char *) xmalloc (substed_alloc_size + 1); 2441 substed = (unsigned char *) xmalloc (substed_alloc_size + 1);