diff options
| author | Andreas Schwab | 1997-11-21 14:52:16 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1997-11-21 14:52:16 +0000 |
| commit | d11ba98c5031e245b1b166e52bb0c59d8abab37c (patch) | |
| tree | fbd1581d91771d1716211e50a07d687b391da64d /src | |
| parent | e9aea0ef2477c19bc1d34fea34b16919c33463c5 (diff) | |
| download | emacs-d11ba98c5031e245b1b166e52bb0c59d8abab37c.tar.gz emacs-d11ba98c5031e245b1b166e52bb0c59d8abab37c.zip | |
(Fchar_to_string): Declare `workbuf' as unsigned char.
(general_insert_function): Likewise. Protoize parameters. Define
as returning nothing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c index 8287e9ccca3..59856d3142a 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -126,7 +126,7 @@ DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0, | |||
| 126 | Lisp_Object character; | 126 | Lisp_Object character; |
| 127 | { | 127 | { |
| 128 | int len; | 128 | int len; |
| 129 | char workbuf[4], *str; | 129 | unsigned char workbuf[4], *str; |
| 130 | 130 | ||
| 131 | CHECK_NUMBER (character, 0); | 131 | CHECK_NUMBER (character, 0); |
| 132 | 132 | ||
| @@ -1284,9 +1284,11 @@ set_time_zone_rule (tzstring) | |||
| 1284 | type of object is Lisp_String). INHERIT is passed to | 1284 | type of object is Lisp_String). INHERIT is passed to |
| 1285 | INSERT_FROM_STRING_FUNC as the last argument. */ | 1285 | INSERT_FROM_STRING_FUNC as the last argument. */ |
| 1286 | 1286 | ||
| 1287 | void | ||
| 1287 | general_insert_function (insert_func, insert_from_string_func, | 1288 | general_insert_function (insert_func, insert_from_string_func, |
| 1288 | inherit, nargs, args) | 1289 | inherit, nargs, args) |
| 1289 | int (*insert_func)(), (*insert_from_string_func)(); | 1290 | void (*insert_func) P_ ((unsigned char *, int)); |
| 1291 | void (*insert_from_string_func) P_ ((Lisp_Object, int, int, int)); | ||
| 1290 | int inherit, nargs; | 1292 | int inherit, nargs; |
| 1291 | register Lisp_Object *args; | 1293 | register Lisp_Object *args; |
| 1292 | { | 1294 | { |
| @@ -1299,7 +1301,7 @@ general_insert_function (insert_func, insert_from_string_func, | |||
| 1299 | retry: | 1301 | retry: |
| 1300 | if (INTEGERP (val)) | 1302 | if (INTEGERP (val)) |
| 1301 | { | 1303 | { |
| 1302 | char workbuf[4], *str; | 1304 | unsigned char workbuf[4], *str; |
| 1303 | int len; | 1305 | int len; |
| 1304 | 1306 | ||
| 1305 | if (!NILP (current_buffer->enable_multibyte_characters)) | 1307 | if (!NILP (current_buffer->enable_multibyte_characters)) |