diff options
| author | Roland McGrath | 1995-01-05 07:11:54 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-01-05 07:11:54 +0000 |
| commit | 610f41b7515faeb775afe441b65767066839ac29 (patch) | |
| tree | 857d17b5f1760e6b04cae5ebecc8c5b38547cc62 /src | |
| parent | 4e87700b1e6a90e2c0ad43585c823de6c6724fe9 (diff) | |
| download | emacs-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -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 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| 6 | GNU Emacs is free software; you can redistribute it and/or modify | 6 | GNU Emacs is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 1, or (at your option) | 8 | the Free Software Foundation; either version 2, or (at your option) |
| 9 | any later version. | 9 | any later version. |
| 10 | 10 | ||
| 11 | GNU Emacs is distributed in the hope that it will be useful, | 11 | GNU 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 | } |