diff options
| author | Kenichi Handa | 1997-05-28 04:36:32 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-05-28 04:36:32 +0000 |
| commit | a29e3b1b27cc78de76ce0eb6251b33c081fa52cf (patch) | |
| tree | fea2a101504d71e596e9f6adb6bb0d279f81c994 /src | |
| parent | 1ba9e4ab9c2c18fd566c8d365051211612c74cca (diff) | |
| download | emacs-a29e3b1b27cc78de76ce0eb6251b33c081fa52cf.tar.gz emacs-a29e3b1b27cc78de76ce0eb6251b33c081fa52cf.zip | |
(Ffind_charset_string): The variable CHARSETS is
changed to (int *).
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c index 65a99561237..1df2faee644 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -534,7 +534,7 @@ CHARSET should be defined by `defined-charset' in advance.") | |||
| 534 | 534 | ||
| 535 | /* Return number of different charsets in STR of length LEN. In | 535 | /* Return number of different charsets in STR of length LEN. In |
| 536 | addition, for each found charset N, CHARSETS[N] is set 1. The | 536 | addition, for each found charset N, CHARSETS[N] is set 1. The |
| 537 | caller should allocate CHARSETS (MAX_CHARSET + 1 bytes) in advance. | 537 | caller should allocate CHARSETS (MAX_CHARSET + 1 elements) in advance. |
| 538 | It may lookup a unification table TABLE if supplied. */ | 538 | It may lookup a unification table TABLE if supplied. */ |
| 539 | 539 | ||
| 540 | int | 540 | int |
| @@ -616,12 +616,12 @@ Optional arg TABLE if non-nil is a unification table to look up.") | |||
| 616 | (str, table) | 616 | (str, table) |
| 617 | Lisp_Object str, table; | 617 | Lisp_Object str, table; |
| 618 | { | 618 | { |
| 619 | char charsets[MAX_CHARSET + 1]; | 619 | int charsets[MAX_CHARSET + 1]; |
| 620 | int i; | 620 | int i; |
| 621 | Lisp_Object val; | 621 | Lisp_Object val; |
| 622 | 622 | ||
| 623 | CHECK_STRING (str, 0); | 623 | CHECK_STRING (str, 0); |
| 624 | bzero (charsets, MAX_CHARSET + 1); | 624 | bzero (charsets, (MAX_CHARSET + 1) * sizeof (int)); |
| 625 | find_charset_in_str (XSTRING (str)->data, XSTRING (str)->size, | 625 | find_charset_in_str (XSTRING (str)->data, XSTRING (str)->size, |
| 626 | charsets, table); | 626 | charsets, table); |
| 627 | val = Qnil; | 627 | val = Qnil; |