aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>1995-01-05 07:11:54 +0000
committerRoland McGrath <[email protected]>1995-01-05 07:11:54 +0000
commit610f41b7515faeb775afe441b65767066839ac29 (patch)
tree857d17b5f1760e6b04cae5ebecc8c5b38547cc62 /src/doc.c
parent4e87700b1e6a90e2c0ad43585c823de6c6724fe9 (diff)
(store_function_docstring, Fdocumentation): Use & PSEUDOVECTOR_SIZE_MASK on
`size' field of compiled byte-code object.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc.c b/src/doc.c
index d401fe7330..6c998636a7 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -1,11 +1,11 @@
/* Record indices of function doc strings stored in a file.
- Copyright (C) 1985, 1986, 1993, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1985, 1986, 1993, 1994, 1995 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
+the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Emacs is distributed in the hope that it will be useful,
@@ -279,7 +279,7 @@ string is passed through `substitute-command-keys'.")
}
else if (COMPILEDP (fun))
{
- if (XVECTOR (fun)->size <= COMPILED_DOC_STRING)
+ if (XVECTOR (fun)->size & PSEUDOVECTOR_SIZE_MASK <= COMPILED_DOC_STRING)
return Qnil;
tem = XVECTOR (fun)->contents[COMPILED_DOC_STRING];
if (STRINGP (tem))
@@ -394,7 +394,7 @@ store_function_docstring (fun, offset)
{
/* This bytecode object must have a slot for the
docstring, since we've found a docstring for it. */
- if (XVECTOR (fun)->size > COMPILED_DOC_STRING)
+ if (XVECTOR (fun)->size & PSEUDOVECTOR_SIZE_MASK > COMPILED_DOC_STRING)
XSETFASTINT (XVECTOR (fun)->contents[COMPILED_DOC_STRING], offset);
}
}