diff options
| author | Eli Zaretskii | 2026-03-26 19:40:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2026-03-26 19:40:58 +0200 |
| commit | 3d8f68db3beffb8ea952b2e512e5e841c5b30835 (patch) | |
| tree | ce7b28a52261980b2528e0a48c4120ffb6e637e4 /src | |
| parent | 887a7ec32d976e673a802e211b28a8c1b397b950 (diff) | |
| download | emacs-3d8f68db3beffb8ea952b2e512e5e841c5b30835.tar.gz emacs-3d8f68db3beffb8ea952b2e512e5e841c5b30835.zip | |
; Fix comments and doc strings in some C files
* src/charset.c (Fmap_charset_chars, Fdefine_charset_internal)
(Ffind_charset_region, Ffind_charset_string, Fchar_charset):
* src/chartab.c (UNIPROP_COMPRESSED_FORM_P): Fix commentary and doc
strings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 10 | ||||
| -rw-r--r-- | src/chartab.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/charset.c b/src/charset.c index 16ff09a48bf..bcc15e0bd5d 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -798,7 +798,7 @@ Optional 4th and 5th arguments FROM-CODE and TO-CODE specify the | |||
| 798 | range of code points (in CHARSET) of target characters on which to | 798 | range of code points (in CHARSET) of target characters on which to |
| 799 | map the FUNCTION. Note that these are not character codes, but code | 799 | map the FUNCTION. Note that these are not character codes, but code |
| 800 | points of CHARSET; for the difference see `decode-char' and | 800 | points of CHARSET; for the difference see `decode-char' and |
| 801 | `list-charset-chars'. If FROM-CODE is nil or imitted, it stands for | 801 | `list-charset-chars'. If FROM-CODE is nil or omitted, it stands for |
| 802 | the first code point of CHARSET; if TO-CODE is nil or omitted, it | 802 | the first code point of CHARSET; if TO-CODE is nil or omitted, it |
| 803 | stands for the last code point of CHARSET. | 803 | stands for the last code point of CHARSET. |
| 804 | 804 | ||
| @@ -839,7 +839,7 @@ TO-CODE, which are CHARSET code points. */) | |||
| 839 | /* Define a charset according to the arguments. The Nth argument is | 839 | /* Define a charset according to the arguments. The Nth argument is |
| 840 | the Nth attribute of the charset (the last attribute `charset-id' | 840 | the Nth attribute of the charset (the last attribute `charset-id' |
| 841 | is not included). See the docstring of `define-charset' for the | 841 | is not included). See the docstring of `define-charset' for the |
| 842 | detail. */ | 842 | details. */ |
| 843 | 843 | ||
| 844 | DEFUN ("define-charset-internal", Fdefine_charset_internal, | 844 | DEFUN ("define-charset-internal", Fdefine_charset_internal, |
| 845 | Sdefine_charset_internal, charset_arg_max, MANY, 0, | 845 | Sdefine_charset_internal, charset_arg_max, MANY, 0, |
| @@ -1529,7 +1529,7 @@ BEG and END are buffer positions. | |||
| 1529 | Optional arg TABLE if non-nil is a translation table to look up. | 1529 | Optional arg TABLE if non-nil is a translation table to look up. |
| 1530 | 1530 | ||
| 1531 | If the current buffer is unibyte, the returned list may contain | 1531 | If the current buffer is unibyte, the returned list may contain |
| 1532 | only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) | 1532 | only `ascii' and `eight-bit'. */) |
| 1533 | (Lisp_Object beg, Lisp_Object end, Lisp_Object table) | 1533 | (Lisp_Object beg, Lisp_Object end, Lisp_Object table) |
| 1534 | { | 1534 | { |
| 1535 | Lisp_Object charsets; | 1535 | Lisp_Object charsets; |
| @@ -1580,7 +1580,7 @@ DEFUN ("find-charset-string", Ffind_charset_string, Sfind_charset_string, | |||
| 1580 | Optional arg TABLE if non-nil is a translation table to look up. | 1580 | Optional arg TABLE if non-nil is a translation table to look up. |
| 1581 | 1581 | ||
| 1582 | If STR is unibyte, the returned list may contain | 1582 | If STR is unibyte, the returned list may contain |
| 1583 | only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) | 1583 | only `ascii' amd `eight-bit'. */) |
| 1584 | (Lisp_Object str, Lisp_Object table) | 1584 | (Lisp_Object str, Lisp_Object table) |
| 1585 | { | 1585 | { |
| 1586 | CHECK_STRING (str); | 1586 | CHECK_STRING (str); |
| @@ -2035,7 +2035,7 @@ ASCII characters are an exception: for them, this function always | |||
| 2035 | returns `ascii'. | 2035 | returns `ascii'. |
| 2036 | If optional 2nd arg RESTRICTION is non-nil, it is a list of charsets | 2036 | If optional 2nd arg RESTRICTION is non-nil, it is a list of charsets |
| 2037 | from which to find the charset. It may also be a coding system. In | 2037 | from which to find the charset. It may also be a coding system. In |
| 2038 | that case, find the charset from what supported by that coding system. */) | 2038 | that case, find the charset in those supported by that coding system. */) |
| 2039 | (Lisp_Object ch, Lisp_Object restriction) | 2039 | (Lisp_Object ch, Lisp_Object restriction) |
| 2040 | { | 2040 | { |
| 2041 | struct charset *charset; | 2041 | struct charset *charset; |
diff --git a/src/chartab.c b/src/chartab.c index 3076f72c06e..7d2710f20a3 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -78,7 +78,7 @@ sub_char_table_ref_and_range (Lisp_Object, int, int *, int *, | |||
| 78 | /* Nonzero iff OBJ is a string representing uniprop values of 128 | 78 | /* Nonzero iff OBJ is a string representing uniprop values of 128 |
| 79 | succeeding characters (the bottom level of a char-table) by a | 79 | succeeding characters (the bottom level of a char-table) by a |
| 80 | compressed format. We are sure that no property value has a string | 80 | compressed format. We are sure that no property value has a string |
| 81 | starting with '\001' nor '\002'. */ | 81 | starting with '\001' or '\002'. */ |
| 82 | #define UNIPROP_COMPRESSED_FORM_P(OBJ) \ | 82 | #define UNIPROP_COMPRESSED_FORM_P(OBJ) \ |
| 83 | (STRINGP (OBJ) && SCHARS (OBJ) > 0 \ | 83 | (STRINGP (OBJ) && SCHARS (OBJ) > 0 \ |
| 84 | && ((SREF (OBJ, 0) == 1 || (SREF (OBJ, 0) == 2)))) | 84 | && ((SREF (OBJ, 0) == 1 || (SREF (OBJ, 0) == 2)))) |