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