From: Eli Zaretskii Date: Sat, 23 Apr 2011 17:19:56 +0000 (+0300) Subject: Fix typos in comments in character.c and textprop.c. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~215^2~33 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=224a3131ee87cf4d59d8cf035b924171b73a25b6;p=emacs.git Fix typos in comments in character.c and textprop.c. --- diff --git a/src/character.c b/src/character.c index 4087e8984d0..6d27371c7e9 100644 --- a/src/character.c +++ b/src/character.c @@ -162,11 +162,11 @@ char_string (unsigned int c, unsigned char *p) } -/* Return a character whose multibyte form is at P. Set LEN is not +/* Return a character whose multibyte form is at P. If LEN is not NULL, it must be a pointer to integer. In that case, set *LEN to - the byte length of the multibyte form. If ADVANCED is not NULL, is + the byte length of the multibyte form. If ADVANCED is not NULL, it must be a pointer to unsigned char. In that case, set *ADVANCED to - the ending address (i.e. the starting address of the next + the ending address (i.e., the starting address of the next character) of the multibyte form. */ int @@ -206,11 +206,10 @@ string_char (const unsigned char *p, const unsigned char **advanced, int *len) } -/* Translate character C by translation table TABLE. If C is - negative, translate a character specified by CHARSET and CODE. If - no translation is found in TABLE, return the untranslated - character. If TABLE is a list, elements are char tables. In this - case, translace C by all tables. */ +/* Translate character C by translation table TABLE. If no translation is + found in TABLE, return the untranslated character. If TABLE is a list, + elements are char tables. In that case, recursively translate C by all the + tables in the list. */ int translate_char (Lisp_Object table, int c) diff --git a/src/textprop.c b/src/textprop.c index d9da36bf36b..1c56dfc0cf0 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -233,7 +233,7 @@ interval_has_all_properties (Lisp_Object plist, INTERVAL i) if (! EQ (Fcar (XCDR (tail1)), Fcar (XCDR (tail2)))) return 0; - /* Property has same value on both lists; go to next one. */ + /* Property has same value on both lists; go to next one. */ found = 1; break; }