diff options
| author | Paul Eggert | 2011-02-05 02:00:31 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-05 02:00:31 -0800 |
| commit | d154c079dd429eb5b641139152e7714bfddca519 (patch) | |
| tree | 47c7ba785be5c1ef013d2ff253f3fb375c1eedab | |
| parent | 51aba3f351e3f3c512d5749a16a691fd1c63658e (diff) | |
| parent | dfb6afda103a82da1468af8552d351ab326404ee (diff) | |
| download | emacs-d154c079dd429eb5b641139152e7714bfddca519.tar.gz emacs-d154c079dd429eb5b641139152e7714bfddca519.zip | |
Merge: * charset.c: conform to C89 pointer rules
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/charset.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8d02825f8ce..48d3983e253 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-02-05 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-02-05 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * charset.c: conform to C89 pointer rules | ||
| 4 | (define_charset_internal): Switch between char * and unsigned char *. | ||
| 5 | |||
| 3 | * xmenu.c: conform to C89 const rules | 6 | * xmenu.c: conform to C89 const rules |
| 4 | (xmenu_show, xdialog_show): Declare local var as char *, not | 7 | (xmenu_show, xdialog_show): Declare local var as char *, not |
| 5 | const char *, to stay compatible with C89 const rules. | 8 | const char *, to stay compatible with C89 const rules. |
diff --git a/src/charset.c b/src/charset.c index a6046600194..229f2c2cdae 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -1253,12 +1253,13 @@ usage: (define-charset-internal ...) */) | |||
| 1253 | static int | 1253 | static int |
| 1254 | define_charset_internal (Lisp_Object name, | 1254 | define_charset_internal (Lisp_Object name, |
| 1255 | int dimension, | 1255 | int dimension, |
| 1256 | const unsigned char *code_space, | 1256 | const char *code_space_chars, |
| 1257 | unsigned min_code, unsigned max_code, | 1257 | unsigned min_code, unsigned max_code, |
| 1258 | int iso_final, int iso_revision, int emacs_mule_id, | 1258 | int iso_final, int iso_revision, int emacs_mule_id, |
| 1259 | int ascii_compatible, int supplementary, | 1259 | int ascii_compatible, int supplementary, |
| 1260 | int code_offset) | 1260 | int code_offset) |
| 1261 | { | 1261 | { |
| 1262 | const unsigned char *code_space = (const unsigned char *) code_space_chars; | ||
| 1262 | Lisp_Object args[charset_arg_max]; | 1263 | Lisp_Object args[charset_arg_max]; |
| 1263 | Lisp_Object plist[14]; | 1264 | Lisp_Object plist[14]; |
| 1264 | Lisp_Object val; | 1265 | Lisp_Object val; |