]> git.eshelyaron.com Git - emacs.git/commitdiff
* charset.c: conform to C89 pointer rules
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Feb 2011 09:57:53 +0000 (01:57 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Feb 2011 09:57:53 +0000 (01:57 -0800)
(define_charset_internal): Switch between char * and unsigned char *.

src/ChangeLog
src/charset.c

index 8d02825f8ce71feb4b1269a10979845b91335aac..48d3983e2530878c66d357c3df0c3517c234c383 100644 (file)
@@ -1,5 +1,8 @@
 2011-02-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * charset.c: conform to C89 pointer rules
+       (define_charset_internal): Switch between char * and unsigned char *.
+
        * xmenu.c: conform to C89 const rules
        (xmenu_show, xdialog_show): Declare local var as char *, not
        const char *, to stay compatible with C89 const rules.
index a60466001948cec0bf955176bdca5bbda72a54eb..229f2c2cdae1e2c7224c17543de89a4275956d5c 100644 (file)
@@ -1253,12 +1253,13 @@ usage: (define-charset-internal ...)  */)
 static int
 define_charset_internal (Lisp_Object name,
                         int dimension,
-                        const unsigned char *code_space,
+                        const char *code_space_chars,
                         unsigned min_code, unsigned max_code,
                         int iso_final, int iso_revision, int emacs_mule_id,
                         int ascii_compatible, int supplementary,
                         int code_offset)
 {
+  const unsigned char *code_space = (const unsigned char *) code_space_chars;
   Lisp_Object args[charset_arg_max];
   Lisp_Object plist[14];
   Lisp_Object val;