diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-06 17:31:29 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-06 17:31:29 -0800 |
commit | a7e979a44ee01dcca3e5081fe672427395494aa0 (patch) | |
tree | a420af9b25a03e0a2f61c6a014394cb0d1408c63 /src/search.c | |
parent | 47ce90e4950290d784889b6b33a2b1fa090f0acf (diff) | |
download | emacs-a7e979a44ee01dcca3e5081fe672427395494aa0.tar.gz |
* search.c: conform to C89 pointer rules
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/search.c b/src/search.c index c0f8d8067e6..09dae0ed0f5 100644 --- a/src/search.c +++ b/src/search.c @@ -2705,7 +2705,7 @@ since only regular expressions have distinguished subexpressions. */) idx = c - '0'; } else if (c == '\\') - add_len = 1, add_stuff = "\\"; + add_len = 1, add_stuff = (unsigned char *) "\\"; else { xfree (substed); @@ -2755,10 +2755,11 @@ since only regular expressions have distinguished subexpressions. */) EMACS_INT nchars = multibyte_chars_in_text (substed, substed_len); - newtext = make_multibyte_string (substed, nchars, substed_len); + newtext = make_multibyte_string ((char *) substed, nchars, + substed_len); } else - newtext = make_unibyte_string (substed, substed_len); + newtext = make_unibyte_string ((char *) substed, substed_len); } xfree (substed); } @@ -3145,17 +3146,17 @@ DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0, doc: /* Return a regexp string which matches exactly STRING and nothing else. */) (Lisp_Object string) { - register unsigned char *in, *out, *end; - register unsigned char *temp; + register char *in, *out, *end; + register char *temp; int backslashes_added = 0; CHECK_STRING (string); - temp = (unsigned char *) alloca (SBYTES (string) * 2); + temp = (char *) alloca (SBYTES (string) * 2); /* Now copy the data into the new string, inserting escapes. */ - in = SDATA (string); + in = SSDATA (string); end = in + SBYTES (string); out = temp; |