]> code.delx.au - gnu-emacs/commit
Port to platforms where char * has top bit set
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2016 19:19:36 +0000 (12:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2016 19:21:00 +0000 (12:21 -0700)
commitc5461d03a411ff5c6f43885a0a9030e8a94bbc2e
tree3670c5dd1941dde89b1ac4b6e765ec084fa1a546
parent7f35d5cbaf055dddcf0489a6f6a46df7ddaeeaf4
Port to platforms where char * has top bit set

This fixes a five-year-old FIXME comment.  Although I don’t know
of a platform where this is a problem in practice, better safe
than sorry.
* src/doc.c (Fdocumentation): If SUBRP, simply use doc as integer,
as it is now an integer, not char *.
(store_function_docstring): Offset is now EMACS_INT, not ptrdiff_t;
this is a file offset and EMACS_INT is better if --with-wide-int.
If SUBRP, simply store the offset rather than negating it and
converting it to char *.
* src/lisp.h (struct Lisp_Subr.doc): Now EMACS_INT, not char *.
src/doc.c
src/lisp.h