summaryrefslogtreecommitdiff
path: root/src/lisp.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-06-14 12:19:36 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-06-14 12:21:00 -0700
commitc5461d03a411ff5c6f43885a0a9030e8a94bbc2e (patch)
tree3670c5dd1941dde89b1ac4b6e765ec084fa1a546 /src/lisp.h
parent7f35d5cbaf055dddcf0489a6f6a46df7ddaeeaf4 (diff)
downloademacs-c5461d03a411ff5c6f43885a0a9030e8a94bbc2e.tar.gz
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 *.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 972ca335115..e0eb52a84ea 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1752,7 +1752,7 @@ struct Lisp_Subr
short min_args, max_args;
const char *symbol_name;
const char *intspec;
- const char *doc;
+ EMACS_INT doc;
};
enum char_table_specials