emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r103163: Merge: * alloc.c: conform to


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103163: Merge: * alloc.c: conform to C89 pointer rules
Date: Sun, 06 Feb 2011 18:06:16 -0800
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103163 [merge]
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2011-02-06 18:06:16 -0800
message:
  Merge: * alloc.c: conform to C89 pointer rules
modified:
  src/ChangeLog
  src/alloc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-02-07 01:31:29 +0000
+++ b/src/ChangeLog     2011-02-07 02:05:30 +0000
@@ -7,6 +7,8 @@
        rules about pointer type compatibility.
        * casefiddle.c (casify_object, casify_region): Likewise.
        * search.c (Freplace_match, Fregexp_quote): Likewise.
+       * alloc.c (make_string, make_specified_string, make_pure_string):
+       Likewise.
 
 2011-02-06  Paul Eggert  <address@hidden>
 

=== modified file 'src/alloc.c'
--- a/src/alloc.c       2011-01-30 22:17:44 +0000
+++ b/src/alloc.c       2011-02-07 02:05:30 +0000
@@ -2281,7 +2281,8 @@
   register Lisp_Object val;
   EMACS_INT nchars, multibyte_nbytes;
 
-  parse_str_as_multibyte (contents, nbytes, &nchars, &multibyte_nbytes);
+  parse_str_as_multibyte ((const unsigned char *) contents, nbytes,
+                         &nchars, &multibyte_nbytes);
   if (nbytes == nchars || nbytes != multibyte_nbytes)
     /* CONTENTS contains no multibyte sequences or contains an invalid
        multibyte sequence.  We must make unibyte string.  */
@@ -2349,7 +2350,8 @@
   if (nchars < 0)
     {
       if (multibyte)
-       nchars = multibyte_chars_in_text (contents, nbytes);
+       nchars = multibyte_chars_in_text ((const unsigned char *) contents,
+                                         nbytes);
       else
        nchars = nbytes;
     }
@@ -4650,7 +4652,7 @@
   struct Lisp_String *s;
 
   s = (struct Lisp_String *) pure_alloc (sizeof *s, Lisp_String);
-  s->data = find_string_data_in_pure (data, nbytes);
+  s->data = (unsigned char *) find_string_data_in_pure (data, nbytes);
   if (s->data == NULL)
     {
       s->data = (unsigned char *) pure_alloc (nbytes + 1, -1);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]