Commit 47ce90e4 authored by Paul Eggert's avatar Paul Eggert
Browse files

* casefiddle.c: conform to C89 pointer rules

parent 4f043d0f
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* dired.c (scmp, file_name_completion): * dired.c (scmp, file_name_completion):
Change types between char * and unsigned char *, to satisfy C89 Change types between char * and unsigned char *, to satisfy C89
rules about pointer type compatibility. rules about pointer type compatibility.
* casefiddle.c (casify_object, casify_region): Likewise.
   
2011-02-06 Paul Eggert <eggert@cs.ucla.edu> 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
   
...@@ -142,7 +142,7 @@ casify_object (enum case_action flag, Lisp_Object obj) ...@@ -142,7 +142,7 @@ casify_object (enum case_action flag, Lisp_Object obj)
o += CHAR_STRING (c, o); o += CHAR_STRING (c, o);
} }
eassert (o - dst <= o_size); eassert (o - dst <= o_size);
obj = make_multibyte_string (dst, size, o - dst); obj = make_multibyte_string ((char *) dst, size, o - dst);
SAFE_FREE (); SAFE_FREE ();
return obj; return obj;
} }
...@@ -279,7 +279,7 @@ casify_region (enum case_action flag, Lisp_Object b, Lisp_Object e) ...@@ -279,7 +279,7 @@ casify_region (enum case_action flag, Lisp_Object b, Lisp_Object e)
keeping text properties the same. */ keeping text properties the same. */
replace_range_2 (start, start_byte, replace_range_2 (start, start_byte,
start + 1, start_byte + len, start + 1, start_byte + len,
str, 1, tolen, (char *) str, 1, tolen,
0); 0);
len = tolen; len = tolen;
} }
...@@ -442,4 +442,3 @@ keys_of_casefiddle (void) ...@@ -442,4 +442,3 @@ keys_of_casefiddle (void)
initial_define_key (meta_map, 'l', "downcase-word"); initial_define_key (meta_map, 'l', "downcase-word");
initial_define_key (meta_map, 'c', "capitalize-word"); initial_define_key (meta_map, 'c', "capitalize-word");
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment