aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2002-07-16 15:49:53 +0000
committerKen Raeburn2002-07-16 15:49:53 +0000
commit5d69fe10aec5b09b5b38de0434516e1e755148fc (patch)
treef7543f16c32364223e62eeef71e4b5d09ddab18d /src
parenta814cc69c6f2b7e64ea147c368c23bb513306903 (diff)
downloademacs-5d69fe10aec5b09b5b38de0434516e1e755148fc.tar.gz
emacs-5d69fe10aec5b09b5b38de0434516e1e755148fc.zip
* search.c (wordify): Use SDATA.
(Freplace_match): Use SREF.
Diffstat (limited to 'src')
-rw-r--r--src/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index 7ccdab568e1..9b33e9e8d02 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1994,7 +1994,7 @@ wordify (string)
1994 1994
1995 if (SYNTAX (c) == Sword) 1995 if (SYNTAX (c) == Sword)
1996 { 1996 {
1997 bcopy (&SREF (string, i_byte_orig), o, 1997 bcopy (SDATA (string) + i_byte_orig, o,
1998 i_byte - i_byte_orig); 1998 i_byte - i_byte_orig);
1999 o += i_byte - i_byte_orig; 1999 o += i_byte - i_byte_orig;
2000 } 2000 }
@@ -2471,7 +2471,7 @@ since only regular expressions have distinguished subexpressions. */)
2471 else 2471 else
2472 { 2472 {
2473 /* Note that we don't have to increment POS. */ 2473 /* Note that we don't have to increment POS. */
2474 c = SDATA (newtext)[pos_byte++]; 2474 c = SREF (newtext, pos_byte++);
2475 if (buf_multibyte) 2475 if (buf_multibyte)
2476 c = unibyte_char_to_multibyte (c); 2476 c = unibyte_char_to_multibyte (c);
2477 } 2477 }