aboutsummaryrefslogtreecommitdiffstats
path: root/src/character.h
diff options
context:
space:
mode:
authorMichal Nazarewicz2016-09-06 17:20:23 +0200
committerMichal Nazarewicz2016-09-09 03:07:15 +0200
commit3ffc5f44b09e2b500584545389efb8db3be04f95 (patch)
treeb36cbb467a79999ff55261276014db4707ecd850 /src/character.h
parente951aa145981cfcee48517dbc7faad89b24e4e96 (diff)
downloademacs-3ffc5f44b09e2b500584545389efb8db3be04f95.tar.gz
emacs-3ffc5f44b09e2b500584545389efb8db3be04f95.zip
STRING_CHAR does not unify characters; update documentation
* src/character.h (STRING_CHAR): Update doc. * src/buffer.h (FETCH_MULTIBYTE_CHAR): Update doc. While at it, change the function to use BYTE_POS_ADDR instead of open-coding it.
Diffstat (limited to 'src/character.h')
-rw-r--r--src/character.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/character.h b/src/character.h
index 0d0e31c4c92..7f01bc6a31e 100644
--- a/src/character.h
+++ b/src/character.h
@@ -308,10 +308,7 @@ enum
308 } \ 308 } \
309 } while (false) 309 } while (false)
310 310
311/* Return the character code of character whose multibyte form is at 311/* Return the character code of character whose multibyte form is at P. */
312 P. Note that this macro unifies CJK characters whose codepoints
313 are in the Private Use Areas (PUAs), so it might return a different
314 codepoint from the one actually stored at P. */
315 312
316#define STRING_CHAR(p) \ 313#define STRING_CHAR(p) \
317 (!((p)[0] & 0x80) \ 314 (!((p)[0] & 0x80) \