diff options
| author | Richard M. Stallman | 1994-08-17 20:06:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-08-17 20:06:55 +0000 |
| commit | a1943c34bbccbd5d39d617a79af52eaaaa970d30 (patch) | |
| tree | 9753dee70aed3d15b2196ca1a79b07d5f5e98d26 /src/doc.c | |
| parent | c1033e008cdc1c772201c67893dd34fc87ca9240 (diff) | |
| download | emacs-a1943c34bbccbd5d39d617a79af52eaaaa970d30.tar.gz emacs-a1943c34bbccbd5d39d617a79af52eaaaa970d30.zip | |
(store_function_docstring): Do nothing for bytecode object
which has no slot for doc string.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -245,10 +245,8 @@ store_function_docstring (fun, offset) | |||
| 245 | { | 245 | { |
| 246 | /* This bytecode object must have a slot for the | 246 | /* This bytecode object must have a slot for the |
| 247 | docstring, since we've found a docstring for it. */ | 247 | docstring, since we've found a docstring for it. */ |
| 248 | if (XVECTOR (fun)->size <= COMPILED_DOC_STRING) | 248 | if (XVECTOR (fun)->size > COMPILED_DOC_STRING) |
| 249 | abort (); | 249 | XFASTINT (XVECTOR (fun)->contents[COMPILED_DOC_STRING]) = offset; |
| 250 | |||
| 251 | XFASTINT (XVECTOR (fun)->contents[COMPILED_DOC_STRING]) = offset; | ||
| 252 | } | 250 | } |
| 253 | } | 251 | } |
| 254 | 252 | ||