diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-09-08 12:20:55 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-09-08 12:20:55 +0300 |
commit | e48968561728d6c1d9e4e8753cd7eafa08e37ac7 (patch) | |
tree | 7956545062a40da92c5ed73469879f7c28af9279 /src/xselect.c | |
parent | f9a72b83abc0f8de85840269b59c228b55496dd4 (diff) | |
download | emacs-e48968561728d6c1d9e4e8753cd7eafa08e37ac7.tar.gz |
Fix documentation for conversion to bignums
* src/xselect.c (selection_data_to_lisp_data):
* src/w32fns.c (Fw32_read_registry):
* src/process.c (Fprocess_id):
* src/font.c (Ffont_variation_glyphs, Finternal_char_font):
* src/fns.c (Fsafe_length):
* src/editfns.c (Fuser_uid, Fuser_real_uid, Fgroup_gid)
(Fgroup_real_gid, Femacs_pid):
* src/dired.c (Ffile_attributes):
* src/charset.c (Fencode_char): Update commentary and doc
strings for recent changes that produce bignums where
previously cons cells of integers were produced.
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/xselect.c b/src/xselect.c index 53e788523cc..a87784fb4b1 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -1536,17 +1536,10 @@ x_get_window_property_as_lisp_data (struct x_display_info *dpyinfo, ATOM 32 > 1 Vector of Symbols * 16 1 Integer * 16 > 1 Vector of Integers - * 32 1 if <=16 bits: Integer - if > 16 bits: Cons of top16, bot16 + * 32 1 if small enough: fixnum + otherwise: bignum * 32 > 1 Vector of the above - When converting a Lisp number to C, it is assumed to be of format 16 if - it is an integer, and of format 32 if it is a cons of two integers. - - When converting a vector of numbers from Lisp to C, it is assumed to be - of format 16 if every element in the vector is an integer, and is assumed - to be of format 32 if any element is a cons of two integers. - When converting an object to C, it may be of the form (SYMBOL . <data>) where SYMBOL is what we should claim that the type is. Format and representation are as above. @@ -1611,8 +1604,8 @@ selection_data_to_lisp_data (struct x_display_info *dpyinfo, } /* Convert a single 16-bit number or a small 32-bit number to a Lisp_Int. - If the number is 32 bits and won't fit in a Lisp_Int, - convert it to a cons of integers, 16 bits in each half. + If the number is 32 bits and won't fit in a Lisp_Int, convert it + to a bignum. INTEGER is a signed type, CARDINAL is unsigned. Assume any other types are unsigned as well. |